Angel L. Mateo
2009-Mar-31 10:49 UTC
[Xen-users] Dinamically increase memory of linux domU
Hello, I am trying to configure a domU (linux) to be able to dinamically increase the amount of ram memory assigned to it with xen 3.2.1. I configured domU with: maxmen = ''1024'' memory = ''512'' With this configuration, domU is booted using 512M of RAM. Now in domU I run: xm mem-set galemys4 768 # galemys4 is my domU''s name With a xm list I can see that memory is assigned to it: felis204:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 2304 4 r----- 19347.7 galemys4 4 768 1 -b---- 3.5 but the domU doesn''t know that it has now 256MB more. Do I have to run something in the domU? Do I have to activate some option? Can I do this? How? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Mar-31 14:05 UTC
Re: [Xen-users] Dinamically increase memory of linux domU
On Tue, Mar 31, 2009 at 5:49 PM, Angel L. Mateo <amateo@um.es> wrote:> xm mem-set galemys4 768 # galemys4 is my domU''s name > > With a xm list I can see that memory is assigned to it:> but the domU doesn''t know that it has now 256MB more.What OS you run on domU? Is it PV or HVM? AFAIK, the new pv_ops kernel does not support adding memory online yet (only balloon down and back). With older xenified-kernels (like Redhat''s kernel-xen), it should work with newer updates. I have RHEL 5.3 with bundled xen and Xen 3.3.1, both can balloon up correctly. Older version (I can remember which one) doesn''t work correctly, and behaves similar to what you described. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Angel L. Mateo
2009-Apr-01 06:18 UTC
Re: [Xen-users] Dinamically increase memory of linux domU
El mar, 31-03-2009 a las 21:05 +0700, Fajar A. Nugraha escribió:> On Tue, Mar 31, 2009 at 5:49 PM, Angel L. Mateo <amateo@um.es> wrote: > > xm mem-set galemys4 768 # galemys4 is my domU''s name > > > > With a xm list I can see that memory is assigned to it: > > > but the domU doesn''t know that it has now 256MB more. > > What OS you run on domU? Is it PV or HVM? >I am running debian lenny with kernel 2.6.26-1-xen-amd64 (debian packages). dom0 is debian lenny with the same kernel too. domU is PV. -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Apr-01 07:01 UTC
Re: [Xen-users] Dinamically increase memory of linux domU
On Wed, Apr 1, 2009 at 1:18 PM, Angel L. Mateo <amateo@um.es> wrote:> El mar, 31-03-2009 a las 21:05 +0700, Fajar A. Nugraha escribió: >> On Tue, Mar 31, 2009 at 5:49 PM, Angel L. Mateo <amateo@um.es> wrote: >> > xm mem-set galemys4 768 # galemys4 is my domU''s name >> > >> > With a xm list I can see that memory is assigned to it: >> >> > but the domU doesn''t know that it has now 256MB more. >> >> What OS you run on domU? Is it PV or HVM? >> > I am running debian lenny with kernel 2.6.26-1-xen-amd64 (debian > packages). dom0 is debian lenny with the same kernel too. domU is PV.I''m not familiar with Lenny domU, sorry. My guess is there''s a bug in their kernel that prevents it from ballooning properly. Try adding "mem=1G" to "extra=" (if booting from dom0 kernel) or domU''s grub.conf (if using pygrub). Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users