Hi, i had installed the last updates for FC6 in a machine with 1 Giga of RAM. The machine''s ip is 136.145.116.88. ------------------------------------------------------ [root@dhcp-crl-116-88 ~]# free total used free shared buffers cached Mem: 962032 281512 680520 0 16116 191412 -/+ buffers/cache: 73984 888048 Swap: 2031608 0 2031608 [root@dhcp-crl-116-88 ~]# uname -a Linux dhcp-crl-116-88.ece.uprm.edu 2.6.19-1.2911.6.4.fc6xen #1 SMP Sat Feb 24 14:57:17 EST 2007 i686 i686 i386 GNU/Linux ------------------------------------------------------ now, i execute a "xm create xentemplate_6 -c", and voila! i lost approx 250 Mbytes of PHYSICAL RAM, :-( ------------------------------------------------------ [root@dhcp-crl-116-88 ~]# free total used free shared buffers cached Mem: -> 764928 <- 375796 389132 0 17536 281980 -/+ buffers/cache: 76280 688648 Swap: 2031608 0 2031608 ------------------------------------------------------ then, shutdown the virtual machine, and i did not get back the lost 250 Mbytes of RAM. anybody knows how to get back my physical memory after to shutdown the virtual machine? is that behavior a bug? if i run two virtual machines, my physical memory is reduced until 512 MB of Physical RAM. At this time, the only way to get 1Gbyte of RAM is rebooting the machine :-(. Thanks a lot for your suggestions. http://ece.uprm.edu/~s047267 http://del.icio.us/josanabr http://blog-grid.blogspot.com
run "xm list" and you see memory allocations to each domain. If you run "xm mem-set " you should be able to allocate that memory to domain 0 (if it needs it) xm mem-set 0 512 Would allocate 512MB to domain 0. On Mon, 2007-03-05 at 16:39 -0400, John Sanabria wrote:> Hi, > > i had installed the last updates for FC6 in a machine with 1 Giga of RAM. > The machine''s ip is 136.145.116.88. > > ------------------------------------------------------ > [root@dhcp-crl-116-88 ~]# free > total used free shared buffers cached > Mem: 962032 281512 680520 0 16116 191412 > -/+ buffers/cache: 73984 888048 > Swap: 2031608 0 2031608 > [root@dhcp-crl-116-88 ~]# uname -a > Linux dhcp-crl-116-88.ece.uprm.edu 2.6.19-1.2911.6.4.fc6xen #1 SMP Sat Feb > 24 14:57:17 EST 2007 i686 i686 i386 GNU/Linux > ------------------------------------------------------ > > now, i execute a "xm create xentemplate_6 -c", and voila! i lost approx > 250 Mbytes of PHYSICAL RAM, :-( > ------------------------------------------------------ > [root@dhcp-crl-116-88 ~]# free > total used free shared buffers cached > Mem: -> 764928 <- 375796 389132 0 17536 281980 > -/+ buffers/cache: 76280 688648 > Swap: 2031608 0 2031608 > ------------------------------------------------------ > > then, shutdown the virtual machine, and i did not get back the lost 250 > Mbytes of RAM. > anybody knows how to get back my physical memory after to shutdown the > virtual machine? is that behavior a bug? > > if i run two virtual machines, my physical memory is reduced until 512 MB > of Physical RAM. At this time, the only way to get 1Gbyte of RAM is > rebooting the machine :-(. > > Thanks a lot for your suggestions. > > http://ece.uprm.edu/~s047267 > http://del.icio.us/josanabr > http://blog-grid.blogspot.com > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen-- Andrew Cathrow Red Hat, Inc. (678) 733 0452 - Mobile (404) 437 6178 - Home Office acathrow@redhat.com
You can do the same via virsh too. By the way can someone tell me why doesn''t the RAM which was used by the VM is given back to Domain 0 automatically when the VM shuts down. On 3/6/07, Andrew Cathrow <acathrow@redhat.com> wrote:> > run "xm list" and you see memory allocations to each domain. > If you run "xm mem-set " you should be able to allocate that memory to > domain 0 (if it needs it) > > xm mem-set 0 512 > > Would allocate 512MB to domain 0. > > > On Mon, 2007-03-05 at 16:39 -0400, John Sanabria wrote: > > Hi, > i had installed the last updates for FC6 in a machine with 1 Giga of RAM.The machine''s ip is 136.145.116.88. > ------------------------------------------------------[root@dhcp-crl-116-88 ~]# free total used free shared buffers cachedMem: 962032 281512 680520 0 16116 191412-/+ buffers/cache: 73984 888048Swap: 2031608 0 2031608[root@dhcp-crl-116-88 ~]# uname -aLinux dhcp-crl-116-88.ece.uprm.edu 2.6.19-1.2911.6.4.fc6xen #1 SMP Sat Feb24 14:57:17 EST 2007 i686 i686 i386 GNU/Linux------------------------------------------------------ > now, i execute a "xm create xentemplate_6 -c", and voila! i lost approx250 Mbytes of PHYSICAL RAM, :-(------------------------------------------------------[root@dhcp-crl-116-88 ~]# free total used free shared buffers cachedMem: -> 764928 <- 375796 389132 0 17536 281980-/+ buffers/cache: 76280 688648Swap: 2031608 0 2031608------------------------------------------------------ > then, shutdown the virtual machine, and i did not get back the lost 250Mbytes of RAM.anybody knows how to get back my physical memory after to shutdown thevirtual machine? is that behavior a bug? > if i run two virtual machines, my physical memory is reduced until 512 MBof Physical RAM. At this time, the only way to get 1Gbyte of RAM isrebooting the machine :-(. > Thanks a lot for your suggestions. > http://ece.uprm.edu/~s047267http://del.icio.us/josanabrhttp://blog-grid.blogspot.com > --Fedora-xen mailing listFedora-xen@redhat.comhttps://www.redhat.com/mailman/listinfo/fedora-xen > > -- > > Andrew Cathrow > Red Hat, Inc. > > (678) 733 0452 - Mobile > (404) 437 6178 - Home Office > acathrow@redhat.com > > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen > >-- Enjoy Life !
Deependra Shekhawat wrote:> > You can do the same via virsh too. > By the way can someone tell me why doesn''t the RAM which was used by the > VM is given back to Domain 0 automatically when the VM shuts down.I believe the dom0 is expecting another guest to use that memory fairly soon. In other words, why waste time ballooning up dom0, just to balloon down again when another guest starts? Especially with large amounts of memory, this can take a significant amount of time, so it tries to avoid that. Chris Lalancette