how zfs compression ratio is calculated?
Hi people:
I'm helping to request storage and can't find how zfs compression ratio is calculated. I mean all my zpool are compressed using gzip-9. But when I query my zpool (Myrpool506)
zfs get compressratio Myrpool506 it says
Myrpool506 compressratio 2.65x
So I assume it was an average of all compression ratios on all descendants zfs. Got the values put them on a spreadsheet and find out neither average, median or mode calcs gave me the same number. I have read OpenZfs sources, search Google and of course man pages/web pages of Solaris without luck about this question.
So somebody knows