Tweak condition for disabling allocation from per-CPU buckets in

low memory situation. I've observed a situation where per-CPU
allocations were disabled while there were enough free cached pages.
Basically, cnt.v_free_count was sitting stable at a value lower
than cnt.v_free_min and that caused massive performance drop.

Reviewed by:	alc
MFC after:	1 week
This commit is contained in:
Maksim Yevmenkin 2012-05-23 18:56:29 +00:00
parent b59864441e
commit 251386b4b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235854

View File

@ -272,10 +272,7 @@ SYSCTL_PROC(_vm, OID_AUTO, zone_stats, CTLFLAG_RD|CTLTYPE_STRUCT,
static void
bucket_enable(void)
{
if (cnt.v_free_count < cnt.v_free_min)
bucketdisable = 1;
else
bucketdisable = 0;
bucketdisable = vm_page_count_min();
}
/*