Dave Hansen wrote: > On Thu, 2006-08-17 at 17:27 +0400, Kirill Korotaev wrote: > >>charged kernel objects can't be _reclaimed_. how do you propose >>to reclaim tasks page tables or files or task struct or vma or etc.? > > > Do you have any statistics on which of these objects are the most > troublesome? If it _is_ pagetables, for instance, it is quite > conceivable that we could reclaim them. they all are troublesome :/ user can create lots of vmas, w/o page tables. lots of fdsets, ipcids. These are not reclaimable.
Also consider the following scenario with reclaimable page tables. e.g. user hit kmemsize limit due to fat page tables. kernel reclaims some of the page tables and frees user kenerl memory. after that user creates some uncreclaimable objects like fdsets or ipcs and then accesses memory with reclaimed page tables. Sooner or later we kill user with SIGSEGV from page fault due to no memory. This is worse then returning ENOMEM from poll() or mmap() where user allocates kernel objects. > This one probably deserves a big, fat comment, though. ;) tell me where to write it and what? :) Thanks, Kirill ------------------------------------------------------------------------- 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