Re: [PATCH -mm v6 5/6] proc: add kpageidle file

2015-07-11 Thread Vladimir Davydov
On Thu, Jul 09, 2015 at 04:19:00PM +0300, Vladimir Davydov wrote: > On Wed, Jul 08, 2015 at 04:01:13PM -0700, Andres Lagar-Cavilla wrote: > > On Fri, Jun 12, 2015 at 2:52 AM, Vladimir Davydov > > > +#ifdef CONFIG_IDLE_PAGE_TRACKING > > > +/* > > > + * Idle page tracking only considers user memory p

Re: [PATCH -mm v6 5/6] proc: add kpageidle file

2015-07-10 Thread Andres Lagar-Cavilla
Hi Vladimir, On Thu, Jul 9, 2015 at 6:19 AM, Vladimir Davydov wrote: > Hi Andres, > > On Wed, Jul 08, 2015 at 04:01:13PM -0700, Andres Lagar-Cavilla wrote: >> On Fri, Jun 12, 2015 at 2:52 AM, Vladimir Davydov > [...] >> > @@ -275,6 +276,179 @@ static const struct file_operations >> > proc_kpagec

Re: [PATCH -mm v6 5/6] proc: add kpageidle file

2015-07-09 Thread Vladimir Davydov
Hi Andres, On Wed, Jul 08, 2015 at 04:01:13PM -0700, Andres Lagar-Cavilla wrote: > On Fri, Jun 12, 2015 at 2:52 AM, Vladimir Davydov [...] > > @@ -275,6 +276,179 @@ static const struct file_operations > > proc_kpagecgroup_operations = { > > }; > > #endif /* CONFIG_MEMCG */ > > > > +#ifdef CONFI

Re: [PATCH -mm v6 5/6] proc: add kpageidle file

2015-07-08 Thread Andres Lagar-Cavilla
On Fri, Jun 12, 2015 at 2:52 AM, Vladimir Davydov wrote: > Knowing the portion of memory that is not used by a certain application > or memory cgroup (idle memory) can be useful for partitioning the system > efficiently, e.g. by setting memory cgroup limits appropriately. > Currently, the only mea

[PATCH -mm v6 5/6] proc: add kpageidle file

2015-06-12 Thread Vladimir Davydov
Knowing the portion of memory that is not used by a certain application or memory cgroup (idle memory) can be useful for partitioning the system efficiently, e.g. by setting memory cgroup limits appropriately. Currently, the only means to estimate the amount of idle memory provided by the kernel is