diff options
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index c6b194183..8a0c1a4a7 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -7150,13 +7150,13 @@ arc_init(void) arc_lowmem_init(); #endif - /* Set max to 1/2 of all memory */ - arc_c_max = allmem / 2; - -#ifdef _KERNEL - /* Set min cache to 1/32 of all memory, or 32MB, whichever is more */ + /* Set min cache to 1/32 of all memory, or 32MB, whichever is more. */ arc_c_min = MAX(allmem / 32, 2ULL << SPA_MAXBLOCKSHIFT); -#else + + /* How to set default max varies by platform. */ + arc_c_max = arc_default_max(arc_c_min, allmem); + +#ifndef _KERNEL /* * In userland, there's only the memory pressure that we artificially * create (see arc_available_memory()). Don't let arc_c get too |