mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: greg@kroah.com, linux-kernel@vger.kernel.org, andrea@suse.de
Subject: Re: [patch 2/5] setup_per_zone_lowmem_reserve() oops fix
Date: Mon, 7 Mar 2005 00:20:48 -0800	[thread overview]
Message-ID: <20050307002048.51aac96b.akpm@osdl.org> (raw)
In-Reply-To: <422C0C5D.3060404@yahoo.com.au>

Nick Piggin <nickpiggin@yahoo.com.au> wrote:
>
> akpm@osdl.org wrote:
> > If you do 'echo 0 0 > /proc/sys/vm/lowmem_reserve_ratio' the kernel gets a
> > divide-by-zero.
> > 
> > Prevent that, and fiddle with some whitespace too.
> > 
> > Signed-off-by: Andrew Morton <akpm@osdl.org>
> 
> Can we instead have a patch that makes the value zero turn off the
> lowmem reserve entirely if it is set to zero?

That would make sense, I guess.

> Just now I was just testing, and found no easy way to do this other
> than to make the value large enough that the reserve is insignificant.

Me too.  I use 1000 to get my 50MB of pagecache back.

I haven't thought about it yet, but there must be some way to avoid leaving
huge amounts of lowmem free.  It should be OK to allow lowmem to be fully
used, as long as there's sufficent reclaimable stuff in there - slab,
blockdev pagecache, etc.  (Assuming nothing sane mmaps blockdevs.  INND
does).  Dunno....


  reply	other threads:[~2005-03-07  8:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-04 21:16 akpm
2005-03-06  6:23 ` Greg KH
2005-03-07  8:10 ` Nick Piggin
2005-03-07  8:20   ` Andrew Morton [this message]
2005-03-07 13:02     ` Andrea Arcangeli
2005-03-07 13:00   ` Andrea Arcangeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050307002048.51aac96b.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=andrea@suse.de \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®