Home
last modified time | relevance | path

Searched refs:narenas (Results 1 – 11 of 11) sorted by relevance

/f-stack/app/redis-5.0.5/deps/jemalloc/msvc/test_threads/
H A Dtest_threads.cpp21 int narenas = 0; in test_threads() local
22 size_t sz = sizeof(narenas); in test_threads()
23 je_mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0); in test_threads()
24 if (narenas != 3) { in test_threads()
25 printf("Error: unexpected number of arenas: %d\n", narenas); in test_threads()
31 static const int numThreads = narenas + 1, numAllocsMax = 25, numIter1 = 50, numIter2 = 50; in test_threads()
/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dmallctl.c164 TEST_MALLCTL_OPT(unsigned, narenas, always); in TEST_BEGIN()
333 unsigned old_arena_ind, new_arena_ind, narenas; in TEST_BEGIN() local
343 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); in TEST_BEGIN()
346 new_arena_ind = narenas - 1; in TEST_BEGIN()
369 unsigned narenas, i; in TEST_BEGIN() local
375 sz = sizeof(narenas); in TEST_BEGIN()
381 for (i = 0; i < narenas; i++) { in TEST_BEGIN()
471 unsigned narenas; in TEST_BEGIN() local
483 mib[1] = narenas; in TEST_BEGIN()
494 unsigned narenas; in TEST_BEGIN() local
[all …]
/f-stack/app/redis-5.0.5/deps/jemalloc/test/integration/
H A Dextent.c103 unsigned narenas; in test_manual_hook_auto_arena() local
113 assert_d_eq(mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0), in test_manual_hook_auto_arena()
115 if (narenas == 1) { in test_manual_hook_auto_arena()
/f-stack/app/redis-5.0.5/deps/jemalloc/src/
H A Dctl.c627 ctl_arenas->narenas)); in arenas_i2a_impl()
894 arena_ind = ctl_arenas->narenas; in ctl_arena_init()
908 ctl_arenas->narenas++; in ctl_arena_init()
1945 unsigned narenas = ctl_arenas->narenas; in arena_i_decay() local
1955 for (i = 0; i < narenas; i++) { in arena_i_decay()
1974 assert(arena_ind < narenas); in arena_i_decay()
2170 ctl_arenas->narenas) { in arena_i_dss_ctl()
2348 if (i > ctl_arenas->narenas) { in arena_i_index()
2367 unsigned narenas; in arenas_narenas_ctl() local
2375 narenas = ctl_arenas->narenas; in arenas_narenas_ctl()
[all …]
H A Djemalloc.c296 narenas_total_set(unsigned narenas) { in narenas_total_set() argument
297 atomic_store_u(&narenas_total, narenas, ATOMIC_RELEASE); in narenas_total_set()
636 unsigned narenas, i; in stats_print_atexit() local
647 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in stats_print_atexit()
3197 unsigned i, j, narenas; in jemalloc_prefork() local
3209 narenas = narenas_total_get(); in jemalloc_prefork()
3225 for (j = 0; j < narenas; j++) { in jemalloc_prefork()
3270 unsigned i, narenas; in jemalloc_postfork_parent() local
3283 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in jemalloc_postfork_parent()
3302 unsigned i, narenas; in jemalloc_postfork_child() local
[all …]
H A Dstats.c1154 unsigned narenas; in stats_print_helper() local
1158 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print_helper()
1162 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print_helper()
1167 for (i = ninitialized = 0; i < narenas; i++) { in stats_print_helper()
1204 for (i = j = 0; i < narenas; i++) { in stats_print_helper()
H A Dbackground_thread.c290 unsigned narenas = narenas_total_get();
292 for (unsigned i = ind; i < narenas; i += max_background_threads) {
/f-stack/app/redis-5.0.5/deps/jemalloc/
H A DTUNING.md49 * [narenas](http://jemalloc.net/jemalloc.3.html#opt.narenas)
86 `narenas:1,lg_tcache_max:13` combined with shorter decay time (decreased
93 `narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0`
H A DChangeLog511 - Fix malloc_stats_print() to print opt.narenas correctly. (@jasone)
566 - Make opt.narenas unsigned rather than size_t. (@jasone)
/f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/internal/
H A Dctl.h81 unsigned narenas; member
/f-stack/app/redis-5.0.5/src/
H A Dobject.c1446 unsigned narenas = 0; in memoryCommand() local
1448 if (!je_mallctl("arenas.narenas", &narenas, &sz, NULL, 0)) { in memoryCommand()
1449 sprintf(tmp, "arena.%d.purge", narenas); in memoryCommand()