rusage_max_memory is set sum of all memory chanks

refs #891
This commit is contained in:
Tomoki Shirasawa
2017-07-03 14:49:35 +09:00
parent 4236323661
commit 083cf3fcc9

View File

@@ -1103,7 +1103,7 @@ static void numa_init(void)
ihk_pagealloc_count(allocator), ihk_pagealloc_count(allocator),
numa_id); numa_id);
#ifdef ENABLE_RUSAGE #ifdef ENABLE_RUSAGE
rusage_max_memory = ihk_pagealloc_count(allocator) * PAGE_SIZE; rusage_max_memory += ihk_pagealloc_count(allocator) * PAGE_SIZE;
#endif #endif
} }
} }