All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple priviliged domains
@ 2004-12-19  5:52 John L Griffin
  2004-12-19  9:22 ` Ian Pratt
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John L Griffin @ 2004-12-19  5:52 UTC (permalink / raw)
  To: xen-devel

During my test machine's idle time I'm running the Linux Test Project on 
multiple unprivileged Xen domains (i.e., more domains than the number of 
real processors on the machine), for general stress testing & to see 
whether any problems crop up.

While running this workload I noticed occasional horrendously slow 
interactive performance in Domain-0 (in which I was not running the LTP). 
Although I haven't yet looked in depth at the source of the slowdown, my 
hypothesis is that Domain-0 blocks handling the high I/O load generated by 
the unprivileged domains, leading to slow keyboard responses.  This brings 
up several questions:

1. What is the model for allocating processor time to Domain-0?  Based on 
my read of the Xen docs to date, I would expect it to [at least be 
intended to] have an unbounded priority share of the total processing 
resources, with some attempt at allocating unprivileged-domain-specific 
processing (e.g., handling I/O or memory allocation requests) to the 
requesting unprivileged domain.  Along these lines, should there be a 
parameterizable configuration file for Domain-0?

2. Have there been discussions about allowing multiple simultaneous 
privileged domains, among which the physical resources are split?  Or 
perhaps "semiprivileged" domains -- for example, a domain that handles all 
the I/O requests to a particular storage device, or alternatively handles 
all the I/O requests for a particular class/subset of unprivileged 
domains?  I envision a desire for a master control partition (with 
priority resource allocation) that forms the root of a hierarchical domain 
structure, under which one or more I/O partitions execute.  (I recall 
reading about this sort of design in one of the older VMM papers, or 
perhaps a recent Denali paper?)

3. I don't seem to be able to create more than 8 VBDs. [I am using 
xen-2.0.1-src.tgz.]  While trying to start 5 domains, each of which had 
two "scsi" disks (/ and swap), I discovered that the 5th domain wouldn't 
start until I removed the swap disks from both the 4th and 5th domains' 
configuration files -- i.e., not exceeding 8 VBDs total.  A cursory search 
through the code didn't reveal any relevant #define's, and I didn't see 
anything about this in the Xen docs, so before I look further I thought 
I'd ask the list if this is a known limit.  (If so, I am surprised the VBD 
structures aren't allocated dynamically to prevent this?)  A search of the 
mailing list revealed a message from Ian on 2004-03-10 stating "Mark wrote 
a pretty good readme on VBDs and put it in the tree", but I couldn't find 
the readme; is it still part of the tree?

4. On a loosely related note, what regression tests are used by the Xen 
developers?  (I.e., what should be run before generating patches?)

-- 
Dr. John Linwood Griffin
Research Staff Member, Secure Systems Department
IBM T.J. Watson Research Center, Hawthorne, New York, USA
JLG at us.ibm.com, http://www.research.ibm.com/people/j/jlg/



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: Multiple priviliged domains
@ 2004-12-19 21:44 Neugebauer, Rolf
  2004-12-19 14:52 ` Jacob Gorm Hansen
  2004-12-19 22:29 ` Ian Pratt
  0 siblings, 2 replies; 9+ messages in thread
From: Neugebauer, Rolf @ 2004-12-19 21:44 UTC (permalink / raw)
  To: Jacob Gorm Hansen, Mark Williamson; +Cc: xen-devel, John L Griffin



> -----Original Message-----
> From: xen-devel-admin@lists.sourceforge.net [mailto:xen-devel-
> admin@lists.sourceforge.net] On Behalf Of Jacob Gorm Hansen
> Sent: 19 December 2004 11:52
> To: Mark Williamson
> Cc: xen-devel@lists.sourceforge.net; John L Griffin
> Subject: Re: [Xen-devel] Multiple priviliged domains
> 
> Mark Williamson wrote:
> l.
> >
> > Obviously, dom0 will need control of some physical devices  inorder
to
> have
> > something to boot from (unless  ofcourse you use a *really big*
initrd
> :-) ).
> >
> 
> hi,
> 
> In my setup, you do not need a very large initrd to do this.
> Essentially, the only thing running in dom0 is a simple ICMP/ping
> server. You send a specially formatted and signed ping payload to
dom0,
> and in response to that it fires up a new VM with a UIP TCP/IP stack
> inside.  You then connect to that TCP/IP stack, and self-migrate or
> (eventually, not implemented yet) bootstrap directly into the
> unprivileged guest. Dom0 does not need to have a TCP/IP stack, and at
> present the ping server main loop is only 50 lines of code.
> 
> With pre-NGIO version of Xen 1.3 that I am currently using, all you
need
> in your dom0-initrd is the ping server and an ELF image from which to
> create UIP guest VMs.

Yes, but in 1.3 device drivers are still in Xen. In 2.0 device drivers
are run in a guest OS (which was what the original poster was looking
for). In order to boot dom0 in this model without physical device
drivers it would need a *really big* initrd (as Mark said) because it
would need to create other VMs from it to provide dom0 with virtual
devices. I'm not sure at all if xend supports this sort of setting.

If you have a decent server class machine with multiple nics and scsi
controllers you could use some of these to get dom0 booting and then
fire off other VMs to provide isolated device services to other VMs.
That "should" be supported by xend...

rolf




> I am hoping that in the future the parts of xend
> that have to do with setting up network interfaces to domains will
split
> out into a small C executable, as that would allow me to provide
similar
> functionality for Xen 2.0 or 2.1.
> 
> Source and binaries are available from
> http://www.diku.dk/~jacobg/self-migration/
> 
> Jacob
> 
> PS: I do apologize to the long-time subscribers who are fed with me
> spamming this list with ads for self-migration stuff every time a new
> user who could find this relevant shows up on the list. Perhaps I can
> convince the Xen webpage maintainers to link to my stuff as a related
> project?
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-12-19 22:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-19  5:52 Multiple priviliged domains John L Griffin
2004-12-19  9:22 ` Ian Pratt
2004-12-19 14:02   ` Jan Kundrát
2004-12-19 17:05 ` Bin Ren
2004-12-19 18:25 ` Mark Williamson
2004-12-19 11:52   ` Jacob Gorm Hansen
  -- strict thread matches above, loose matches on Subject: below --
2004-12-19 21:44 Neugebauer, Rolf
2004-12-19 14:52 ` Jacob Gorm Hansen
2004-12-19 22:29 ` Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.