Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma_int.h
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
#define UMA_SLAB_SIZE PAGE_SIZE /* How big are our slabs? */ | #define UMA_SLAB_SIZE PAGE_SIZE /* How big are our slabs? */ | ||||
#define UMA_SLAB_MASK (PAGE_SIZE - 1) /* Mask to get back to the page */ | #define UMA_SLAB_MASK (PAGE_SIZE - 1) /* Mask to get back to the page */ | ||||
#define UMA_SLAB_SHIFT PAGE_SHIFT /* Number of bits PAGE_MASK */ | #define UMA_SLAB_SHIFT PAGE_SHIFT /* Number of bits PAGE_MASK */ | ||||
/* Max waste percentage before going to off page slab management */ | /* Max waste percentage before going to off page slab management */ | ||||
#define UMA_MAX_WASTE 10 | #define UMA_MAX_WASTE 10 | ||||
/* Max size of a CACHESPREAD slab. */ | |||||
#define UMA_CACHESPREAD_MAX_SIZE (128 * 1024) | |||||
/* | /* | ||||
* These flags must not overlap with the UMA_ZONE flags specified in uma.h. | * These flags must not overlap with the UMA_ZONE flags specified in uma.h. | ||||
*/ | */ | ||||
#define UMA_ZFLAG_OFFPAGE 0x00200000 /* | #define UMA_ZFLAG_OFFPAGE 0x00200000 /* | ||||
* Force the slab structure | * Force the slab structure | ||||
* allocation off of the real | * allocation off of the real | ||||
* memory. | * memory. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 543 Lines • Show Last 20 Lines |