Re: [patch 05/26] Slab allocators: Cleanup zeroing allocations

From: Christoph Lameter
Date: Mon Jun 18 2007 - 18:34:18 EST


On Mon, 18 Jun 2007, Pekka Enberg wrote:

> On 6/18/07, Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
> > Hmm, did you check kernel text size before and after this change?
> > Setting the __GFP_ZERO flag at every kzalloc call-site seems like a
> > bad idea.
>
> Aah but most call-sites, of course, use constants such as GFP_KERNEL
> only which should be folded nicely by the compiler. So this probably
> doesn't have much impact. Would be nice if you'd check, though.

IA64

Before:

text data bss dec hex filename
10486815 4128471 3686044 18301330 1174192 vmlinux

After:

text data bss dec hex filename
10486335 4128439 3686044 18300818 1173f92 vmlinux

Saved ~500 bytes in text size.

x86_64:

Before:

text data bss dec hex filename
3823932 333840 220484 4378256 42ce90 vmlinux

After

text data bss dec hex filename
3823716 333840 220484 4378040 42cdb8 vmlinux

200 bytes saved.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/