[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 08 Aug 2006 00:31:06 -0600
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Andrew Morton <akpm@...l.org>
Cc: Andi Kleen <ak@...e.de>, "Randy.Dunlap" <rdunlap@...otime.net>,
"Protasevich, Natalie" <Natalie.Protasevich@...sys.com>,
linux-kernel@...r.kernel.org,
Arjan van de Ven <arjan@...radead.org>
Subject: Re: [PATCH] x86_64: Auto size the per cpu area.
Andrew Morton <akpm@...l.org> writes:
> On Mon, 07 Aug 2006 23:47:23 -0600
> ebiederm@...ssion.com (Eric W. Biederman) wrote:
>
>> +#ifdef CONFIG_MODULES
>> +# define PERCPU_MODULE_RESERVE 8192
>> +#else
>> +# define PERCPU_MODULE_RESERVE 0
>> +#endif
>> +
>> +#define PERCPU_ENOUGH_ROOM \
>> + (ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \
>> + PERCPU_MODULE_RESERVE)
>> +
>
> Seems sane, but isn't 8192 a bit small?
By my measure 8K is about 1/2KB less than what we have free in
2.6.18-rc3. So it looks like a good initial guess to me.
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists