mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* A hole in kernel space!
@ 2002-11-06 11:57 Pannaga Bhushan
  2002-11-06 12:02 ` Abraham vd Merwe
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Pannaga Bhushan @ 2002-11-06 11:57 UTC (permalink / raw)
  To: linux-kernel


Hi all,
        I am looking for a setup where I need to have a certain amount
of data always available to the kernel. The size of data I am looking at
is abt
40MB(preferably, but I will settle for 20MB too) . So the normal kmalloc
will not help me. So what I did was, I created a hole in kernel space by
putting
the following line in vmlinux.lds

    ALIGN(4096);
 __hole_start = .;
    . = . + 0xmy_size;
 __hole_end = .;

First, I put these lines in code segment and found that  'my_size'
cannot go beyond 0x500000(5MB) . Any larger value , the kernel image
refuses to
boot up. I found the same problem with these lines being in data segment
or in the bss segment.

But putting these line after

_end = .;

line in vmlinux.lds, I am able to give 0x1700000(17MB) to my_size and
still boot with that kernel image.

My questions are :

1.   Is there any other way I can get to keep 40MB(or even 20MB) of
contiguous kernel memory space ?

2.    Abt the 17MB hole, I am able to use after the   _end = .;
....     is this 17MB really there in kernel image?('cos it isn't in any
segment and also it
appears after _end).
        if yes, are the pages corresponding to this region swappable or
is it that since this hole appears in kernel image, it is locked to a
physical space
and this is never swapped. (basically, i want by data in kernel space
always available to kernel without having to bother abt swapping the
pages back)

Thanx in advance,
Pannaga Bhushan


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-11-06 21:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 11:57 A hole in kernel space! Pannaga Bhushan
2002-11-06 12:02 ` Abraham vd Merwe
2002-11-06 12:19 ` Matti Aarnio
2002-11-06 13:49 ` Marc A. Volovic
2002-11-06 14:07   ` Richard B. Johnson
2002-11-06 16:09     ` Marc A. Volovic
2002-11-06 21:07       ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®