[lkml]   [2008]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/7] mm: introduce simple_malloc()/simple_free()
On Sat, 15 Nov 2008 20:52:29 -0800 Arjan van de Ven <> wrote:

> On Sun, 16 Nov 2008 12:33:15 +0800
> Lai Jiangshan <> wrote:
> >
> > some subsystem needs vmalloc() when required memory is large.
> > but current kernel has not APIs for this requirement.
> > this patch introduces simple_malloc() and simple_free().
> Hi
> I kinda really don't like this approach. vmalloc() (and especially,
> vfree()) is a really expensive operation, and vmalloc()'d memory is
> also slower (due to tlb pressure).

And it can fragment, which effectively means a dead box.

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

 \ /
  Last update: 2008-11-16 06:07    [W:0.079 / U:5.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site