svn commit: r258301 - stable/9/sys/vm
Alexander Motin
mav at FreeBSD.org
Mon Nov 18 13:17:57 UTC 2013
Author: mav
Date: Mon Nov 18 13:17:56 2013
New Revision: 258301
URL: http://svnweb.freebsd.org/changeset/base/258301
Log:
MFC r240676 (by glebius):
If caller specifies UMA_ZONE_OFFPAGE explicitly, then do not waste memory
in an allocation for a slab.
Modified:
stable/9/sys/vm/uma_core.c
Modified: stable/9/sys/vm/uma_core.c
==============================================================================
--- stable/9/sys/vm/uma_core.c Mon Nov 18 13:12:45 2013 (r258300)
+++ stable/9/sys/vm/uma_core.c Mon Nov 18 13:17:56 2013 (r258301)
@@ -1122,7 +1122,9 @@ keg_small_init(uma_keg_t keg)
keg->uk_rsize = rsize;
keg->uk_ppera = 1;
- if (keg->uk_flags & UMA_ZONE_REFCNT) {
+ if (keg->uk_flags & UMA_ZONE_OFFPAGE) {
+ shsize = 0;
+ } else if (keg->uk_flags & UMA_ZONE_REFCNT) {
rsize += UMA_FRITMREF_SZ; /* linkage & refcnt */
shsize = sizeof(struct uma_slab_refcnt);
} else {
More information about the svn-src-stable-9
mailing list