Home
last modified time | relevance | path

Searched refs:slabs (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/unbound/util/storage/
H A Dslabhash.c156 int slabhash_is_size(struct slabhash* sl, size_t size, size_t slabs) in slabhash_is_size() argument
158 /* divide by slabs and then multiply by the number of slabs, in slabhash_is_size()
159 * because if the size is not an even multiple of slabs, the in slabhash_is_size()
162 if(sl->size != slabs) return 0; in slabhash_is_size()
163 if(slabs == 0) return 0; in slabhash_is_size()
164 if( (size/slabs)*slabs == slabhash_get_size(sl)) in slabhash_is_size()
H A Dslabhash.h48 /** 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/contrib/unbound/util/
H A Dconfiglexer.lex298 msg-cache-slabs{COLON} { YDVAR(1, VAR_MSG_CACHE_SLABS) }
300 rrset-cache-slabs{COLON} { YDVAR(1, VAR_RRSET_CACHE_SLABS) }
307 infra-cache-slabs{COLON} { YDVAR(1, VAR_INFRA_CACHE_SLABS) }
423 key-cache-slabs{COLON} { YDVAR(1, VAR_KEY_CACHE_SLABS) }
526 ip-ratelimit-slabs{COLON} { YDVAR(1, VAR_IP_RATELIMIT_SLABS) }
527 ratelimit-slabs{COLON} { YDVAR(1, VAR_RATELIMIT_SLABS) }
556 dnscrypt-shared-secret-cache-slabs{COLON} {
559 dnscrypt-nonce-cache-slabs{COLON} { YDVAR(1, VAR_DNSCRYPT_NONCE_CACHE_SLABS) }
/freebsd/contrib/unbound/doc/
H A Dexample.conf.in160 # the number of slabs to use for the message cache.
161 # the number of slabs must be a power of 2.
162 # more slabs reduce lock contention, but fragment memory usage.
163 # msg-cache-slabs: 4
232 # the number of slabs to use for the RRset cache.
233 # the number of slabs must be a power of 2.
234 # more slabs reduce lock contention, but fragment memory usage.
235 # rrset-cache-slabs: 4
266 # the number of slabs to use for the Infrastructure cache.
267 # the number of slabs must be a power of 2.
[all …]
H A Dunbound.conf.rst418 @@UAHL@unbound.conf@msg-cache-slabs@@: *<number>*
419 Number of slabs in the message cache.
667 @@UAHL@unbound.conf@rrset-cache-slabs@@: *<number>*
668 Number of slabs in the RRset cache.
728 @@UAHL@unbound.conf@infra-cache-slabs@@: *<number>*
729 Number of slabs in the infrastructure cache.
2418 @@UAHL@unbound.conf@key-cache-slabs@@: *<number>*
2419 Number of slabs in the key cache.
2959 @@UAHL@unbound.conf@ratelimit-slabs@@: *<number>*
2960 Number of slabs in the ratelimit tracking data structure.
[all …]
H A Dunbound-control.rst182 any **\*-slabs** options and
H A DChangelog249 - Merge #1276: Auto-configure '-slabs' values.
5521 ip-ratelimit-slabs.
11944 - key cache size and slabs config options.
12491 - config settings for rrset cache size and slabs.
/freebsd/contrib/unbound/services/cache/
H A Drrset.c64 size_t slabs = (cfg?cfg->rrset_cache_slabs:HASH_DEFAULT_SLABS); in rrset_cache_create() local
68 struct rrset_cache *r = (struct rrset_cache*)slabhash_create(slabs, in rrset_cache_create()
/freebsd/contrib/bc/include/
H A Dvm.h760 BcVec slabs; member
/freebsd/contrib/bc/src/
H A Dvm.c671 bc_slabvec_free(&vm->slabs);
1629 bc_slabvec_init(&vm->slabs);
H A Dvector.c452 id.name = bc_slabvec_strdup(&vm->slabs, name); in bc_map_insert()
/freebsd/sys/vm/
H A Duma_core.c1173 u_int slabs, pages; in zone_timeout() local
1194 if ((slabs = pages / keg->uk_ppera) > keg->uk_hash.uh_hashsize) { in zone_timeout()
1206 ret = hash_alloc(&newhash, 1 << fls(slabs)); in zone_timeout()
5232 int aflags, domain, slabs; local
5235 slabs = howmany(items, keg->uk_ipers);
5236 while (slabs-- > 0) {
/freebsd/contrib/unbound/contrib/
H A Dfastrpz.patch3202 /** number of slabs for ip_ratelimit cache */