Skip to contentSkip to conversation

vmalloc errors in 2.4.20

DISCUSSION sandeep uttamchandani 3 participants 3 messages Feb 9, 2003 Memory management

lore
Share & tools
lore
#0 lore raw

The linux kernel 2.4.20 seems to have problems with vmalloc. Here is what I did:

In my driver, I try to allocate a buffer of size 512K using vmalloc ( kmalloc cannot allocate more than 128K). It generates a kernel oops message saying that the virtual memory cannot be allocated.

I suspect there is a problem with the address range defined for vmalloc namely by VMALLOC_START and VMALLOC_END.

Any thoughts of what might be going-on ?

Please do let me know if you want to look at the
kernel oops message.

Thanks,
Sandeep
[email protected]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#1 lore raw
Quoted 8 lines

The linux kernel 2.4.20 seems to have problems with vmalloc. Here is what I did:

In my driver, I try to allocate a buffer of size 512K using vmalloc ( kmalloc cannot allocate more than 128K). It generates a kernel oops message saying that the virtual memory cannot be allocated.

Quoted 5 lines

I suspect there is a problem with the address range defined for vmalloc namely by VMALLOC_START and VMALLOC_END.

Any thoughts of what might be going-on ?

Not really. But why don't you just call alloc_pages instead?

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#2 lore raw
In reply to sandeep uttamchandani
Quoted 10 lines · sandeep uttamchandani

The linux kernel 2.4.20 seems to have problems with vmalloc. Here is what I did:

In my driver, I try to allocate a buffer of size 512K using vmalloc ( kmalloc cannot allocate more than 128K). It generates a kernel oops message saying that the virtual memory cannot be allocated.

Thanks,
Sandeep

---end quoted text---

Hi Sandeep,

I'm running a stock 2.4.20 kernel and put together a little test module that allocates 512k memory with vmalloc. I have no problems on an Intel X86. I also ran it allocating 1MByte as well.

cheers,
Karen

Signature · 7 lines
 Karen Shaeffer
 Neuralscape, Palo Alto, Ca. 94306
 [email protected]  http://www.neuralscape.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/