lkml.org 
[lkml]   [2003]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: PATCH: allow percentile size of tmpfs (2.5.66 / 2.4.20-pre2)
    On Mon, 7 Apr 2003, Christoph Rohland wrote:
    > On Wed, 2 Apr 2003, Hugh Dickins wrote:
    > > Don't blame Christoph for that, one of these days I'll face up to
    > > my responsibilities and make swapoff fail (probably get itself
    > > OOM-killed) instead of having everything else OOM-killed.
    >
    > The hooks for the accounting would solve this easily: the swapoff hook
    > would realize that there is not enough space left for the tmpfs
    > instance and simply return an error. So swapoff would fail.
    > We would not even stress the vm to swapin all pages until
    > realizingthat there is not enough memory left.

    You're supposing that it's tmpfs causing this problem: not at all,
    that's just an easy way to show it. Take away tmpfs, and swapoff
    is still liable to hang, with other tasks OOMing (even when strict
    no-overcommit accounting: I've not yet added the check it needs).

    Hugh

    -
    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-03-22 13:34    [W:2.499 / U:0.368 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site