lkml.org 
[lkml]   [2005]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] swapin rlimit
    Ingo Molnar <mingo@elte.hu> wrote:
    >
    > * Andrew Morton <akpm@osdl.org> wrote:
    >
    > > Similarly, that SGI patch which was rejected 6-12 months ago to kill
    > > off processes once they started swapping. We thought that it could be
    > > done from userspace, but we need a way for userspace to detect when a
    > > task is being swapped on a per-task basis.
    >
    > wouldnt the clean solution here be a "swap ulimit"?

    Well it's _a_ solution, but it's terribly specific.

    How hard is it to read /proc/<pid>/nr_swapped_in_pages and if that's
    non-zero, kill <pid>?
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-11-04 08:39    [W:2.200 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site