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


Groups > linux.kernel > #1696714

Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs interface

From "Huang\, Ying" <ying.huang@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs interface
Date 2017-07-26 03:40 +0200
Message-ID <u7jsS-29R-13@gated-at.bofh.it> (permalink)
References <u6XiF-4S8-3@gated-at.bofh.it> <u6XiG-4S8-5@gated-at.bofh.it> <u7ffC-82I-81@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi, Rik,

Rik van Riel <riel@redhat.com> writes:

> On Tue, 2017-07-25 at 09:51 +0800, Huang, Ying wrote:
>> From: Huang Ying <ying.huang@intel.com>
>> 
>> The swap cache stats could be gotten only via sysrq, which isn't
>> convenient in some situation.  So the sysfs interface of swap cache
>> stats is added for that.  The added sysfs directories/files are as
>> follow,
>> 
>> /sys/kernel/mm/swap
>> /sys/kernel/mm/swap/cache_find_total
>> /sys/kernel/mm/swap/cache_find_success
>> /sys/kernel/mm/swap/cache_add
>> /sys/kernel/mm/swap/cache_del
>> /sys/kernel/mm/swap/cache_pages
>> 
> What is the advantage of this vs new fields in
> /proc/vmstat, which is where most of the VM
> statistics seem to live?

As proposed by Andrew, will use debugfs for them, because they are
mostly developer related.

Best Regards,
Huang, Ying

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


Thread

[PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs interface "Huang, Ying" <ying.huang@intel.com> - 2017-07-25 04:00 +0200
  Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs  interface Andrew Morton <akpm@linux-foundation.org> - 2017-07-25 22:50 +0200
    Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs interface "Huang\, Ying" <ying.huang@intel.com> - 2017-07-26 03:30 +0200
  Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs  interface Rik van Riel <riel@redhat.com> - 2017-07-25 23:10 +0200
    Re: [PATCH -mm -v3 1/6] mm, swap: Add swap cache statistics sysfs interface "Huang\, Ying" <ying.huang@intel.com> - 2017-07-26 03:40 +0200

csiph-web