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

2017-09-17 Thread Michal Hocko
On Mon 18-09-17 10:44:52, kemi wrote: > > > On 2017年09月15日 22:28, Michal Hocko wrote: > > On Fri 15-09-17 07:16:23, Dave Hansen wrote: > >> On 09/15/2017 04:49 AM, Michal Hocko wrote: > >>> Why do we need an auto-mode? Is it safe to enforce by default. > >> > >> Do we *need* it? Not really. >

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

2017-09-17 Thread Michal Hocko
On Mon 18-09-17 10:44:52, kemi wrote: > > > On 2017年09月15日 22:28, Michal Hocko wrote: > > On Fri 15-09-17 07:16:23, Dave Hansen wrote: > >> On 09/15/2017 04:49 AM, Michal Hocko wrote: > >>> Why do we need an auto-mode? Is it safe to enforce by default. > >> > >> Do we *need* it? Not really. >

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

2017-09-17 Thread Michal Hocko
On Mon 18-09-17 11:22:37, kemi wrote: > > > On 2017年09月15日 19:49, Michal Hocko wrote: > > 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

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

2017-09-17 Thread Michal Hocko
On Mon 18-09-17 11:22:37, kemi wrote: > > > On 2017年09月15日 19:49, Michal Hocko wrote: > > 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

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

2017-09-17 Thread kemi
On 2017年09月15日 19:49, Michal Hocko wrote: > 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

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

2017-09-17 Thread kemi
On 2017年09月15日 19:49, Michal Hocko wrote: > 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

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

2017-09-17 Thread kemi
On 2017年09月15日 22:28, Michal Hocko wrote: > On Fri 15-09-17 07:16:23, Dave Hansen wrote: >> On 09/15/2017 04:49 AM, Michal Hocko wrote: >>> Why do we need an auto-mode? Is it safe to enforce by default. >> >> Do we *need* it? Not really. >> >> But, it does offer the best of both worlds: The

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

2017-09-17 Thread kemi
On 2017年09月15日 22:28, Michal Hocko wrote: > On Fri 15-09-17 07:16:23, Dave Hansen wrote: >> On 09/15/2017 04:49 AM, Michal Hocko wrote: >>> Why do we need an auto-mode? Is it safe to enforce by default. >> >> Do we *need* it? Not really. >> >> But, it does offer the best of both worlds: The

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

2017-09-15 Thread Wang, Kemi
roc sysctl <linux-fsde...@vger.kernel.org>; Linux MM <linux...@kvack.org>; Linux Kernel <linux-kernel@vger.kernel.org> 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 confi

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

2017-09-15 Thread Wang, Kemi
Babka ; Hillf Danton ; Dave ; Chen, Tim C ; Kleen, Andi ; Jesper Dangaard Brouer ; Huang, Ying ; Lu, Aaron ; Proc sysctl ; Linux MM ; Linux Kernel 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 interf

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

2017-09-15 Thread Michal Hocko
On Fri 15-09-17 07:16:23, Dave Hansen wrote: > On 09/15/2017 04:49 AM, Michal Hocko wrote: > > Why do we need an auto-mode? Is it safe to enforce by default. > > Do we *need* it? Not really. > > But, it does offer the best of both worlds: The vast majority of users > see virtually no impact

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

2017-09-15 Thread Michal Hocko
On Fri 15-09-17 07:16:23, Dave Hansen wrote: > On 09/15/2017 04:49 AM, Michal Hocko wrote: > > Why do we need an auto-mode? Is it safe to enforce by default. > > Do we *need* it? Not really. > > But, it does offer the best of both worlds: The vast majority of users > see virtually no impact

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

2017-09-15 Thread Dave Hansen
On 09/15/2017 04:49 AM, Michal Hocko wrote: > Why do we need an auto-mode? Is it safe to enforce by default. Do we *need* it? Not really. But, it does offer the best of both worlds: The vast majority of users see virtually no impact from the counters. The minority that do need them pay the

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

2017-09-15 Thread Dave Hansen
On 09/15/2017 04:49 AM, Michal Hocko wrote: > Why do we need an auto-mode? Is it safe to enforce by default. Do we *need* it? Not really. But, it does offer the best of both worlds: The vast majority of users see virtually no impact from the counters. The minority that do need them pay the

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

2017-09-15 Thread Michal Hocko
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.

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

2017-09-15 Thread Michal Hocko
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.

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

2017-09-15 Thread Kemi Wang
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 >

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

2017-09-15 Thread Kemi Wang
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 >