Re: [PATCH 1/7] mm: introduce simple_malloc()/simple_free()

From: David Miller
Date: Sun Nov 16 2008 - 03:22:18 EST


From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 15 Nov 2008 21:03:34 -0800

> On Sat, 15 Nov 2008 20:52:29 -0800 Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
>
> > Realistically, people should try hard
> > to use small datastructure instead....
>
> Yup, it makes it easier for people to do something which we strongly
> discourage. The risk got worse with all these 64-bit machines with
> vast amounts of virtual address space. It makes it easier for people
> to develop and "test" code which isn't reliable on smaller machines.

I don't see it as being used for common operations (unlike vmap BTW,
which XFS does like crazy). It's mainly for core hash tables and
similarly large structures. And also, for those things, the NUMA
spreading helps.

And, in any event, for those cases:

1) we are already doing this exact thing

2) due to #1 we have N copies of the same damn code

So whatever policy fits your fancy, wouldn't it be better to "enforce"
this in one spot instead of the 12 copies we have already?

--
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/