RE: kernel memory allocation

2011-06-03 Thread Jeff Haran
> -Original Message- > From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- > boun...@kernelnewbies.org] On Behalf Of João Eduardo Luís > Sent: Friday, June 03, 2011 12:40 PM > To: Amirali Shambayati > Cc: kernelnewbies > Subject: Re: kernel memory allocation > > Hi. > > I

Re: kernel memory allocation

2011-06-03 Thread João Eduardo Luís
Hello, Once again, I would pretty much enjoy if you CC'ed the list on replies. On Jun 3, 2011, at 8:49 PM, Amirali Shambayati wrote: > I set breakpoint before kmalloc. panic happens after kmalloc. > >> 2011/6/4 Amirali Shambayati >> ofcourse it's null before allocate it. I make an instantiati

Re: kernel memory allocation

2011-06-03 Thread João Eduardo Luís
Hi. In future replies, please CC the list. Does it panic in during the kmalloc, or afterwards? Are you checking if 'newBun' is NULL? I may be missing something obvious in that code, but unless you are out of memory or with some past corruption, I don't think that should panic the kernel. In a

Re: kernel memory allocation

2011-06-03 Thread João Eduardo Luís
Hi. From [1] I'm lead to believe the only difference between the regular kmalloc() arguments and those of kmalloc_node() is the one specifying which node you want to allocate the memory on. Aside from the third argument, which seems to be related with NUMA (with which I never worked on kernel-

kernel memory allocation

2011-06-03 Thread Amirali Shambayati
Hello all, I just want to allocate memory for a struct instantiation. Would anyone guide me what arguments I should pass to "kmalloc_node"? Regards, -- Amirali Shambayati Bachelor Student Computer Engineering Department Sharif University of Technology Tehran, Iran

Check Kernel Memory Allocation

2011-06-03 Thread Dev Null
Hello, I wanted to know how much kernel and userspace memory is available on the Linux system during run-time either by some C code or some procfile. Do you know how to do that? Thanks, Dev ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org