WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xm mem-set for HVM Domain

To: cendhu <cendhu@xxxxxxxxx>
Subject: Re: [Xen-devel] xm mem-set for HVM Domain
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Sun, 26 Sep 2010 21:34:40 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 26 Sep 2010 13:35:48 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=qqYgAgIM18swEgEcznMrneGy6IpCFBIHqJ+Mm6p1kXY=; b=tU1TAR4GHukxzXlUR5z9FCeg7XQlDbR7teSEzIkvPdk1FYq9ToA1QC7YXM7Dy/Lzhe lckMw0R5Rf61NeTtwlVO/rc42n89Sr1Bo3glZMRcLLt4ATats3bTOEQd/KabJ+WlhaqA 3fA64vS4orZU+TmaEzpJxIaDfZwnCnas0iLlU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SDy4E1vjQ4NjR1/p4A6+7rH6t1jRlKAUDg41Rjhd+a7295JuBNhMRHDn2glltUZZcp N2Ph6DB9zn0PyPb200dqcF/dNOOa3k0emBLrdRcCu2pd+X1Gn/dxehxVnQN5bV/C9mTm l4YmzhRXUX5llNzlh4m6lanMCZMTZdx+B6AZE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=hEvPvFji3=11C68dUdpT+83_-aDHu2m5UQeA0@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTi=hEvPvFji3=11C68dUdpT+83_-aDHu2m5UQeA0@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sat, Sep 25, 2010 at 7:41 AM, cendhu <cendhu@xxxxxxxxx> wrote:
> HI,
>      I have an ubuntu 10.04 with xen kernel 2.6.32.11 as Dom0. xm mem-set
> does not seem to have any effect on the HVM domains.
> Xen Version : 4.0.1
> HVM : Ubuntu 10.04
> I have allocated 512MB to dom0 and 2048MB to HVM.
> $xm list
> Name                                        ID   Mem VCPUs      State
> Time(s)
> Domain-0                                     0   512     1     r-----
>  358.8
> lucid_hvm                                    1  2048     1     -b----
>  5.9
> The output of free command in the HVM
> $free -m
>              total       used       free     shared    buffers     cached
> Mem:          2012        153       1858          0         24         74
> -/+ buffers/cache:         55       1957
> Swap:          228          0        228
> Using xm mem-set, i tried to allocate 1024MB to the HVM
> $xm mem-set lucid_hvm 1024
> $xm list
> Name                                        ID   Mem VCPUs      State
> Time(s)
> Domain-0                                     0   512     1     r-----
>  363.1
> lucid_hvm                                    1  1024     1     -b----
>  7.2
>  xm list shows that only 1024MB of physical memory is allocated to the HVM.
> but, the output of free command in the HVM
> $ free -m
>              total       used       free     shared    buffers     cached
> Mem:          2012        154       1858          0         24         74
> -/+ buffers/cache:         55       1957
> Swap:          228          0        228
> No change in allocated memory. But, xm mem-set works perfectly with paraVM.
> I migrated HVM to another machine and checked the amount of data transferred
> which is 2048MB.
>
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>

I noticed the same thing a few days ago, I think that the mem-set
command should only work if there is a balloon driver running inside
the hvm domU which can "take away" the memory from the OS and return
it back to Xen, I don't understand why the command succeeds without a
balloon driver but your tests seem to show that it doesn't actually
work as migration moves the original amount of memory.

I will investigate this further tomorrow.

Andy

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>