Re: RE2: kmalloc

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Fri, 15 Jun 2001 15:46:59 -0300


Em Fri, Jun 15, 2001 at 07:26:16PM +0100, Anton Altaparmakov escreveu:
> At 18:58 15/06/2001, Arnaldo Carvalho de Melo wrote:
> >Em Fri, Jun 15, 2001 at 10:41:59AM -0700, Michael Nguyen escreveu:
> > > >>Petko Manolov writes:
> > > >> kmalloc fails to allocate more than 128KB of
> > > >> memory regardless of the flags (GFP_KERNEL/USER/ATOMIC)
> > > >>
> > > >> Any ideas?
> > >
> > > >Yes, this is the limit.
> > >
> > > Im relatively new to Linux. I would like to ask.
> > > Is this limit per kmalloc()? Can I do this multiple times?
> >
> >the limit is for a single invocation of kmalloc, yes, you can do it multiple
> >times.
>
> But if you need that much memory it would be better that you use vmalloc AFAIK.

Yup, like I suggested to Petko in a previous message :)

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