2006-12-27 12:05:12

by Rajesham Gajjela

[permalink] [raw]
Subject: limiting node (NUMA) memory

PS: Please cc me I am not on the list:

On 2.6.7 kernel & x86_64 arch, I am trying to limit
the each node memory. I have 4 CPUs on my system and
therefore 4 nodes will be setup. Total RAM is 8G, and
each node will have 2G mem. But at times, I may want
to limit each node mem to 1G - some thing like:
memnode="1G,1G,2G,2G" on the grub. I have written the
below patch, which is not working. With this patch,
the machine keeps on rebooting after initrd stage:


Booting 'Red Hat Enterprise Linux AS
(2.6.7-aruba_0.0.0.49309)'

kernel /vmlinuz-2.6.7-aruba_0.0.0.49309
root=/dev/system/rootvol console=ttyS0,
9600n8 SPEED=9600 CONSOLE=serial ide=nodma
ramdisk_size=40000 quiet hangcheck_t
imer.hangcheck_reboot=1 memnode="1g,1g,1g,2M" gdb=0
[Linux-bzImage, setup=0x1400, size=0x1e387c]
initrd /initrd-2.6.7-aruba_0.0.0.49309.img
[Linux-initrd @ 0x37a38000, 0x5b7016 bytes]

Any pointers on my mistake(s) is appreciated.

Rajesham

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Attachments:
my.patch (3.24 kB)
4239088822-my.patch