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: Distro kernel and 'virtualization server' vs. 'server that sometimes

To: Luke S Crawford <lsc@xxxxxxxxx>
Subject: Re: Distro kernel and 'virtualization server' vs. 'server that sometimes runs virtual instances' rant (was: Re: [Xen-devel] Re: [GIT PULL] Xen APIC hooks (with io_apic_ops))
From: Tim Post <echo@xxxxxxxxxxxx>
Date: Fri, 29 May 2009 09:00:39 +0800
Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 28 May 2009 18:01:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <m3bppc3m09.fsf@xxxxxxxxxxxxxxxxxx>
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: <e5322423-6944-432f-911e-2f5beb18eaee@default> <m3r5y94epv.fsf@xxxxxxxxxxxxxxxxxx> <1243517950.5849.151.camel@xxxxxxxxxxxxxxxxxxxxx> <m3bppc3m09.fsf@xxxxxxxxxxxxxxxxxx>
Reply-to: echo@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2009-05-28 at 18:23 -0400, Luke S Crawford wrote:
> Tim Post <echo@xxxxxxxxxxxx> writes:
> 
> > What, exactly is cowboy hackery? A dom-0 that might be a little slower
> > if you boot it without Xen? 
> 
> No, I mean like Debian's 2.6.27 Dom0.  As far as I can tell, 
> they imported the SUSE Xen patch once, and have not pulled any of SUSE's 
> bugfixes since.   By all reports, it works fine, and is excellent as a 
> desktop OS.   However, it's not something I want on the server where 
> reboots cost me money.

One of the biggest problems is having to go out of tree to get a usable
dom-0, then you deploy it .. then you find interesting bugs a week
later. I think everyone right now is just crossing their fingers.

> But why make the default something that will crash the server?

That's really something for the various distros to address too.

> > I don't have this problem. I export PV guest vitals over xenbus and set
> > up watches on them. As for overcommitment, the first step is knowing how
> > much memory each domain's kernel has actually promised to running
> > processes. That much is already in the tree. 
> 
> That only solves half of the problem and gets you back to where
> you are with FreeBSD jails/unionfs (well, also my users run their own
> kernels and have full control over userland.)   Even with that problem 
> solved, you still have the problem of disk cache, which is essential for 
> acceptable performance.

Right now, what we're doing is not quite overcommitment, its more like
accounting. By placing the output of sysinfo() and more (bits
of /proc/meminfo) on Xenbus, its easy to get a bird's eye view of what
domains are under or over utilizing their given RAM. If a domain has
1GB, yet its kernel is consistently committing only 384MB (actual size),
there's a good chance that the guest would do just as well with 512MB,
depending on its buffer use. The reverse is also true. Its looking at
the whole VM big picture, including buffers, swap, etc.

Its not an automatic process, but it does allow an administrator to
better organize domains and allocate resources. In the case where you've
sold someone 1GB its not applicable .. but in an office / enterprise
setting it does make things easier.

> This is why I'm so uneasy above overcommit.  Ram is not like CPU, which
> you can take away at a moments notice and give back as if (almost) nothing
> happened.  (or perhaps new CPUs are just so much more powerful than I 
> need that I don't notice the degridation.)

I'm the same way, I look forward to seeing the balloon driver advance,
however I'd never flip a switch to 'auto'. 

> hm.  Well, it is bad that I am coming across as disgruntled.

Frustrated is probably a better word. 

> But 
> I do think it is bad that the tools that come with xen seem to be focused
> on Xen as a desktop OS at the expense of xen as a dedicated 
> virtualization server.  I don't think Xen makes a particularly good
> desktop virtualization platform, and this setup unnecessarily 
> raises the barrier to using Xen as a dedicated virtualization server.

The tools are the minimum needed to control and manage domains, plus an
API for those who don't want to get intimiate with the lower level
libraries.

I know they're basic, but they also present good examples and a great
opportunity to make tools that suit your exact need.

I don't quite understand why you feel they are better suited to desktop
virtualization (taking the API into consideration for multi server
setups)?

Cheers,
--Tim





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

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