1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00: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:
Pawel Jakub Dawidek 2007-09-10 18:12:27 +00:00
parent e7e82a0e43
commit ef0ffc1c6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172130
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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