On 13/05/2013 9:04 p.m., babajaga wrote:
Good idea.
It should not be too complicated to modify "storeUfsWrite"/"storeUfsRead"
for example to include some type of compression.
However, question is, how effective it would be, as there are many graphic
file types, not easily compressable. So it would result in a lot of wasted
CPU cycles.
A simpler solution might be the usage of a compressing proxy on top of
squid. So squid will cache compressed files in all FS available, without any
patches.
The simplest way to test that is to compare Squid caching to a regular
filesystem (ext3, ext4, reiserfs, XFS) versus to one which compresses
its files (ZFS, Brtfs, SquashFS). Keepign in mind the way the FS is
compressing (per-inode, versus per-file).
Amos