COW filesystems and the stall problem
COW filesystems and the stall problem
Posted Nov 7, 2013 23:43 UTC (Thu) by jhhaller (guest, #56103)Parent article: The pernicious USB-stick stall problem
My question is whether writing dirty pages back more quickly will have a big effect on COW filesystem performance. Copying a large file to a COW filesystem may trigger more COW actions than before.
Posted Nov 11, 2013 0:45 UTC (Mon)
by giraffedata (guest, #1954)
[Link] (2 responses)
Lots of fadvise and madvise flags have been developed over the years; doesn't one of them get the writeback happening immediately? I created a TV recorder based on a ca 2004 Linux kernel that used msync(MS_ASYNC) for that purpose (yes, I made it write the file via mmap just so I could use msync).
Of course, if the issue is that you think the recorder might not actually be able to keep up with the data arriving, and want to make sure when that happens it just drops TV data and doesn't cripple the rest of the system too, then you do need something synchronous like fsync.
Posted Nov 11, 2013 1:59 UTC (Mon)
by jhhaller (guest, #56103)
[Link] (1 responses)
Posted Nov 11, 2013 4:16 UTC (Mon)
by giraffedata (guest, #1954)
[Link]
The actual point lost me, because I don't see the connection between the high-volume writing and reading you described and copy-on-write and the stalling of the playback. But I also don't know anything about mythtv or btrfs specifically.
I don't think there's anything inherent in COW that means if you flush a large file write sooner that you make more copies of tree data or some group of blocks, but I may have just totally missed the scenario you have in mind.
fsync is a rather primitive way to cause the system not to keep memory needlessly dirty.
COW filesystems and the stall problem
COW filesystems and the stall problem
Yes, I was not responding to the point.
COW filesystems and the stall problem
