Messages in this thread | | | Date | Sun, 16 Nov 2008 00:21:55 -0800 (PST) | Subject | Re: [PATCH 1/7] mm: introduce simple_malloc()/simple_free() | From | David Miller <> |
| |
From: Andrew Morton <akpm@linux-foundation.org> Date: Sat, 15 Nov 2008 21:03:34 -0800
> On Sat, 15 Nov 2008 20:52:29 -0800 Arjan van de Ven <arjan@infradead.org> 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?
| |