Re: [PATCH] mm: add ratio in slabinfo print

From: Michal Hocko
Date: Mon Jan 11 2016 - 07:26:00 EST


On Mon 11-01-16 11:54:57, Xishi Qiu wrote:
> Add ratio(active_objs/num_objs) in /proc/slabinfo, it is used to show
> the availability factor in each slab.

What is the reason to add such a new value when it can be trivially
calculated from the userspace?

Besides that such a change would break existing parsers no?
--
Michal Hocko
SUSE Labs