]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
top: Change the way the ZFS ARC compression ratio is calculated
authorAllan Jude <allanjude@FreeBSD.org>
Mon, 12 Jun 2017 19:51:57 +0000 (19:51 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Mon, 12 Jun 2017 19:51:57 +0000 (19:51 +0000)
commitd9a7232865087ec37cccf8e4f5e2aebb612b9f23
treeeca9d1d29af1b437ccfa116d7c537249ac4e51f2
parentff6c17c94e723ec4cbd6f39f30e734dbf1697418
top: Change the way the ZFS ARC compression ratio is calculated

Based on feedback from OpenZFS developers Matt Ahrens and George Wilson,
the calculation of the ratio no longer takes in to account overhead.

The old formula could result in reporting a negative compression ratio

This could confuse the user or give a false impression that there would be
an advantage to disabling the compressed ARC feature.

The new formula will more closely match an average of the on-disk
compression ratio, as reported by the ZFS property 'compressratio'

MFC after: 3 days
Sponsored by: ScaleEngine Inc.
usr.bin/top/machine.c