LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: Larry Woodman <lwoodman@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: Problem with /proc/sys/vm/lowmem_reserve_ratio ???
Date: Mon, 18 Feb 2008 10:48:56 -0500	[thread overview]
Message-ID: <20080218104856.053e7682@bree.surriel.com> (raw)
In-Reply-To: <x49wsp272se.fsf@segfault.boston.devel.redhat.com>

On Mon, 18 Feb 2008 09:33:05 -0500
Jeff Moyer <jmoyer@redhat.com> wrote:

> Larry Woodman <lwoodman@redhat.com> writes:
> 
> > balance_pgdat() calls zone_watermark_ok() three times, the first call
> > passes a zero(0) in as the 4th argument.  This 4th argument is the
> > classzone_idx which is used as the index into the
> > zone->lowmem_reserve[] array.  Since setup_per_zone_lowmem_reserve()
> > always sets the zone->lowmem_reserve[0] = 0(because there is nothing
> > below the DMA zone), zone_watermark_ok() will not consider the
> > lowmem_reserve pages when zero is passed as the 4th arg.  Shouldnt this
> > 4th argument be either "i" or "nr_zones - 1" ???
> 
> That certainly looks like the intent of this code.  I'd say patch 1,
> passing i in as the 4th arg.  Rik, what do you think?

Yes, that is probably the best option.

-- 
All rights reversed.

      reply	other threads:[~2008-02-18 15:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-15 14:50 Larry Woodman
2008-02-18 14:33 ` Jeff Moyer
2008-02-18 15:48   ` Rik van Riel [this message]

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=20080218104856.053e7682@bree.surriel.com \
    --to=riel@redhat.com \
    --cc=jmoyer@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lwoodman@redhat.com \
    --subject='Re: Problem with /proc/sys/vm/lowmem_reserve_ratio ???' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).