Hi, I am able to shrink the memory footprint of the domain 0 as well as any other domain by the help of command xm balloon. But expanding doesn''t work properly for me. Prior to ballooning [root@tux06 ~]# xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 123 0 r---- 999.7 vtux02 8 63 1 -b--- 11.8 9608 After shrinking [root@tux06 ~]# xm balloon 0 64 [root@tux06 ~]# xm balloon 8 32 [root@tux06 ~]# xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 64 0 r---- 1000.7 vtux02 8 31 1 -b--- 11.9 9608 But expanding only works to a fixed extent [root@tux06 ~]# xm balloon 0 128 [root@tux06 ~]# xm balloon 8 64 [root@tux06 ~]# xm balloon 8 128 [root@tux06 ~]# xm balloon 0 256 [root@tux06 ~]# xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 123 0 r---- 1001.4 vtux02 8 63 1 -b--- 12.0 9608 I have done [root@tux06 ~]# xm maxmem 0 256 [root@tux06 ~]# xm maxmem 8 256 But it still doesn''t work. My machine has 1GB of physical memory and I am using Xen -2.0.7. Please suggest. ~$ubh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Friday 18 November 2005 07:56, Subhabrata Bhattacharya wrote:> But expanding only works to a fixed extent > > [root@tux06 ~]# xm balloon 0 128 > [root@tux06 ~]# xm balloon 8 64 > [root@tux06 ~]# xm balloon 8 128 > [root@tux06 ~]# xm balloon 0 256 > [root@tux06 ~]# xm list > Name Id Mem(MB) CPU State Time(s) Console > Domain-0 0 123 0 r---- 1001.4 > vtux02 8 63 1 -b--- 12.0 9608 > > I have done > [root@tux06 ~]# xm maxmem 0 256 > [root@tux06 ~]# xm maxmem 8 256 > But it still doesn''t work.Expanding only works up to the ammount initially allocated to a domain. So simply start each domain with a large ammount of memory, and balloon them down. Balloon works by having a kernel driver inside the dom allocate a chunk of memory and releasing that chunk back to xen. Ballooning a domain to more memory than it initially had would require the balloon driver to allocate a negative ammount of memory, which simply isn''t possible. /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ernst Bachmann wrote:> Balloon works by having a kernel driver inside the dom allocate a chunk of > memory and releasing that chunk back to xen. Ballooning a domain to more > memory than it initially had would require the balloon driver to allocate a > negative ammount of memory, which simply isn''t possible.I''d think there''d be some way to expose extra memory allocated at runtime, even if it''s not exactly an efficient one. At a minimum, one could expose extra memory through a MTD driver and add it as high-priority swap -- and I''m sure better options are available as well. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users