Mihamina Rakotomandimby (R12y) wrote:
Hi, I have Xen 3.0.3 on an opensuse 10.2. This is the status of my memory:
mihamina@asus:~> free total used free shared buffers cached Mem: 1777664 1769308 8356 0 16288 673308 Swap: 6626728 60 6626668
Whne I create a ("256M RAM", "1 vcpu") domU: [...] Error: (12, 'Cannot allocate memory') [...]
Well. The message is quite clear. But my swap is still free (6GB man!). I guess the Xen utility is not able to swap things. What is the common way to free some RAM? is there a kind of 'swapwhatever <PID>' magic tool you would recommend? I wont reboot my box in order to free memory!
Thanks in advance.
Hi, you got almost all your physical memory used, you should think about add memory. Anyway, swapping is managed by the kernel. You can set an higher swappiness parameter value, 100 for example, in the file /proc/sys/vm/swappiness. This allows you to set how much the system will swap. echo 100 > /proc/sys/vm/swappiness To make your set available at reboot you have to set it in the file /etc/sysctl.conf. Add the following line: vm.swappiness=100 Regards, Jan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org