Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1306880

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

From Xishi Qiu <qiuxishi@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: add ratio in slabinfo print
Date 2016-01-12 02:10 +0100
Message-ID <qPVDc-25w-5@gated-at.bofh.it> (permalink)
References <qPBOc-5gC-59@gated-at.bofh.it> <qPJLJ-2jg-45@gated-at.bofh.it> <qPL18-34y-17@gated-at.bofh.it> <qPV0u-1AF-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016/1/12 8:20, David Rientjes wrote:

> On Mon, 11 Jan 2016, Xishi Qiu wrote:
> 
>>> 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?
>>
>> Oh, maybe it is.
>>
> 
> If you need the information internally, you could always create a library 
> around slabinfo and export the information for users who are interested 
> for your own use.  Doing anything other than appending fields to each line 
> is too dangerous, however, as a general rule.
> 
> 

OK, I know.

Thanks,
Xishi Qiu

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] mm: add ratio in slabinfo print Xishi Qiu <qiuxishi@huawei.com> - 2016-01-11 05:00 +0100
  Re: [PATCH] mm: add ratio in slabinfo print Michal Hocko <mhocko@kernel.org> - 2016-01-11 13:30 +0100
    Re: [PATCH] mm: add ratio in slabinfo print Xishi Qiu <qiuxishi@huawei.com> - 2016-01-11 14:50 +0100
      Re: [PATCH] mm: add ratio in slabinfo print Michal Hocko <mhocko@kernel.org> - 2016-01-11 14:50 +0100
      Re: [PATCH] mm: add ratio in slabinfo print David Rientjes <rientjes@google.com> - 2016-01-12 01:30 +0100
        Re: [PATCH] mm: add ratio in slabinfo print Xishi Qiu <qiuxishi@huawei.com> - 2016-01-12 02:10 +0100

csiph-web