Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have RHEL AS 4 Update 6 x86_64 Machine with 16 GB RAM running on one of the Blade Server.I want to pre-allocate 8GB Memory for performance testing.How Can I make it happen?
NOTE - physical removal of memory is no option).
Last edited by your_shadow03; 02-04-2009 at 11:05 PM.
Quoted from /usr/src/linux-2.6.27-7/Documentation/kernel-parameters.txt:
Code:
mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of memory
Amount of memory to be used when the kernel is not able
to see the whole system memory or for test.
[X86-32] Use together with memmap= to avoid physical
address space collisions. Without memmap= PCI devices
could be placed at addresses belonging to unused RAM.
mem=nopentium [BUGS=X86-32] Disable usage of 4MB pages for kernel
memory.
memmap=exactmap [KNL,X86-32,X86_64] Enable setting of an exact
E820 memory map, as specified by the user.
Such memmap=exactmap lines can be constructed based on
BIOS output or other requirements. See the memmap=nn@ss
option description.
memmap=nn[KMG]@ss[KMG]
[KNL] Force usage of a specific region of memory
Region of memory to be used, from ss to ss+nn.
memmap=nn[KMG]#ss[KMG]
[KNL,ACPI] Mark specific memory as ACPI data.
Region of memory to be used, from ss to ss+nn.
memmap=nn[KMG]$ss[KMG]
[KNL,ACPI] Mark specific memory as reserved.
Region of memory to be used, from ss to ss+nn.
Example: Exclude memory from 0x18690000-0x1869ffff
memmap=64K$0x18690000
or
memmap=0x10000$0x18690000
These are parameters you can give at time of booting.
To try one, write at time of booting:
<kernel_image_name> <kernel_parameter>=<value>
e.g. My only kernel image name for now is Linux (set up in lilo). So I could type at start up:
Linux mem=123456
Once you have found the good value(s) for your parameter(s) you can include it in an "append=" statement if yu use lilo. For grub I do not know, I do not use it.
I am using GRUB and that too a Blade server. Do I need to reboot for GRUB to display or anything I can in runtime?
I will need to reboot the blade server?
Of course you have to reboot to set-up kernel parameters values at start up.
If you do not want to and you use the bash shell, you can instead setup limits at run-time, including for memory allocation, to processes launched by the shell.
To know the actual limits open a terminal or a console and type:
Code:
ulimit -a
So to set-up max memory size (value in kbytes):
Code:
ulimit -m <value>
Last edited by Didier Spaier; 02-05-2009 at 04:43 AM.
May I ask why do u want to disable the extra memory in your blade without removing them, although you have to restart the server any way? just from curiosity.
All I needed was to restrict the memory for particular process..Thats it...And I should allocate the rest for other process.
But I see no option to allocate remaining to other prcesses?
Do you have any?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.