X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Farc.c;h=7aa23ca15d0063a083dfc27d55e295adc030feb9;hb=7164d092210f122a4564ab37fb4fce476ec4485f;hp=d6eaa6cf0653074ceea0a5bed95bd2d21a6947f0;hpb=302f753f1657c05a4287226eeda1f53ae431b8a7;p=zfs.git diff --git a/module/zfs/arc.c b/module/zfs/arc.c index d6eaa6c..7aa23ca 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -3723,11 +3723,7 @@ arc_init(void) /* set min cache to 1/32 of all memory, or 64MB, whichever is more */ arc_c_min = MAX(arc_c / 4, 64<<20); - /* set max to 1/2 of all memory, or all but 4GB, whichever is more */ - if (arc_c * 8 >= ((uint64_t)4<<30)) - arc_c_max = (arc_c * 8) - ((uint64_t)4<<30); - else - arc_c_max = arc_c_min; + /* set max to 1/2 of all memory */ arc_c_max = MAX(arc_c * 4, arc_c_max); /*