linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kmalloc
@ 2001-06-15 17:02 Petko Manolov
  2001-06-15 17:04 ` kmalloc David S. Miller
  2001-06-15 17:05 ` kmalloc Arnaldo Carvalho de Melo
  0 siblings, 2 replies; 5+ messages in thread
From: Petko Manolov @ 2001-06-15 17:02 UTC (permalink / raw)
  To: linux-kernel

	Hi there,

AFAIK there was similar discusion almos a year
ago but i can't remember the details.

kmalloc fails to allocate more than 128KB of
memory regardless of the flags (GFP_KERNEL/USER/ATOMIC)

Any ideas?

I am not quite sure if this is the expected behavior.


	Petko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kmalloc
  2001-06-15 17:02 kmalloc Petko Manolov
@ 2001-06-15 17:04 ` David S. Miller
  2001-06-15 17:05 ` kmalloc Arnaldo Carvalho de Melo
  1 sibling, 0 replies; 5+ messages in thread
From: David S. Miller @ 2001-06-15 17:04 UTC (permalink / raw)
  To: Petko Manolov; +Cc: linux-kernel



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.

Later,
David S. Miller
davem@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kmalloc
  2001-06-15 17:02 kmalloc Petko Manolov
  2001-06-15 17:04 ` kmalloc David S. Miller
@ 2001-06-15 17:05 ` Arnaldo Carvalho de Melo
  2001-06-15 17:21   ` kmalloc Petko Manolov
  1 sibling, 1 reply; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-06-15 17:05 UTC (permalink / raw)
  To: Petko Manolov; +Cc: linux-kernel

Em Fri, Jun 15, 2001 at 10:02:08AM -0700, Petko Manolov escreveu:
> 	Hi there,
> 
> AFAIK there was similar discusion almos a year
> ago but i can't remember the details.
> 
> kmalloc fails to allocate more than 128KB of
> memory regardless of the flags (GFP_KERNEL/USER/ATOMIC)
> 
> Any ideas?
> 
> I am not quite sure if this is the expected behavior.

yes, expected behaviour, at most you can allocate 32 contiguous pages with
kmalloc, if you need more and it is not for DMA, use vmalloc, that will not
try to use contiguous pages

- Arnaldo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kmalloc
  2001-06-15 17:05 ` kmalloc Arnaldo Carvalho de Melo
@ 2001-06-15 17:21   ` Petko Manolov
  0 siblings, 0 replies; 5+ messages in thread
From: Petko Manolov @ 2001-06-15 17:21 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-kernel

	Hey thanks,

The memory i need is not for DMA usage so i don't care
if it is contiguous or not.


later,
Petko


Arnaldo Carvalho de Melo wrote:
> 
> Em Fri, Jun 15, 2001 at 10:02:08AM -0700, Petko Manolov escreveu:
> >       Hi there,
> >
> > AFAIK there was similar discusion almos a year
> > ago but i can't remember the details.
> >
> > kmalloc fails to allocate more than 128KB of
> > memory regardless of the flags (GFP_KERNEL/USER/ATOMIC)
> >
> > Any ideas?
> >
> > I am not quite sure if this is the expected behavior.
> 
> yes, expected behaviour, at most you can allocate 32 contiguous pages with
> kmalloc, if you need more and it is not for DMA, use vmalloc, that will not
> try to use contiguous pages
> 
> - Arnaldo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* kmalloc
@ 2002-03-10 17:22 tushar  korde
  0 siblings, 0 replies; 5+ messages in thread
From: tushar  korde @ 2002-03-10 17:22 UTC (permalink / raw)
  To: linux-kernel

sir,
 	when i use kmalloc and kfree in a code the segmentation error 
comes
(though compilation was successful) but when i use vmalloc & vfree 
the same code runs fine.why?

my kernel version is 2.4.2-2
i included mm/slab.c & others for kmalloc
 		how to use kmalloc ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-10 19:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-15 17:02 kmalloc Petko Manolov
2001-06-15 17:04 ` kmalloc David S. Miller
2001-06-15 17:05 ` kmalloc Arnaldo Carvalho de Melo
2001-06-15 17:21   ` kmalloc Petko Manolov
2002-03-10 17:22 kmalloc tushar  korde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).