Skip to contentSkip to conversation

kmalloc

DISCUSSION Petko Manolov 3 participants 4 messages Jun 15, 2001

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Petko Manolov

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
[email protected]

#2 lore raw
In reply to Petko Manolov

Em Fri, Jun 15, 2001 at 10:02:08AM -0700, Petko Manolov escreveu:

Quoted 11 lines

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

#3 lore raw
In reply to Petko Manolov

Hey thanks,

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

later,
Petko

Quoted 19 lines · Arnaldo Carvalho de Melo

Em Fri, Jun 15, 2001 at 10:02:08AM -0700, Petko Manolov escreveu:

Quoted 11 lines

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