Re: [RFI] Shared accounting for memory resource controller

From: KAMEZAWA Hiroyuki
Date: Wed Apr 08 2009 - 02:17:21 EST


On Wed, 8 Apr 2009 10:59:04 +0530
Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:


> > no serious intention.
> > Just because you wrote "expect the user to account all cached pages as shared" ;)
> >
>
> OK, I noticed another thing, our RSS accounting is not RSS per-se, it
> includes only anon RSS, file backed pages are accounted as cached.
> I'll send out a patch to see if we can include anon RSS as well.
>

I think we can't do it in memcg layer without new-hook because file caches
are added to radix-tree before mapped.

mm struct has anon_rss and file_rss coutners. Then, you can show
sum of total maps of file pages. maybe.

Thanks,
-Kame

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/