Re: Reducing the physical memory for the allocator

2010-10-01 Thread Prabhu nath
Thanks for your kind replies. Prabhu On Fri, Oct 1, 2010 at 11:18 AM, Dave Hylands dhyla...@gmail.com wrote: Hi Prabhu, On Thu, Sep 30, 2010 at 11:29 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I am trying to experiment the following. * I have a 1 GB of RAM and

Re: kmap and page

2010-10-01 Thread Prabhu nath
page, I believe, you are refering to struct page. kmap is a kernel function which takes in the parameter struct page pointer and returns kernel virtual address. On a typical x86 machine with 1GB RAM, kmap works like this. If the struct page is associated with the physical page less than 896 MB,

Re: kmap and page

2010-10-01 Thread Sengottuvelan S
Thank you Prabhu. Now I can proceed... :-) On Thu, Sep 30, 2010 at 11:09 PM, Prabhu nath gprabhun...@gmail.com wrote: page, I believe, you are refering to struct page. kmap is a kernel function which takes in the parameter struct page pointer and returns kernel virtual address. On a typical

alloc_bootmem_low

2010-10-01 Thread luca ellero
I resend this because I erroneously add it to the wrong thread. Apologies for any inconvenience. Hi all, I'm trying to understand the use of alloc_bootmem_low. As my understanding, it tries to allocate memory at boot time in the DMA zone (under 16 MB on x86). My question is, how can I be

Re: memory consumed by kernel

2010-10-01 Thread Arun KS
Hello, kmalloc() memory is reserved or not? I tried to print the amount of reserved memory before and after allocating 10 MB of memory using kmalloc(). But both shows the same. Here is the code, #include linux/module.h #include linux/moduleparam.h #include linux/init.h #include linux/kernel.h

Re: memory consumed by kernel

2010-10-01 Thread luca ellero
Il 01/10/2010 9.51, Arun KS wrote: Hello, kmalloc() memory is reserved or not? No, kmalloc memory is not reserved. The buddy allocator, which is eventually used by kmalloc, use only pages NOT reserved and don't mark the pages reserved when these are allocated. In other words reserved bit is

Re: memory consumed by kernel

2010-10-01 Thread Arun KS
On Fri, Oct 1, 2010 at 5:01 PM, luca ellero lro...@gmail.com wrote: Il 01/10/2010 9.51, Arun KS wrote: Hello, kmalloc() memory is reserved or not? No, kmalloc memory is not reserved. The buddy allocator, which is eventually used by kmalloc, use only pages NOT reserved and don't mark the

Re: my kmalloc implementation

2010-10-01 Thread Bond
Wouldn't a sparse matrix implementation of this be a better thing. I don't have a link. But you'd initialize doing something like this: uint8_t data[256]; free_list = 0; for ( i = 1; i 256; i++ ) { // Add Each byte to the free list. data[i] = free_list; free_list = i; }

Debugging a kernel oops message

2010-10-01 Thread Tushar Dadlani
Hi, What is the best way to debug a kernel oops message? I see some call trace , and some memory addresses , but I am not able to figure out the main reason for my module to fail. Regards, -- Tushar Dadlani Manipal Institute of Technology +919986292434 -- To unsubscribe from this list: send an

Re: my kmalloc implementation

2010-10-01 Thread Dave Hylands
Hi Bond, On Fri, Oct 1, 2010 at 3:36 AM, Bond jamesbond.2...@gmail.com wrote: Wouldn't a sparse matrix implementation of this be a better thing. There are many different algorithms, and you wanted to know how indexes would work for tracking 1 byte allocations. I guess it depends on how you

Re: Debugging a kernel oops message

2010-10-01 Thread Neependra Khare
On Fri, Oct 1, 2010 at 4:22 PM, Tushar Dadlani tush...@gmail.com wrote: Hi, What is the best way to debug a kernel oops message? I see some call trace , and some memory addresses , but I am not able to figure out the main reason for my module to fail. Following might be helpful :-

PandaBoard Early Adopter Program -- grab a panda!

2010-10-01 Thread K R I S K
FYI, There are many queries on the perfect development board on Kernelnewbies. I felt this information might be helpful to many newbies and experienced programmers alike! PandaBoard Early Adopter Program has been launched! PandaBoard is an open OMAP4 mobile development platform. PEAP

Re: PandaBoard Early Adopter Program -- grab a panda!

2010-10-01 Thread Anuz Pratap Singh Tomar
This is one one best open source embedded boards. thanks for sharing On Fri, Oct 1, 2010 at 4:07 PM, K R I S K kernelb...@gmail.com wrote: FYI, There are many queries on the perfect development board on Kernelnewbies. I felt this information might be helpful to many newbies and

Re: PandaBoard Early Adopter Program -- grab a panda!

2010-10-01 Thread Victor Rodriguez
I think is a great opportunity to develop a real project on embedded systems. Thanks Victor Rodriguez On Fri, Oct 1, 2010 at 10:23 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: This is one one best open source embedded boards. thanks for sharing On Fri, Oct 1, 2010 at 4:07

SPI CS, wait for IRQ, proceed sequence

2010-10-01 Thread Sergii Kovalchuk
Hi all, Probably, I should ask my quesiton on some SPI dedicated mailing lists, however, the borders of newbiness are hard to estimate. As I can see, most SPI controller drivers currently attempting to control CS (SS) line by themselves, usually enabling it just before spi_message processing

Re: Debugging a kernel oops message

2010-10-01 Thread Manish Katiyar
On Fri, Oct 1, 2010 at 3:52 AM, Tushar Dadlani tush...@gmail.com wrote: Hi, What is the best way to debug a kernel oops message? I see some call trace , and some memory addresses , but I am not able to figure out the main reason for my module to fail. Most useful data that I have found is the

segmentation question

2010-10-01 Thread Sri Ram Vemulpali
Hi All, I am developing segmentation for my kernel. In that process I choose to divide whole memory in to fixed size segments. So a 4GB memory can be divided in to 8192 segments. So I initialize segment descriptors in to the GTD withs segments base address and limit. Here base address are