lkml.org 
[lkml]   [2000]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: What to do when out of memory
Date
From
> It seems it is possible to keep track of memory such that any successful
> mmap will always be pageable - keep track of allocated pages which are
> pending paging and subtract that from free_pages in vm_enough_memory().
> Still, this is getting back to a short thread I started long ago - if I
> have some spare time I'll try implementing it.

I actually implemented it for 1.2.x by simply counting vma sizes in
mm/*.c. You end up needing a lot of swap 'just in case'. If you want to be
completely correct you need to account all R/O shared pages as potentially
private because of ptrace().
Alan


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

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.086 / U:1.148 seconds]
©2003-2014 Jasper Spaans. hosted at Digital Ocean