Re: [PATCH 3/6] memcg: track shared inodes with dirty pages

2015-01-15 Thread Tejun Heo
Hello, On Thu, Jan 15, 2015 at 11:04:49PM +0400, Konstantin Khlebnikov wrote: > I know. Absolutely accurate per-page solution looks too complicated for me. > Is there any real demand for accurate handling dirty set in shared inodes? > Doing whole accounting in per-inode basis makes life so much ea

Re: [PATCH 3/6] memcg: track shared inodes with dirty pages

2015-01-15 Thread Konstantin Khlebnikov
On Thu, Jan 15, 2015 at 9:55 PM, Tejun Heo wrote: > On Thu, Jan 15, 2015 at 09:49:14PM +0300, Konstantin Khebnikov wrote: >> From: Konstantin Khlebnikov >> >> Inode is owned only by one memory cgroup, but if it's shared it might >> contain pages from multiple cgroups. This patch detects this situ

Re: [PATCH 3/6] memcg: track shared inodes with dirty pages

2015-01-15 Thread Tejun Heo
On Thu, Jan 15, 2015 at 09:49:14PM +0300, Konstantin Khebnikov wrote: > From: Konstantin Khlebnikov > > Inode is owned only by one memory cgroup, but if it's shared it might > contain pages from multiple cgroups. This patch detects this situation > in memory reclaiemer and marks dirty inode with