Re: [RFC] mm:change meminfo cached calculation

2015-01-11 Thread Konstantin Khlebnikov
On Wed, Jan 7, 2015 at 5:03 AM, Hugh Dickins wrote: > On Tue, 6 Jan 2015, Andrew Morton wrote: >> On Tue, 6 Jan 2015 17:04:33 -0800 (PST) Hugh Dickins >> wrote: >> > On Tue, 6 Jan 2015, Andrew Morton wrote: >> > > On Fri, 26 Dec 2014 19:56:49 +0800 "Wang, Yalin" >> > > wrote: >> > > >> > > > T

Re: [RFC] mm:change meminfo cached calculation

2015-01-06 Thread Hugh Dickins
On Tue, 6 Jan 2015, Andrew Morton wrote: > On Tue, 6 Jan 2015 17:04:33 -0800 (PST) Hugh Dickins wrote: > > On Tue, 6 Jan 2015, Andrew Morton wrote: > > > On Fri, 26 Dec 2014 19:56:49 +0800 "Wang, Yalin" > > > wrote: > > > > > > > This patch subtract sharedram from cached, > > > > sharedram can

Re: [RFC] mm:change meminfo cached calculation

2015-01-06 Thread Andrew Morton
On Tue, 6 Jan 2015 17:04:33 -0800 (PST) Hugh Dickins wrote: > On Tue, 6 Jan 2015, Andrew Morton wrote: > > On Fri, 26 Dec 2014 19:56:49 +0800 "Wang, Yalin" > > wrote: > > > > > This patch subtract sharedram from cached, > > > sharedram can only be swap into swap partitions, > > > they should b

Re: [RFC] mm:change meminfo cached calculation

2015-01-06 Thread Hugh Dickins
On Tue, 6 Jan 2015, Andrew Morton wrote: > On Fri, 26 Dec 2014 19:56:49 +0800 "Wang, Yalin" > wrote: > > > This patch subtract sharedram from cached, > > sharedram can only be swap into swap partitions, > > they should be treated as swap pages, not as cached pages. > > > > ... > > > > --- a/fs/

Re: [RFC] mm:change meminfo cached calculation

2015-01-06 Thread Andrew Morton
On Fri, 26 Dec 2014 19:56:49 +0800 "Wang, Yalin" wrote: > This patch subtract sharedram from cached, > sharedram can only be swap into swap partitions, > they should be treated as swap pages, not as cached pages. > > ... > > --- a/fs/proc/meminfo.c > +++ b/fs/proc/meminfo.c > @@ -45,7 +45,7 @@

[RFC] mm:change meminfo cached calculation

2014-12-26 Thread Wang, Yalin
This patch subtract sharedram from cached, sharedram can only be swap into swap partitions, they should be treated as swap pages, not as cached pages. Signed-off-by: Yalin Wang --- fs/proc/meminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/meminfo.c b/fs/proc/m