From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Paul Durrant <Paul.Durrant@citrix.com>
Cc: Ian Jackson <Ian.Jackson@citrix.com>,
"Tim(Xen.org)" <tim@xen.org>, "Keir (Xen.org)" <keir@xen.org>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v5 3/5] public/io/netif.h: add documentation for hash negotiation and mapping
Date: Thu, 22 Oct 2015 12:32:20 +0100 [thread overview]
Message-ID: <1445513540.9563.283.camel@citrix.com> (raw)
In-Reply-To: <5628DDE002000078000AD7FC@prv-mh.provo.novell.com>
On Thu, 2015-10-22 at 05:00 -0600, Jan Beulich wrote:
> > > > On 22.10.15 at 12:44, <Paul.Durrant@citrix.com> wrote:
> > > From: Jan Beulich [mailto:JBeulich@suse.com]
> > > Sent: 22 October 2015 09:48
> > > > > > On 20.10.15 at 14:35, <paul.durrant@citrix.com> wrote:
> > > > + * max-key-length: an integer value indicating the maximum key
> > > > length (in
> > > > + * octets) that the frontend may supply.
> > > > + *
> > > > + * Upon selecting this algorithm, the frontend may supply the
> > > > following
> > > > + * parameters.
> > > > + *
> > > > + * types: a space separated list containing none, any or all of
> > > > the type
> > > > + * names included in the types list in the capabilities.
> > > > + * When the backend encounters a packet type not in this
> > > > list it
> > > > + * will assign a hash value of 0.
> > > > + *
> > > > + * key: a ':' separated list of octets (up to the maximum length
> > > > specified
> > > > + * in the capabilities) expressed in hexadecimal indicating
> > > > the key
> > > > + * that should be used in the hash calculation.
> > >
> > > While I see no way around this proliferation of keys, have you
> > > considered the resource consumption effect? Guests have a limit on
> > > how much space they may consume in xenstore, and with additions
> > > like these it seems increasingly likely for the defaults to no longer
> > > be
> > > sufficient.
> >
> > I have considered it and I think it will probably mean adjustments when
> > we
> > pull this into XenServer. Do you think it's worth making a change in
> > the
> > default oxenstored.conf as part of this series?
>
> Well, I've actually been looking a the C variant when replying. And
> whether increasing the defaults is an acceptable thing I'm not sure
> - after all there is a point for these limits to be there (I suppose).
It's to prevent the guest consuming an arbitrary amount of resource in the
xenstored domain.
Is there not some other way this sort of "bulkish" (-ish because I'm not
sure how large these things can be) can be communicated, either via
add/remove ring operations or by a dedicated granted page or ... ?
IIRC there is also a limit on the maximum size of a key inherent in the XS
wire protocol. Maybe 2 or 4K?
Ian.
next prev parent reply other threads:[~2015-10-22 11:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 12:35 [PATCH v4 0/4] Updates to public/io/netif.h Paul Durrant
2015-10-20 12:35 ` [PATCH v5 1/5] public/io/netif.h: document the reality of netif_rx_request/reponse Paul Durrant
2015-10-20 12:35 ` [PATCH v5 2/5] public/io/netif.h: add definition of gso_prefix flag Paul Durrant
2015-10-20 12:35 ` [PATCH v5 3/5] public/io/netif.h: add documentation for hash negotiation and mapping Paul Durrant
2015-10-22 8:47 ` Jan Beulich
2015-10-22 10:44 ` Paul Durrant
2015-10-22 11:00 ` Jan Beulich
2015-10-22 11:32 ` Ian Campbell [this message]
2015-10-22 11:42 ` Paul Durrant
2015-10-22 12:10 ` Paul Durrant
2015-10-22 12:32 ` Jan Beulich
2015-10-20 12:35 ` [PATCH v5 4/5] public/io/netif.h: add extra info slots for passing hash values Paul Durrant
2015-10-22 8:51 ` Jan Beulich
2015-10-22 10:45 ` Paul Durrant
2015-10-22 11:00 ` Jan Beulich
2015-10-20 12:35 ` [PATCH v5 5/5] public/io/netif.h: tidy up and remove duplicate comments Paul Durrant
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=1445513540.9563.283.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=JBeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.