diff options
author | Brian Behlendorf <[email protected]> | 2015-07-27 13:17:32 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-07-30 11:50:22 -0700 |
commit | 11f552fa9074a94dac3463300e369013ec2f1544 (patch) | |
tree | 58293fbe84d64056544233fa17888e982e75c8ba /man/man5 | |
parent | 6339c1b9dce9f7cf4b7269d588d7a9c3bf338ebb (diff) |
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. Conceptually
this brings arc_available_memory() back in sync with illumos.
It is also desirable that the target amount of free memory be tunable
on a system. While the default values are expected to work well
for most workloads there may be cases where custom values are needed.
The zfs_arc_sys_free module option was added for this purpose.
zfs_arc_sys_free - The target number of bytes the ARC should leave
as free memory on the system. This value can
checked in /proc/spl/kstat/zfs/arcstats and
setting this module option will override the
default value.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3637
Diffstat (limited to 'man/man5')
-rw-r--r-- | man/man5/zfs-module-parameters.5 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5 index ccf386135..c0365ea5c 100644 --- a/man/man5/zfs-module-parameters.5 +++ b/man/man5/zfs-module-parameters.5 @@ -569,6 +569,19 @@ Default value: \fB5\fR. .sp .ne 2 .na +\fBzfs_arc_sys_free\fR (ulong) +.ad +.RS 12n +The target number of bytes the ARC should leave as free memory on the system. +Defaults to the larger of 1/64 of physical memory or 512K. Setting this +option to a non-zero value will override the default. +.sp +Default value: \fB0\fR. +.RE + +.sp +.ne 2 +.na \fBzfs_autoimport_disable\fR (int) .ad .RS 12n |