From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Andrew Morton" <akpm@linux-foundation.org>
Cc: mingo@elte.hu, clameter@sgi.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm: fix boundary checking in free_bootmem_core
Date: Wed, 12 Mar 2008 18:11:41 -0700 [thread overview]
Message-ID: <86802c440803121811i262b21bdrfb07df52fd27aaae@mail.gmail.com> (raw)
In-Reply-To: <20080312163359.7fe0fd80.akpm@linux-foundation.org>
On Wed, Mar 12, 2008 at 4:33 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Wed, 12 Mar 2008 16:21:22 -0700
>
>
> "Yinghai Lu" <yhlu.kernel@gmail.com> wrote:
>
> > On Tue, Mar 11, 2008 at 6:01 PM, Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> > > [PATCH] mm: fix boundary checking in free_bootmem_core
> > >
> > > so call it when numa is enabled, we don't know which node have that range.
> > > and make it more robust.
> > >
> > > try to trim it to get valid sidx, and eidx.
> > >
> > > Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> > >
> >
> > Ingo,
> >
> > this one need to be applied before
> > [PATCH] x86_64: reserve dma32 early for gart
> >
>
> So perhaps we should merge
> mm-fix-boundary-checking-in-free_bootmem_core.patch into 2.6.25?
also we can remove some NODE_DATA(0) assumpation on free_bootmem path.
>
> <looks at it>
>
> Sorry, but I find the changelog very hard to amke sense of. I presently
> have:
>
>
> So call it when numa is enabled, we don't know which node have that
> range. and make it more robust.
>
> Try to trim it to get valid sidx, and eidx.
>
> Could you please expand on this?
please check following...
---
with numa enabled, some caller could have range on one node but try to
free that on other node.
that could cause some pages is freed wrongly.
For example: when we try to allocate 128g boot ram early for
gart/swiotlb, and free that range later so gart/swiotlb could get some
range afterwards. then with this patch, we don't need to care which
node is the range, just loop to call free_bootmem_node for all online
nodes.
this patch make free_bootmem_core more robust by trim the sidx and
eidx according the ram range that
node have.
----
next prev parent reply other threads:[~2008-03-13 1:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 1:01 Yinghai Lu
2008-03-12 23:21 ` Yinghai Lu
2008-03-12 23:33 ` Andrew Morton
2008-03-13 1:11 ` Yinghai Lu [this message]
2008-03-13 1:22 ` Andrew Morton
2008-03-13 21:59 ` Andi Kleen
2008-03-13 22:22 ` Yinghai Lu
2008-03-14 11:58 ` Andi Kleen
2008-03-14 16:44 ` Yinghai Lu
2008-03-14 16:53 ` Andi Kleen
2008-03-14 17:36 ` Yinghai Lu
2008-03-21 19:44 ` Andrew Morton
2008-03-21 20:00 ` Ingo Molnar
2008-03-21 21:54 ` Thomas Gleixner
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=86802c440803121811i262b21bdrfb07df52fd27aaae@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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
Powered by JetHome