From: Rusty Russell <rusty@rustcorp.com.au>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel List <xen-devel@lists.xensource.com>,
Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Subject: Re: /proc/xen/xenbus supports watch?
Date: Mon, 26 Sep 2005 09:06:03 +1000 [thread overview]
Message-ID: <1127689563.9596.18.camel@localhost.localdomain> (raw)
In-Reply-To: <4318f53c57216e19ba81c096b4a0c849@cl.cam.ac.uk>
On Sun, 2005-09-25 at 12:33 +0100, Keir Fraser wrote:
> On 25 Sep 2005, at 12:02, Keir Fraser wrote:
>
> > Yeah, I can live with this, although: What about multiple transactions
> > within the kernel? Do you plan to continue serialising them (e.g., on
> > a waitqueue)? An advantage of mux/demux would be that concurrent
> > kernel transactions could easily use the same mechanism. Your scheme
> > places restart mechanisms in user space, so they're out of reach for
> > kernel transactions.
We already have the mechanism: xenbus_lock. I don't think we want to go
for parallelism within the kernel for xenstore comms: it'd be a fair
amount of pain for something which isn't exactly speed critical. Like
Andrew said, I can't transactions getting significantly longer.
> Also, page-per-connection won't entirely avoid sharing of
> state/resource in xenstored. At some point we'll want to add per-domain
> access policy, and space/bandwidth quotas (to prevent DoS). All of
> those must be shared between the multiple connections of a domain -- so
> the separate connections aren't as independent as you might like.
We already have a permissions model based on domid (although not
actually enforced due to a bug: we can fix this with one line but will
require xend fixups I imagine). Space quotas will have to be by ID,
too, not by the connection(s) which created them: in the case of
migration, the store will be recreated by the tools, but should still be
counted against the ID which owns them. So even if we multiplexed all
the connections together for one domain they would still have to be
separate.
Bandwidth quotas are and interesting idea: I was thinking of a dumb
fairness scheme. We almost do this: we rotate the list of connections,
but there's a FIXME about the unfair way we service domain pages. Or we
could just measure the time we spend servicing each connection, and put
the slowest ones at the tail... (socket connections would be immune,
since we trust dom0 tools). I haven't thought too hard about it.
Thanks, I'll update the TODO file...
Rusty.
--
A bad analogy is like a leaky screwdriver -- Richard Braakman
next prev parent reply other threads:[~2005-09-25 23:06 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-08 8:02 /proc/xen/xenbus supports watch? NAHieu
2005-09-08 10:38 ` Christian Limpach
2005-09-09 0:43 ` Rusty Russell
2005-09-13 9:42 ` Christian Limpach
2005-09-14 0:21 ` Rusty Russell
2005-09-14 8:24 ` Christian Limpach
2005-09-14 9:18 ` Rusty Russell
2005-09-14 12:55 ` Christian Limpach
2005-09-15 1:39 ` Rusty Russell
2005-09-15 10:53 ` Keir Fraser
2005-09-17 8:26 ` Rusty Russell
2005-09-17 8:33 ` Keir Fraser
2005-09-19 0:11 ` Rusty Russell
2005-09-19 8:54 ` Keir Fraser
2005-09-20 11:01 ` Rusty Russell
2005-09-21 9:35 ` Keir Fraser
2005-09-22 2:07 ` Rusty Russell
2005-09-22 9:36 ` Keir Fraser
2005-09-22 22:54 ` Rusty Russell
2005-09-23 9:17 ` Keir Fraser
2005-09-25 3:29 ` Rusty Russell
2005-09-25 11:02 ` Keir Fraser
2005-09-25 11:33 ` Keir Fraser
2005-09-25 18:55 ` Christian Limpach
2005-09-26 6:36 ` Rusty Russell
2005-09-26 7:33 ` Keir Fraser
2005-09-26 18:51 ` Christian Limpach
2005-09-26 19:30 ` Keir Fraser
2005-09-27 6:48 ` Rusty Russell
2005-09-27 7:15 ` Rusty Russell
2005-09-27 23:31 ` David Hopwood
2005-09-25 23:06 ` Rusty Russell [this message]
2005-09-21 9:39 ` Keir Fraser
2005-09-21 11:42 ` harry
2005-09-22 2:22 ` Rusty Russell
2005-09-22 9:35 ` Keir Fraser
2005-09-22 23:51 ` Rusty Russell
2005-09-23 1:01 ` Andrew Warfield
2005-09-25 0:57 ` Rusty Russell
2005-09-25 11:09 ` Keir Fraser
2005-09-25 22:52 ` Rusty Russell
2005-09-23 9:24 ` Keir Fraser
2005-09-25 1:09 ` Rusty Russell
2005-09-17 17:40 ` Christian Limpach
2005-09-19 0:19 ` Rusty Russell
2005-09-15 11:02 ` Christian Limpach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1127689563.9596.18.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.