Userspace and Kernel space policies.
Userspace and Kernel space policies.
Posted Mar 17, 2011 2:43 UTC (Thu) by gmatht (subscriber, #58961)In reply to: Btrfs LZO support: save time as well as space? by epa
Parent article: The 2.6.38 kernel is out
On obvious policy is, only compress using idle cycles. This would mean that a standard IO bound task writing compressible data should run faster while not affecting the performance of CPU bound tasks (assuming decompression time is negligible). In some cases it should also give better write performance than either compress or no_compress E.g. when the CPU can compress at 30MB/s and the media can write at 30MB/s, then we could write 30MB/s of data compressed down to (say) 17MB/s and 13MB/s of uncompressed data, for a total of 43MB/s.
If the user manually selects such a policy they can't blame the kernel devs if it is not suitable :). Whether that complexity is worthwhile is another issue.