View | Details | Raw Unified | Return to bug 241048 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/vm/vm_page.c (-3 / +5 lines)
Lines 220-229 vm_page_init_cache_zones(void *dummy __unused) Link Here
220
		vmd = VM_DOMAIN(domain);
220
		vmd = VM_DOMAIN(domain);
221
221
222
		/*
222
		/*
223
		 * Don't allow the page caches to take up more than .25% of
223
		 * Don't allow the page caches to take up more than .1875% of
224
		 * memory.
224
		 * memory.  A UMA bucket contains at most 256 free pages, and we
225
		 * have two buckets per CPU per free pool.
225
		 */
226
		 */
226
		if (vmd->vmd_page_count / 400 < 256 * mp_ncpus * VM_NFREEPOOL)
227
		if (vmd->vmd_page_count / 600 < 2 * 256 * mp_ncpus *
228
		    VM_NFREEPOOL)
227
			continue;
229
			continue;
228
		for (pool = 0; pool < VM_NFREEPOOL; pool++) {
230
		for (pool = 0; pool < VM_NFREEPOOL; pool++) {
229
			pgcache = &vmd->vmd_pgcache[pool];
231
			pgcache = &vmd->vmd_pgcache[pool];

Return to bug 241048