Closed afbjorklund closed 6 years ago
According to later versions of procps, the top(1) value for "buff/cache" memory is supposed in addition to Buffers/Cached to also include Slab.
Interestingly, the biggest impact of this is in the "used" memory shown since that value is not reported but just calculated using the others:
// {"Cached", &kb_page_cache}, kb_main_cached = kb_page_cache + kb_slab; kb_swap_used = kb_swap_total - kb_swap_free; kb_main_used = kb_main_total - kb_main_free - kb_main_cached - kb_main_buffers;
In order to have more accurate memory reporting on Linux, make sure to include this metric in the default configuration for the memory module.
According to later versions of procps, the top(1) value for "buff/cache" memory is supposed in addition to Buffers/Cached to also include Slab.
Interestingly, the biggest impact of this is in the "used" memory shown since that value is not reported but just calculated using the others:
In order to have more accurate memory reporting on Linux, make sure to include this metric in the default configuration for the memory module.