Skip to contentSkip to conversation

using kmalloc

DISCUSSION chiranjeevi vaka 3 participants 3 messages Mar 19, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I am getting some problems with kmalloc. If I tried to allocate more than certain memory then the system is hanging while booting with the changed kernel. Can you suggest me how to come out this situation. Can't I allocate as much I want when I want to allocate in the kernel.

Thank you,
Chiranjeevi

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

#1 lore raw

Em Tue, Mar 19, 2002 at 08:18:31AM -0800, chiranjeevi vaka escreveu:

Quoted 4 lines

I am getting some problems with kmalloc. If I tried to allocate more than certain memory then the system is hanging while booting with the changed kernel. Can you suggest me how to come out this situation. Can't I allocate as much I want when I want to allocate in the kernel.

try vmalloc, kmalloc is limited, AFAIK, to 128 KiB and even that is difficult to get after some time.

- Arnaldo

#2 lore raw
In reply to chiranjeevi vaka
Quoted 9 lines · Arnaldo Carvalho de Melo

Em Tue, Mar 19, 2002 at 08:18:31AM -0800, chiranjeevi vaka escreveu:

Quoted 4 lines

I am getting some problems with kmalloc. If I tried to allocate more than certain memory then the system is hanging while booting with the changed kernel. Can you suggest me how to come out this situation. Can't I allocate as much I want when I want to allocate in the kernel.

try vmalloc, kmalloc is limited, AFAIK, to 128 KiB and even that is difficult to get after some time.

Apparently, kmalloc semantics changed at some point so it does not ever return error.

Signature · 4 lines
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
 www.fsmlabs.com  www.rtlinux.com