-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update arc_available_memory() to check freemem
While Linux doesn't provide detailed information about the state of the VM it does provide us total free pages. This information should be incorporated in to the arc_available_memory() calculation rather than solely relying on a signal from direct reclaim. It is also desirable that the amount of reclaim be tunable on a target system. While the default values are expected to work well for most workloads there may be cases where custom values are needed. zfs_arc_lotsfree - Threshold in bytes for what the ARC should consider to be a lot of free memory on the system. zfs_arc_desfree - Threshold in bytes for what the ARC should consider to be the desired available free memory on the system. Note that zfs_arc_lotsfree and zfs_arc_desfree are defined in terms of bytes unlike the illumos globals lotsfree and desfree. This was done to make reading and setting the values easier. The current values are available in /proc/spl/kstat/zfs/arcstats. Signed-off-by: Brian Behlendorf <[email protected]> Issue #3637
- Loading branch information
1 parent
48511ea
commit f4845a1
Showing
2 changed files
with
72 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters