From: Andi Kleen <ak@muc.de>
To: James Cleverdon <jamesclv@us.ibm.com>
Cc: Andi Kleen <ak@muc.de>,
linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@transmeta.com>,
Marcelo Tosatti <marcelo@conectiva.com.br>,
mingo@elte.hu
Subject: Re: [PATCH] MAX_MP_BUSSES increase
Date: Thu, 20 Dec 2001 23:56:48 +0100 [thread overview]
Message-ID: <20011220235648.A1663@averell> (raw)
In-Reply-To: <Pine.LNX.4.33.0112192154190.19321-100000@penguin.transmeta.com> <Pine.LNX.4.33.0112201405550.6212-100000@localhost.localdomain> <m3y9jxesd3.fsf@averell.firstfloor.org> <200112202229.fBKMTXq06694@butler1.beaverton.ibm.com>
In-Reply-To: <200112202229.fBKMTXq06694@butler1.beaverton.ibm.com>; from jamesclv@us.ibm.com on Thu, Dec 20, 2001 at 11:29:32PM +0100
On Thu, Dec 20, 2001 at 11:29:32PM +0100, James Cleverdon wrote:
> Thanks to all who replied. My rationale for simply increasing the size of
> static arrays was to have a minimum impact on 2.4, as well as to make
> something that Cannot Fail(TM). If you like, I could make one for 2.5 that
> would do an initial scan of the MPS table, allocate the arrays using the
> bootmem allocator, then go about its business as usual. (Special offer for a
> limited time only! mpc_* array overflow checking added at NO EXTRA CHARGE!!
> ;^)
Shouldn't be that hard. In the worst case I can do it, but I don't have
hardware to test it properly.
>
> The catch with bootmem allocation is that it only allocates in pages (unless
> wli's new bootmem allocator is adopted). So, expect some extra memory to be
> lost to internal fragmentation anyway.
I don't think that's true, unless I'm misreading the code in
__alloc_bootmem_core badly. It may not be the most fragmentation avoiding
allocator in the world, but for linear allocations with no frees it shouldn't
waste space.
> Another suggestion through private mail was to make MAX_MP_BUSSES a tunable
> config parameter. I didn't know about that. Early boot stuff should work
> without fuss, not rely on config tweaks. At the very least, I'd have to add
> array overflow checking, because this crashes before the console is opened or
> kdb is initialized. Silent crashes like that are bad news.
I agree that it shouldn't be tunable.
-Andi
--
Life would be so much easier if we could just look at the source code.
next prev parent reply other threads:[~2001-12-20 22:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-20 4:28 [PATCH] MAX_MP_BUSSES increase James Cleverdon
2001-12-20 5:55 ` Linus Torvalds
2001-12-20 13:07 ` Ingo Molnar
2001-12-20 17:03 ` Andi Kleen
2001-12-20 22:29 ` James Cleverdon
2001-12-20 22:56 ` Andi Kleen [this message]
[not found] ` <Pine.LNX.4.33.0112211113570.2196-100000@localhost.localdomain>
2001-12-21 9:14 ` William Lee Irwin III
2001-12-26 15:43 ` Marcelo Tosatti
2002-01-08 9:14 ` James Cleverdon
2002-01-08 9:41 ` Martin J. Bligh
2002-01-18 21:21 ` James Cleverdon
[not found] <200112210419.fBL4Jfq08533@butler1.beaverton.ibm.com>
[not found] ` <Pine.LNX.4.33.0112211131130.2269-100000@localhost.localdomain>
2001-12-21 11:57 ` William Lee Irwin III
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=20011220235648.A1663@averell \
--to=ak@muc.de \
--cc=jamesclv@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.