Pre-allocating memory?
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). |
Yes.
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 |
Thats Really Informative Stuff..
I need some more help.How Can I set these kernel parameters anyway? |
Do I need to customize the kernel?
On which file I need to make the entry? |
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 Code:
ulimit -m <value> |
Nice tip, but why?
Hi,
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? |
All times are GMT -5. The time now is 08:55 PM. |