On Wed, May 14, 2014 at 12:53 PM, Roy Bamford <neddyseag...@gentoo.org> wrote: > What about not compressing files smaller than the filesysem block size > at all. In my case its 4k. Any file gets allocated 4k on disc anyway, > so compression/decompression is just a waste of resource for files > <=4k. > > I'm not suggesting dynamically determining the output filesystem block > size (unless you really want to), choose a static limit below which > compression will not be applied. > > That eliminates the discussion about small files.
See existing discussion around this very topic - for some filesystems that threshold is apparently as low as about 150 bytes. Rich