[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
    > 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().


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:56    [W:0.019 / U:9.716 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site