Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-11 Thread Kamezawa Hiroyuki
On 2015/08/10 17:14, Vladimir Davydov wrote: On Sun, Aug 09, 2015 at 11:12:25PM +0900, Kamezawa Hiroyuki wrote: On 2015/08/08 22:05, Vladimir Davydov wrote: On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: ... All ? hmm. It seems that mixture of record of global memory

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-11 Thread Kamezawa Hiroyuki
On 2015/08/10 17:14, Vladimir Davydov wrote: On Sun, Aug 09, 2015 at 11:12:25PM +0900, Kamezawa Hiroyuki wrote: On 2015/08/08 22:05, Vladimir Davydov wrote: On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: ... All ? hmm. It seems that mixture of record of global memory

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-10 Thread Vladimir Davydov
On Sun, Aug 09, 2015 at 11:12:25PM +0900, Kamezawa Hiroyuki wrote: > On 2015/08/08 22:05, Vladimir Davydov wrote: > >On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: ... > >>All ? hmm. It seems that mixture of record of global memory pressure and of > >>local memory > >>pressure

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-10 Thread Vladimir Davydov
On Sun, Aug 09, 2015 at 11:12:25PM +0900, Kamezawa Hiroyuki wrote: On 2015/08/08 22:05, Vladimir Davydov wrote: On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: ... All ? hmm. It seems that mixture of record of global memory pressure and of local memory pressure is just

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-09 Thread Kamezawa Hiroyuki
On 2015/08/08 22:05, Vladimir Davydov wrote: On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: On 2015/08/06 17:59, Vladimir Davydov wrote: On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: I wonder, rather than collecting more data, rough calculation can

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-09 Thread Kamezawa Hiroyuki
On 2015/08/08 22:05, Vladimir Davydov wrote: On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: On 2015/08/06 17:59, Vladimir Davydov wrote: On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: I wonder, rather than collecting more data, rough calculation can

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-08 Thread Vladimir Davydov
On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: > On 2015/08/06 17:59, Vladimir Davydov wrote: > >On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: > >>I wonder, rather than collecting more data, rough calculation can help the > >>situation. > >>for example, >

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-08 Thread Vladimir Davydov
On Fri, Aug 07, 2015 at 10:38:16AM +0900, Kamezawa Hiroyuki wrote: On 2015/08/06 17:59, Vladimir Davydov wrote: On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: I wonder, rather than collecting more data, rough calculation can help the situation. for example,

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-06 Thread Kamezawa Hiroyuki
On 2015/08/06 17:59, Vladimir Davydov wrote: On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: Reading discussion, I feel storing more data is difficult, too. Yep, even with the current 16-bit memcg id. Things would get even worse if we wanted to extend it one day (will we?)

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-06 Thread Vladimir Davydov
On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: > Reading discussion, I feel storing more data is difficult, too. Yep, even with the current 16-bit memcg id. Things would get even worse if we wanted to extend it one day (will we?) > > I wonder, rather than collecting more

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-06 Thread Kamezawa Hiroyuki
On 2015/08/06 17:59, Vladimir Davydov wrote: On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: Reading discussion, I feel storing more data is difficult, too. Yep, even with the current 16-bit memcg id. Things would get even worse if we wanted to extend it one day (will we?)

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-06 Thread Vladimir Davydov
On Wed, Aug 05, 2015 at 10:34:58AM +0900, Kamezawa Hiroyuki wrote: Reading discussion, I feel storing more data is difficult, too. Yep, even with the current 16-bit memcg id. Things would get even worse if we wanted to extend it one day (will we?) I wonder, rather than collecting more data,

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-04 Thread Kamezawa Hiroyuki
On 2015/08/03 21:04, Vladimir Davydov wrote: > Hi, > > Currently, workingset detection logic is not memcg aware - inactive_age > is maintained per zone. As a result, if memory cgroups are used, > refaulted file pages are activated randomly. This patch set makes > inactive_age per lruvec so that

Re: [PATCH 0/3] Make workingset detection logic memcg aware

2015-08-04 Thread Kamezawa Hiroyuki
On 2015/08/03 21:04, Vladimir Davydov wrote: Hi, Currently, workingset detection logic is not memcg aware - inactive_age is maintained per zone. As a result, if memory cgroups are used, refaulted file pages are activated randomly. This patch set makes inactive_age per lruvec so that

[PATCH 0/3] Make workingset detection logic memcg aware

2015-08-03 Thread Vladimir Davydov
Hi, Currently, workingset detection logic is not memcg aware - inactive_age is maintained per zone. As a result, if memory cgroups are used, refaulted file pages are activated randomly. This patch set makes inactive_age per lruvec so that workingset detection will work correctly for memory cgroup

[PATCH 0/3] Make workingset detection logic memcg aware

2015-08-03 Thread Vladimir Davydov
Hi, Currently, workingset detection logic is not memcg aware - inactive_age is maintained per zone. As a result, if memory cgroups are used, refaulted file pages are activated randomly. This patch set makes inactive_age per lruvec so that workingset detection will work correctly for memory cgroup