Balbir wrote: > Paul Menage wrote: > > On 10/31/06, Balbir Singh <[EMAIL PROTECTED]> wrote: > >> I thought this would be hard to do in general, but with a page --> > >> container mapping that will come as a result of the memory controller, > >> will it still be that hard? > > > > I meant that it's pretty much impossible with the current APIs > > provided by the kernel. That's why one of the most useful things that > > a memory controller can provide is accounting and limiting of page > > cache usage. > > > > Paul > > Thanks for clarifying that! I completely agree, page cache control is > very important!
Doesn't "zone_reclaim" (added by Christoph Lameter over the last several months) go a long way toward resolving this page cache control problem? Essentially, if my understanding is correct, zone reclaim has tasks that are asking for memory first do some work towards keeping enough memory free, such as doing some work reclaiming slab memory and pushing swap and pushing dirty buffers to disk. Tasks must help out as is needed to keep the per-node free memory above watermarks. This way, you don't actually have to account for who owns what, with all the problems arbitrating between claims on shared resources. Rather, you just charge the next customer who comes in the front door (aka, mm/page_alloc.c:__alloc_pages()) a modest overhead if they happen to show up when free memory supplies are running short. On average, it has the same affect as a strict accounting system, of charging the heavy users more (more CPU cycles in kernel vmscan code and clock cycles waiting on disk heads). But it does so without any need of accurate per-user accounting. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <[EMAIL PROTECTED]> 1.925.600.0401 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ ckrm-tech mailing list https://lists.sourceforge.net/lists/listinfo/ckrm-tech