mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10155
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user