Searched refs:slabs (Results 1 - 4 of 4) sorted by relevance
/freebsd-12-stable/contrib/unbound/util/storage/ |
H A D | slabhash.c | 156 int slabhash_is_size(struct slabhash* sl, size_t size, size_t slabs) argument 158 /* divide by slabs and then multiply by the number of slabs, 159 * because if the size is not an even multiple of slabs, the 162 if(sl->size != slabs) return 0; 163 if(slabs == 0) return 0; 164 if( (size/slabs)*slabs == slabhash_get_size(sl))
|
H A D | slabhash.h | 48 /** default number of slabs */ 156 * See if slabhash is of given (size, slabs) configuration. 159 * @param slabs: slab count to test for. 162 int slabhash_is_size(struct slabhash* table, size_t size, size_t slabs);
|
/freebsd-12-stable/contrib/unbound/services/cache/ |
H A D | rrset.c | 63 size_t slabs = (cfg?cfg->rrset_cache_slabs:HASH_DEFAULT_SLABS); local 67 struct rrset_cache *r = (struct rrset_cache*)slabhash_create(slabs,
|
/freebsd-12-stable/sys/vm/ |
H A D | uma_core.c | 581 u_int slabs; local 587 * This is done if the number of slabs is larger than the hash size. 592 (slabs = keg->uk_pages / keg->uk_ppera) > 605 ret = hash_alloc(&newhash, 1 << fls(slabs)); 1185 * allocator. Zones with page sized slabs switch at BOOT_PAGEALLOC. 1489 * may end up going to the VM for slabs which we do not 2388 * Large slabs are expensive to reclaim, so don't bother doing 2693 * Find a slab with some space. Prefer slabs that are partially used over those 2899 * Search the available kegs for slabs. Be careful to hold the 3696 int aflags, domain, slabs; local [all...] |
Completed in 159 milliseconds