server-skynet-source-3rd-je.../test/unit
Qi Wang ec532e2c5c Implement per-CPU arena.
The new feature, opt.percpu_arena, determines thread-arena association
dynamically based CPU id. Three modes are supported: "percpu", "phycpu"
and disabled.

"percpu" uses the current core id (with help from sched_getcpu())
directly as the arena index, while "phycpu" will assign threads on the
same physical CPU to the same arena. In other words, "percpu" means # of
arenas == # of CPUs, while "phycpu" has # of arenas == 1/2 * (# of
CPUs). Note that no runtime check on whether hyper threading is enabled
is added yet.

When enabled, threads will be migrated between arenas when a CPU change
is detected. In the current design, to reduce overhead from reading CPU
id, each arena tracks the thread accessed most recently. When a new
thread comes in, we will read CPU id and update arena if necessary.
2017-03-08 23:19:01 -08:00
..
a0.c Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
arena_reset_prof.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
arena_reset_prof.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
arena_reset.c Disentangle arena and extent locking. 2017-02-01 16:43:46 -08:00
atomic.c Add atomic types for ssize_t 2017-03-06 18:49:19 -08:00
base.c Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
bit_util.c Disentangle assert and util 2017-03-06 15:08:43 -08:00
bitmap.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
ckh.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
decay.c Store associated arena in tcache. 2017-03-07 12:58:11 -08:00
decay.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
extent_quantize.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
fork.c Fix arena_prefork lock rank order for witness. 2017-03-08 23:07:27 -08:00
hash.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
junk_alloc.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk_alloc.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk_free.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk_free.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
junk.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
mallctl.c Implement per-CPU arena. 2017-03-08 23:19:01 -08:00
malloc_io.c Disentangle assert and util 2017-03-06 15:08:43 -08:00
math.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
mq.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
mtx.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
nstime.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
pack.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
pack.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
pages.c Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
ph.c Add any() and remove_any() to ph. 2017-03-07 10:25:33 -08:00
prng.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
prof_accum.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_accum.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_active.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_active.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_gdump.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_gdump.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_idump.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_idump.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_reset.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_reset.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_tctx.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_tctx.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_thread_name.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
prof_thread_name.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
ql.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
qr.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
rb.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
rtree.c Remove rtree support for 0 (NULL) keys. 2017-02-08 18:50:03 -08:00
SFMT.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
size_classes.c Remove extraneous parens around return arguments. 2017-01-20 21:43:07 -08:00
slab.c Disentangle arena and extent locking. 2017-02-01 16:43:46 -08:00
smoothstep.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
spin.c Enhance spin_adaptive() to yield after several iterations. 2017-02-08 18:50:03 -08:00
stats_print.c Silence harmless warnings discovered via run_tests.sh. 2017-02-01 11:29:12 -08:00
stats.c Implement per-CPU arena. 2017-03-08 23:19:01 -08:00
ticker.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
tsd.c Replace tabs following #define with spaces. 2017-01-20 21:45:53 -08:00
witness.c Add witness_assert_depth[_to_rank](). 2017-02-01 16:43:46 -08:00
zero.c Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
zero.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00