3 ms·
The general mix has some potential for compression. Looking at one machine available: * / has 2.08 compression ratio, * /var/cache 2.15 * /var/tmp 1.0 * /h
by vetinari 9y ago
The general mix has some potential for compression.
Looking at one machine available:
* / has 2.08 compression ratio,
* /var/cache 2.15
* /var/tmp 1.0
* /home 1.02
* /srv 1.10 (few web apps, pgsql instance for these web apps, svn repo, samba shares, local prometheus store).
If your server uses spinning rust, you can also increase the I/O by using compression. You are trading the CPU time for I/O bandwidth. Depending on your workload, it may be a sensible trade-off.
- fh973 9y agoI was thinking more in terms of application data, thank you for giving me this perspective. But still wondering: does the amount of this data really warrant compression? I mean the smallest sensible size of an SSD is around 100GB and it has lots of performance.
- vetinari 9y agoIn this case, the svn repos and samba shares are way over 100GB and even with classic HDDs, the machine can saturate the network and still be basically idling. No need for SSDs, classic drives were more cost effective. The compression was just something nice to have. Lz4 in filesystem is basically for free.