Re: [RFC] Templates and tweaks (for size performance and more)

Andrew Morton (akpm@digeo.com)
Thu, 07 Nov 2002 11:44:56 -0800


Tom Rini wrote:
>
> On Thu, Nov 07, 2002 at 11:27:25AM -0800, Andrew Morton wrote:
> > Tom Rini wrote:
> > >
> > > Comments?
> >
> > You missed this little fella:
> >
> > text data bss dec hex filename
> > 1735 1120 131104 133959 20b47 kernel/pid.o
> >
> >
> > Have a controversial patch which takes it to:
> >
> > text data bss dec hex filename
> > 1614 1120 2080 4814 12ce kernel/pid.o
>
> My patch isn't about size per-se, it's about tweaking the kernel and
> making it easier to do things like get a small kernel. Or work on boxes
> with large amounts of memory and not use HIGHMEM, or otherwise have
> tweakable params with N different config options.
>

Yes. Replace PIDHASH_SHIFT (in that patch) with TWEAK_PIDHASH_SHIFT.
It must be a power of two.

Those tables are currently 128k even on the teeniest little
uniprocessor build.
-
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/