Home
last modified time | relevance | path

Searched refs:page_size (Results 1 – 7 of 7) sorted by relevance

/unit/src/
H A Dnxt_mem_zone.c127 nxt_uint_t page_size);
129 nxt_uint_t page_size);
131 nxt_uint_t page_size);
166 if (nxt_slow_path((page_size & (page_size - 1)) != 0)) { in nxt_mem_zone_init()
221 last = page_size / 16; in nxt_mem_zone_pages()
226 chunks = page_size / size; in nxt_mem_zone_pages()
269 zone->small_bitmap_min_size = page_size / 32; in nxt_mem_zone_pages()
271 zone->page_size_mask = page_size - 1; in nxt_mem_zone_pages()
272 zone->max_chunk_size = page_size / 2; in nxt_mem_zone_pages()
293 slot[0].chunks = page_size / 16; in nxt_mem_zone_slots_init()
[all …]
H A Dnxt_mp.c108 uint32_t page_size; member
250 page_size_shift = nxt_lg2(page_size); in nxt_mp_create()
260 mp->page_size = page_size; in nxt_mp_create()
366 valid = nxt_expect(1, (page_size >= 64 in nxt_mp_test_sizes()
370 && cluster_size >= page_size in nxt_mp_test_sizes()
396 if (size <= mp->page_size) { in nxt_mp_alloc()
532 if (size <= mp->page_size / 2) { in nxt_mp_alloc_small()
611 available = mp->page_size - page->u.taken; in nxt_mp_get_small()
884 if (size != mp->page_size) { in nxt_mp_chunk_free()
979 if (size <= mp->page_size) { in nxt_mp_nget()
[all …]
H A Dnxt_mp.h35 size_t page_size, size_t min_chunk_size)
57 size_t page_alignment, size_t page_size, size_t min_chunk_size);
H A Dnxt_mem_zone.h15 nxt_uint_t page_size);
/unit/src/test/
H A Dnxt_mp_test.c23 const size_t page_size = 128; in nxt_mp_test() local
25 const size_t cluster_size = page_size * 8; in nxt_mp_test()
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_mem_zone_test.c20 const size_t page_size = 4096; in nxt_mem_zone_test() local
28 start = nxt_memalign(page_size, zone_size); in nxt_mem_zone_test()
33 zone = nxt_mem_zone_init(start, zone_size, page_size); in nxt_mem_zone_test()
H A Dnxt_lvlhsh_test.c129 const size_t page_size = 1024; in nxt_lvlhsh_test() local
137 mp = nxt_mp_create(cluster_size, page_alignment, page_size, in nxt_lvlhsh_test()