mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
After dfr@ vnode leak fix, we can allow ARC to consume more memory.
Tested by: kris Approved by: re (bmah)
This commit is contained in:
parent
e7e82a0e43
commit
ef0ffc1c6f
2 changed files with 4 additions and 4 deletions
|
|
@ -1439,7 +1439,7 @@ arc_reclaim_needed(void)
|
|||
return (1);
|
||||
#endif
|
||||
#else
|
||||
if (kmem_used() > kmem_size() / 2)
|
||||
if (kmem_used() > (kmem_size() * 4) / 5)
|
||||
return (1);
|
||||
#endif
|
||||
|
||||
|
|
@ -2729,7 +2729,7 @@ arc_init(void)
|
|||
arc_c_max = (arc_c * 8) - (1<<30);
|
||||
else
|
||||
arc_c_max = arc_c_min;
|
||||
arc_c_max = MAX(arc_c * 4, arc_c_max);
|
||||
arc_c_max = MAX(arc_c * 6, arc_c_max);
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Allow the tunables to override our calculations if they are
|
||||
|
|
|
|||
|
|
@ -1439,7 +1439,7 @@ arc_reclaim_needed(void)
|
|||
return (1);
|
||||
#endif
|
||||
#else
|
||||
if (kmem_used() > kmem_size() / 2)
|
||||
if (kmem_used() > (kmem_size() * 4) / 5)
|
||||
return (1);
|
||||
#endif
|
||||
|
||||
|
|
@ -2729,7 +2729,7 @@ arc_init(void)
|
|||
arc_c_max = (arc_c * 8) - (1<<30);
|
||||
else
|
||||
arc_c_max = arc_c_min;
|
||||
arc_c_max = MAX(arc_c * 4, arc_c_max);
|
||||
arc_c_max = MAX(arc_c * 6, arc_c_max);
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
* Allow the tunables to override our calculations if they are
|
||||
|
|
|
|||
Loading…
Reference in a new issue