RE: [PATCH 1/3] mm, sysctl: make VM stats configurable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Michal Hocko [mailto:mhocko@xxxxxxxxxx] 
Sent: Friday, September 15, 2017 7:50 PM
To: Wang, Kemi <kemi.wang@xxxxxxxxx>
Cc: Luis R . Rodriguez <mcgrof@xxxxxxxxxx>; Kees Cook <keescook@xxxxxxxxxxxx>; Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>; Jonathan Corbet <corbet@xxxxxxx>; Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>; Johannes Weiner <hannes@xxxxxxxxxxx>; Christopher Lameter <cl@xxxxxxxxx>; Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>; Vlastimil Babka <vbabka@xxxxxxx>; Hillf Danton <hillf.zj@xxxxxxxxxxxxxxx>; Dave <dave.hansen@xxxxxxxxxxxxxxx>; Chen, Tim C <tim.c.chen@xxxxxxxxx>; Kleen, Andi <andi.kleen@xxxxxxxxx>; Jesper Dangaard Brouer <brouer@xxxxxxxxxx>; Huang, Ying <ying.huang@xxxxxxxxx>; Lu, Aaron <aaron.lu@xxxxxxxxx>; Proc sysctl <linux-fsdevel@xxxxxxxxxxxxxxx>; Linux MM <linux-mm@xxxxxxxxx>; Linux Kernel <linux-kernel@xxxxxxxxxxxxxxx>
Subject: Re: [PATCH 1/3] mm, sysctl: make VM stats configurable

On Fri 15-09-17 17:23:24, Kemi Wang wrote:
> This patch adds a tunable interface that allows VM stats configurable, as
> suggested by Dave Hansen and Ying Huang.
> 
> When performance becomes a bottleneck and you can tolerate some possible
> tool breakage and some decreased counter precision (e.g. numa counter), you
> can do:
> 	echo [C|c]oarse > /proc/sys/vm/vmstat_mode
> 
> When performance is not a bottleneck and you want all tooling to work, you
> can do:
> 	echo [S|s]trict > /proc/sys/vm/vmstat_mode
> 
> We recommend automatic detection of virtual memory statistics by system,
> this is also system default configuration, you can do:
> 	echo [A|a]uto > /proc/sys/vm/vmstat_mode
> 
> The next patch handles numa statistics distinctively based-on different VM
> stats mode.

I would just merge this with the second patch so that it is clear how
those modes are implemented. I am also wondering why cannot we have a
much simpler interface and implementation to enable/disable numa stats
(btw. sysctl_vm_numa_stats would be more descriptive IMHO).

The motivation is that we propose a general tunable  interface for VM stats.
This would be more scalable, since we don't have to add an individual
Interface for each type of counter that can be configurable.
In the second patch, NUMA stats, as an example, can benefit for that.

If you still hold your idea, I don't mind to merge them together.
-- 
Michal Hocko
SUSE Labs



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux