diff options
author | Ryan Moeller <[email protected]> | 2020-03-27 12:14:46 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-27 09:14:46 -0700 |
commit | 9a51738b60c2164822baefa17f8fdcebe9d82fbc (patch) | |
tree | a16926d3b550160a937d533e41a6651b6f3ad6c8 /man | |
parent | 3f38797338f2e4b16e8e0065e21f1bca6ef59784 (diff) |
Let default arc_c_max be platform dependent
Linux changed the default max ARC size to 1/2 of physical memory to
deal with shortcomings of the Linux SLUB allocator. Other platforms
do not require the same logic.
Implement an arc_default_max() function to determine a default max ARC
size in platform code.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10155
Diffstat (limited to 'man')
-rw-r--r-- | man/man5/zfs-module-parameters.5 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5 index 3c61ac1a9..a7623ff27 100644 --- a/man/man5/zfs-module-parameters.5 +++ b/man/man5/zfs-module-parameters.5 @@ -854,8 +854,11 @@ Default value: \fB10\fR%. \fBzfs_arc_max\fR (ulong) .ad .RS 12n -Max arc size of ARC in bytes. If set to 0 then it will consume 1/2 of system -RAM. This value must be at least 67108864 (64 megabytes). +Max size of ARC in bytes. If set to 0 then the max size of ARC is determined +by the amount of system memory installed. For Linux, 1/2 of system memory will +be used as the limit. For FreeBSD, the larger of all system memory - 1GB or +5/8 of system memory will be used as the limit. This value must be at least +67108864 (64 megabytes). .sp This value can be changed dynamically with some caveats. It cannot be set back to 0 while running and reducing it below the current ARC size will not cause |