Home
last modified time | relevance | path

Searched refs:cluster_size (Results 1 – 4 of 4) sorted by relevance

/unit/src/test/
H A Dnxt_mp_test.c25 const size_t cluster_size = page_size * 8; in nxt_mp_test() local
36 valid = nxt_mp_test_sizes(cluster_size, page_alignment, page_size, in nxt_mp_test()
42 mp = nxt_mp_create(cluster_size, page_alignment, page_size, min_chunk_size); in nxt_mp_test()
H A Dnxt_lvlhsh_test.c131 const size_t cluster_size = 4096; in nxt_lvlhsh_test() local
137 mp = nxt_mp_create(cluster_size, page_alignment, page_size, in nxt_lvlhsh_test()
/unit/src/
H A Dnxt_mp.c110 uint32_t cluster_size; member
262 mp->cluster_size = cluster_size; in nxt_mp_create()
279 nxt_debug_alloc("mp %p create(%uz, %uz, %uz, %uz)", mp, cluster_size, in nxt_mp_create()
370 && cluster_size >= page_size in nxt_mp_test_sizes()
371 && cluster_size / page_size <= 256 in nxt_mp_test_sizes()
372 && cluster_size % page_size == 0)); in nxt_mp_test_sizes()
673 n = mp->cluster_size >> mp->page_size_shift; in nxt_mp_alloc_cluster()
683 cluster->size = mp->cluster_size; in nxt_mp_alloc_cluster()
685 cluster->start = nxt_memalign(mp->page_alignment, mp->cluster_size); in nxt_mp_alloc_cluster()
938 n = mp->cluster_size >> mp->page_size_shift; in nxt_mp_chunk_free()
[all …]
H A Dnxt_mp.h34 NXT_EXPORT nxt_mp_t *nxt_mp_create(size_t cluster_size, size_t page_alignment,
56 NXT_EXPORT nxt_bool_t nxt_mp_test_sizes(size_t cluster_size,