numa_init(): fix rusage memory counting

This commit is contained in:
Balazs Gerofi
2017-07-19 08:23:05 +09:00
parent 01f5e46865
commit 51ed8dce06

View File

@ -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);