numa_init(): fix rusage memory counting
This commit is contained in:
@ -1192,8 +1192,7 @@ static void numa_init(void)
|
|||||||
numa_id);
|
numa_id);
|
||||||
#endif
|
#endif
|
||||||
#ifdef IHK_RBTREE_ALLOCATOR
|
#ifdef IHK_RBTREE_ALLOCATOR
|
||||||
rusage_total_memory_add(memory_nodes[numa_id].nr_free_pages *
|
rusage_total_memory_add(end - start);
|
||||||
PAGE_SIZE);
|
|
||||||
#else
|
#else
|
||||||
rusage_total_memory_add(ihk_pagealloc_count(allocator) *
|
rusage_total_memory_add(ihk_pagealloc_count(allocator) *
|
||||||
PAGE_SIZE);
|
PAGE_SIZE);
|
||||||
|
|||||||
Reference in New Issue
Block a user