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] host information in domU over /proc or /sys filesystem

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] host information in domU over /proc or /sys filesystem
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Mon, 28 May 2007 20:11:45 +0100
Cc: Hannes Kuehnemund <hannes.kuehnemund@xxxxxxx>
Delivery-date: Mon, 28 May 2007 12:10:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4655B186.8050209@xxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4655B186.8050209@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
> This feature is very important for quality of service aspects. How many
> physical CPU do I have? How many CPU time can I use?

I'm not exactly sure whether a domU needs to know this?  or do you mean dom0 
specifically?

The number of physical CPUs the domain's VCPUs are being scheduled across 
might change dynamically.  You can, however, change the number of VCPUs a 
domain is allocated as an indication of how many CPUs it should try to 
optimise for.  There's also /sys/hypervisor which contains some relevant 
information.

dom0 is permitted to access more detailed information about the host machine 
through a hypercall (use "xm info" to see what's available).

> Other important > information would the real memory and the hostname of the 
host machine.

I'm not sure why a domU would need to know the hostname of the host machine?  
Also, this could change during migration, so it's not a stable value.

Cheers,
Mark

> Basically all this information is provided by other virtualization
> technologies as read only values. Having a huge hosting solution with
> enterprise software running in virtual machines depends on these quality
> of service aspects. Having a black box makes debugging of performance
> issues impossible and thus the whole solution is not usable.
>
> Is it possible to provide such a solution with Xen (of course only if
> enabled in dom0 due to security reasons!) over the /proc or /sysfs?
>
> Thanks,
> Hannes



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

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