linux-mips
[Top] [All Lists]

Re: allocating a large memory area

To: "Hilik Stein" <hilik@netvision.net.il>
Subject: Re: allocating a large memory area
From: "Bradley D. LaRonde" <brad@ltc.com>
Date: Wed, 12 Mar 2003 19:23:26 -0500
Cc: <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <438113fe62.3fe6243811@netvision.net.il>
Sender: linux-mips-bounce@linux-mips.org
----- Original Message -----
From: "Hilik Stein" <hilik@netvision.net.il>
To: <linux-mips@linux-mips.org>
Sent: Wednesday, March 12, 2003 6:28 AM
Subject: allocating a large memory area


> i need to allocate a large memory region for my data (32MB), which is far
> beyond what kmalloc can provide for me.
> i do not want to use vmalloc, since it will allocate the memory out of
> KSEG2, which is too slow and will generate too many exceptions when i
> have to access my data randomly.
> i was thinking of limiting the linux from accessing the highest physical
> 32MB by using "mem=224M" kernel command line parameter. this was i
> can access my data using 0x8e000000 through KSEG1.

Or put it below the kernel load point.

Or... I've used this trick - define a large array and let the linker make
space for it in .bss.  This is convenient since now the kernel has no
special requirement about load address or memory limit and the address can
just be a pointer to the array.

Regards,
Brad


<Prev in Thread] Current Thread [Next in Thread>