login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
30
Re: [PATCH -mm 11/14] bootmem: respect goal more likely
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Johannes Weiner <hannes@...>
To: Andrew Morton <akpm@...>
Cc: Ingo Molnar <mingo@...>, Yinghai Lu <yhlu.kernel@...>, Andi Kleen <andi@...>, <linux-kernel@...>, <linux-mm@...>
Subject:
Re: [PATCH -mm 11/14] bootmem: respect goal more likely
Date: Friday, May 30, 2008 - 4:16 pm
Hi, Johannes Weiner <hannes@saeurebad.de> writes:
quoted text
> The old node-agnostic code tried allocating on all nodes starting from > the one with the lowest range. alloc_bootmem_core retried without the > goal if it could not satisfy it and so the goal was only respected at > all when it happened to be on the first (lowest page numbers) node (or > theoretically if allocations failed on all nodes before to the one > holding the goal). > > Introduce a non-panicking helper that starts allocating from the node > holding the goal and falls back only after all thes tries failed. > > Make all other allocation helpers benefit from this new helper. > > Signed-off-by: Johannes Weiner <hannes@saeurebad.de> > CC: Ingo Molnar <mingo@elte.hu> > CC: Yinghai Lu <yhlu.kernel@gmail.com> > CC: Andi Kleen <andi@firstfloor.org> > --- > > mm/bootmem.c | 77 +++++++++++++++++++++++++++++++---------------------------- > 1 file changed, 41 insertions(+), 36 deletions(-) > > --- a/mm/bootmem.c > +++ b/mm/bootmem.c > @@ -487,11 +487,33 @@ find_block: > memset(region, 0, size); > return region; > } > + return NULL; > +}
Sorry, forgot to update ->last_success handling here. Update coming soon. Hannes --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH -mm 11/14] bootmem: respect goal more likely
, Johannes Weiner
, (Fri May 30, 3:42 pm)
Re: [PATCH -mm 11/14] bootmem: respect goal more likely
, Johannes Weiner
, (Fri May 30, 4:16 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Artem Bityutskiy
[PATCH 12/44 take 2] [UBI] allocation unit implementation
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Jeff Garzik
Re: [RFC] Heads up on sys_fallocate()
Christoph Hellwig
pcmcia ioctl removal
git
:
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
David Miller
Re: [BUG] New Kernel Bugs
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Colocation donated by:
Who's online
There are currently
2 users
and
1147 guests
online.
Online users
zeekec
cbeltyml12
Syndicate