4 ms·
How does that work with log-structured filesystems (or any filesystem that does online defragmentation)?
by aidenn0 6y ago
How does that work with log-structured filesystems (or any filesystem that does online defragmentation)?
- m45t3r 6y agoAFAIK it doesn't, it expects a continuous file without fragmentation. On btrfs systems, for example, I have to set a bit to disable COW for the file to be used as a swapfile, otherwise it will not work.
- fomine3 6y agoZFS zvol works as swap even though CoW can't be disabled, how does it work? Edit: I found that zvol is virtual volume so anyway it should be handled by zfs. I also found mention about the bypass mechanism. http://lkml.iu.edu/hypermail/linux/kernel/0507.0/1690.html http://lkml.iu.edu/hypermail/linux/kernel/0507.0/1690.html