From: David Vrabel <david.vrabel@citrix.com>
To: Oliver Chick <oliver.chick@citrix.com>
Cc: <xen-devel@lists.xen.org>, <konrad.wilk@oracle.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [Xen-devel] [PATCH] Persistent grant maps for xen blk drivers
Date: Thu, 20 Sep 2012 11:34:14 +0100 [thread overview]
Message-ID: <505AF126.2050806@citrix.com> (raw)
In-Reply-To: <1348051887-21885-1-git-send-email-oliver.chick@citrix.com>
On 19/09/12 11:51, Oliver Chick wrote:
> This patch implements persistent grants for the xen-blk{front,back}
> mechanism.
[...]
> We (ijc, and myself) have introduced a new constant,
> BLKIF_MAX_PERS_REQUESTS_PER_DEV. This is to prevent a malicious guest
> from attempting a DoS, by supplying fresh grefs, causing the Dom0
> kernel from to map excessively.
[...]
> 2) Otherwise, we revert to non-persistent grants for all future grefs.
Why fallback instead of immediately failing the request?
> diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
> index 73f196c..f95dee9 100644
> --- a/drivers/block/xen-blkback/blkback.c
> +++ b/drivers/block/xen-blkback/blkback.c
> @@ -78,6 +78,7 @@ struct pending_req {
> unsigned short operation;
> int status;
> struct list_head free_list;
> + u8 is_pers;
Using "pers" as an abbreviation for "persistent" isn't obvious. For
readability it may be better spell it in full.
> +/*
> + * Maximum number of persistent grants that can be mapped by Dom0 for each
> + * interface. This is set to be the size of the ring, as this is a limit on
> + * the number of requests that can be inflight at any one time. 256 imposes
> + * an overhead of 11MB of mapped kernel space per interface.
> + */
> +#define BLKIF_MAX_PERS_REQUESTS_PER_DEV 256
This 11MB per VBD seems like a lot. With 150 VMs each with 2 VBDs this
requires > 3 GB. Is this a scalability problem?
Does there need to be a mechanism to expire old maps in blkback?
David
next prev parent reply other threads:[~2012-09-20 10:34 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 10:51 [PATCH] Persistent grant maps for xen blk drivers Oliver Chick
2012-09-19 11:17 ` Konrad Rzeszutek Wilk
2012-09-19 11:17 ` Konrad Rzeszutek Wilk
2012-09-19 12:03 ` [Xen-devel] " Jan Beulich
2012-09-20 8:51 ` Oliver Chick
2012-09-20 9:11 ` Jan Beulich
2012-09-20 9:11 ` Jan Beulich
2012-09-20 8:51 ` Oliver Chick
2012-09-19 12:03 ` Jan Beulich
2012-09-19 13:16 ` [Xen-devel] " Pasi Kärkkäinen
2012-09-19 13:16 ` Pasi Kärkkäinen
2012-09-20 9:35 ` Oliver Chick
2012-09-20 9:35 ` [Xen-devel] " Oliver Chick
2012-09-20 10:09 ` Pasi Kärkkäinen
2012-09-20 10:09 ` [Xen-devel] " Pasi Kärkkäinen
2012-09-19 14:11 ` Konrad Rzeszutek Wilk
2012-09-20 13:12 ` Oliver Chick
2012-09-20 13:52 ` Konrad Rzeszutek Wilk
2012-09-20 13:52 ` Konrad Rzeszutek Wilk
2012-09-20 13:12 ` Oliver Chick
2012-09-19 14:11 ` Konrad Rzeszutek Wilk
2012-09-20 10:34 ` David Vrabel [this message]
2012-09-20 11:30 ` [Xen-devel] " Oliver Chick
2012-09-20 11:48 ` Jan Beulich
2012-09-20 13:49 ` Konrad Rzeszutek Wilk
2012-09-20 13:49 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-09-20 14:13 ` Oliver Chick
2012-09-20 14:13 ` [Xen-devel] " Oliver Chick
2012-09-20 16:10 ` Jan Beulich
2012-09-20 16:10 ` Jan Beulich
2012-09-20 21:24 ` Konrad Rzeszutek Wilk
2012-09-20 21:24 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-09-21 7:18 ` Jan Beulich
2012-09-21 8:41 ` Oliver Chick
2012-09-21 8:41 ` [Xen-devel] " Oliver Chick
2012-09-21 9:41 ` Jan Beulich
2012-09-21 9:41 ` Jan Beulich
2012-09-21 7:18 ` Jan Beulich
2012-09-21 8:10 ` [Xen-devel] " Ian Campbell
2012-09-21 14:26 ` Konrad Rzeszutek Wilk
2012-09-21 14:26 ` Konrad Rzeszutek Wilk
2012-09-21 8:10 ` Ian Campbell
2012-09-20 15:35 ` Jan Beulich
2012-09-20 15:35 ` [Xen-devel] " Jan Beulich
2012-09-21 12:23 ` David Vrabel
2012-09-21 12:23 ` [Xen-devel] " David Vrabel
2012-09-21 14:27 ` Konrad Rzeszutek Wilk
2012-09-21 14:27 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-09-21 16:17 ` David Vrabel
2012-09-21 16:17 ` [Xen-devel] " David Vrabel
2012-09-21 17:13 ` Konrad Rzeszutek Wilk
2012-09-21 17:13 ` Konrad Rzeszutek Wilk
2012-09-20 11:48 ` Jan Beulich
2012-09-20 11:30 ` Oliver Chick
2012-09-20 10:34 ` David Vrabel
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=505AF126.2050806@citrix.com \
--to=david.vrabel@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oliver.chick@citrix.com \
--cc=xen-devel@lists.xen.org \
/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.