Re: [PATCH] Decrease hash table memory overhead

From: Linus Torvalds (torvalds@transmeta.com)
Date: Sat Jul 29 2000 - 00:19:36 EST


On Fri, 28 Jul 2000, Alan Cox wrote:
> > On Fri, 28 Jul 2000, Andi Kleen wrote:
> > >
> > > This saves about 96K memory on my 128MB machine, more on machines with
> > > bigger ram.
> >
> > I'd rather have just one list function than save a few kB of RAM. Avoid
> > confusion, and make people so used to that one list-handling functionalty
> > that bugs don't crop up as easily.
>
> 100Kb is not what I'd call a small amount of ram. Linux 0.12 probably fitted
> into it

Read the original email: the thing is scaled according to usable memory,
and the hash tables are big on purpose.

On a 8M machine, it's on the order of a few kB. It runs into the tens of
kB on a 32MB machine. It's not really signicifant, and I don't think the
code is worth it.

                Linus

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



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:29 EST