Hi
I have a requirement of creating 1M buffers of 24 bytes.
So, my driver is calling kmalloc in loop but it is giving following panic
after some iterations.
System have 4 GB RAM and I was continuosly checking top, it had sufficient
memory to allocate.
--- [cut here ] - [please
On Wed, Jul 02, 2008 at 11:18:09AM +0530, Shyamal Shukla wrote:
I am trying to compile Linux kernel version 2.4.35. However, the computer
hangs abruptly after some amount of code has been compiled. The same happens
when i try hands on Linux 2.6.17.
There is no fixed file at which the
Hi,
Although kmalloc() gives you 24 bytes per call that you can use, but
internally it allocates in pages, and hence 1 page (=4K bytes in each
iteration)
HTH,
Rajat
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of gagan grover
Could you send us the code snippet where you are allocating these
buffers?
-- Mark
On Jul 2, 2008, at 3:28 AM, gagan grover wrote:
Hi
I have a requirement of creating 1M buffers of 24 bytes.
So, my driver is calling kmalloc in loop but it is giving following
panic after some iterations.
Hi...
On Wed, Jul 2, 2008 at 2:28 PM, gagan grover [EMAIL PROTECTED] wrote:
Hi
I have a requirement of creating 1M buffers of 24 bytes.
So, my driver is calling kmalloc in loop but it is giving following panic
after some iterations.
System have 4 GB RAM and I was continuosly checking top, it
El Wed, Jul 02, 2008 at 06:38:52PM +0530 Rajat Jain ha dit:
Although kmalloc() gives you 24 bytes per call that you can use,
but internally it allocates in pages, and hence 1 page (=4K bytes in each
iteration)
though kmalloc() usually wastes some memory in allocations it doesn't
Hello Johannes,
The problem is not reproducible. I realise that the problem probably
has been fixed in more recent kernels, but I'd still like to know what
the fix was so that I can patch the kernel without upgrading.
On Tue, Jul 1, 2008 at 9:19 AM, Johannes Weiner [EMAIL PROTECTED] wrote:
Hi,
On Wed, Jul 02, 2008 at 09:21:15AM -0400, William Case wrote:
Are there tutorials, programs or git techniques that assist me in doing
those kind of traces?
LXR was already mentioned. Also, have a look at 'make cscope' and your
$EDITORs capabilities with cscope-output. (Warning: cscope files are
Hi,
I want to do the following from a kernel module or kernel code :
Read a byte from any page in physical memory. It doesn't matter if
that page is being used by a process or not.
From an earlier post someone recommended I use ioremap() to map the
pages (build page tables) into the kernel and
I have been working in the scheduler where I see a subroutine called
'unlikely'. I would like to know where 'unlikely' is defined source
tree. Specifically what file.
example of usage:
if (unlikely(reacquire_kernel_lock(current) 0))
goto need_resched_nonpreemptible;
thanks for
10 matches
Mail list logo