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-users] Re: [Xen-devel] Xen - Guest memory allocation

To: "dinesh chandrasekaran" <dinesh_chan8@xxxxxxxxxxx>
Subject: Re: [Xen-users] Re: [Xen-devel] Xen - Guest memory allocation
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Mon, 16 Jun 2008 15:39:13 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 16 Jun 2008 12:39:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=5cZYlvxbWD1vMzfEGlC6yfl5klEkWGC4gewmp1v5NxI=; b=cbdB3DsOi+abvyMJui3eX195oeJV/qP3IIhAodnSJ1+WzeXyARz7w/82Zp3i1Kmazw TVkbheCj2BlQUMRwMO2tGTU0mxq1sw3L9c23ZEBK3eHVlIbWSgHNC7Jf3Rvl+r49cA0c LhOq6/Z+IB7fHcV23TlH66G8VNhNZotA/O1RQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=TYGA0z6KoioNswqe1wyZFVzJxW5w3JE6Wxdj+R6t1OC9ZxljjEYOv0NvpXxEua3XQo mqYSjVF1Nw8fjFipeRVvEmj0PK4xwDQVfNxfpRMAqGxFKEneudBkXzFRTuqTk3my28f5 mMr1rKn32cQIx2RIyN/Wy8NwPnSz6yFRyxrMw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BAY111-W189DCE4156AAEE3BFDFBECB1A90@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <BAY111-W26FD2E2BC2779F719AB0C2B1B70@xxxxxxx> <add59a3f0806061212y713c02ddm9b33cb4ee167ebfb@xxxxxxxxxxxxxx> <BAY111-W23058BCA7714D7DE9BEF70B1AD0@xxxxxxx> <add59a3f0806121937q5a814d09mdc52999d970a697b@xxxxxxxxxxxxxx> <BAY111-W189DCE4156AAEE3BFDFBECB1A90@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
by default, dom0 gets all the available memory (usable physical memory - xen hypervisor). Then, when domU starts up, xen will decrease  dom0's allocation via ballooning and allocate them to domU.

Do you want to specify the exact physical memory address space used by domU?

On Mon, Jun 16, 2008 at 2:37 PM, dinesh chandrasekaran <dinesh_chan8@xxxxxxxxxxx> wrote:
Yes, ofcourse dom0 can see this range.

But all the domUs memory has to fall in this restricted memory range (as specified by mypci_usabe)?

for example,
If I start three virtual machines, say VM1, VM2, VM3 with 64MB memory each,
how could I make sure that, the total 192MB for three VMs lie somewhere in mypci_usable range only and not anywhere else.

Thanks,
Dinesh C


Date: Thu, 12 Jun 2008 22:37:17 -0400Subject: Re: [Xen-users] Re: [Xen-devel] Xen - Guest memory allocation

CC: xen-devel@xxxxxxxxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx

Can dom0 address the whole memory space if no other domU running? If so, it can freely allocate memory to other guests.

On Thu, Jun 12, 2008 at 3:34 PM, dinesh chandrasekaran <dinesh_chan8@xxxxxxxxxxx> wrote:
Thanks Weiming,

                            But did the same by editing the e820.c. That is, after xen boots up, if I type "xm dmesg" I could find my output which is
(000000000fff000000 - 00000000ffffffff (mypci_usable)).

I couldn't find the exact place in xen source where the memory allocation for DomU guests are performed.

Now how can I make XEN use the above (mypci_usable) memory range to allocate memory for all its DomU guests.

Thanks in advance
Dinesh C



Date: Fri, 6 Jun 2008 15:12:49 -0400
From: zephyr.zhao@xxxxxxxxx
To: dinesh_chan8@xxxxxxxxxxx
CC: xen-devel@xxxxxxxxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: [Xen-devel] Xen - Guest memory allocation


I'm not very sure about your problem. Can the Hypervisor address the whole 5GB space? If yes, it can then allocate any of them to guests.

Or you can modify the "start info" passed to Guest OS. You can change the page_nr, a machine-PFN translation table to enable the guest to address the memory space that you want. It's weird.

On Fri, Jun 6, 2008 at 2:57 PM, dinesh chandrasekaran <dinesh_chan8@xxxxxxxxxxx> wrote:
YES.

        But if I want to add memory of type E820_USABLE to xen memory map during boot up (as per xen/e820.c) where the memory to be added lies behind a PCI device?

For ex,
If a PCI device reports it has 1GB of memory behind it.
And XEN has identified th RAM memory to be 4GB.

How can the PCI - 1GB can be added as usable memory to XEN's memory pool to get a cumulative size of 5GB;
 
thanks,
Dinesh C

On Fri, Jun 6, 2008 at 3:00 PM, Weiming wrote:

AFAIK, In para virtualization, when guest boots, it reads the memory layout from a special page (start info page) instead of from bios.
If your guest os is a PV Linux, you can check its source code (e.g. start_kernel(), etc.)

Thanks,
Weiming

On Fri, Jun 6, 2008 at 2:00 PM, dinesh chandrasekaran <dinesh_chan8@xxxxxxxxxxx> wrote:




CoolHotmail : Your crazy personality deserves a unique email identity like yourname@xxxxxxxxxxx. Choose from this and hundreds other unique email ids now Try it!

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




CoolHotmail : Your crazy personality deserves a unique email identity like yourname@xxxxxxxxxxx. Choose from this and hundreds other unique email ids now Try it!

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




Skydrive - Get 5GB online space for FREE!. Store and share music, photos and documents online with ease. Try it now!

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


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