From: Eric Blake <eblake@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] RFC: qio: Improve corking of TLS sessions
Date: Mon, 10 Jun 2019 09:40:14 -0500 [thread overview]
Message-ID: <08d5564a-0b6d-f9c6-dd30-5c2465c0f74b@redhat.com> (raw)
In-Reply-To: <fd11c04f-c02a-8565-9f3b-e7ff83262725@redhat.com>
[-- Attachment #1.1: Type: text/plain, Size: 1281 bytes --]
On 6/10/19 9:02 AM, Eric Blake wrote:
>
> send(MSG_MORE)
> send()
>
> is ideal; under the hood, we can translate it to:
>
> send(MSG_MORE)
> gnutls_record_cork()
> gnutls_record_send()
> send()
> if (size > threshold) {
> gnutls_record_uncork()
> gnutls_record_send()
> } else {
> gnutls_record_send()
> gnutls_record_uncork()
> }
>
> So we really need a way to plumb a MSG_MORE flag for senders to use,
> when they KNOW they will be sending back-to-back pieces and where the
> first piece is short, but it is not yet obvious whether the second piece
> is short or long.
This is what I meant to say,
>
> MSG_MORE was lon the next message to go through the stack, if the
> previous message next paccork for
this was an editing accident on incomplete thoughts. But I wanted to add:
Setting up the ability to pass MGS_MORE through the qio stack will
require either an update to ALL callers of qio_write to pass a flags
argument (usually 0), or to add a set of new entry points to qio for the
few callers that want to pass a non-zero flags argument (for now, nbd
and sheepdog).
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2019-06-10 14:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 22:14 [Qemu-devel] [PATCH] RFC: qio: Improve corking of TLS sessions Eric Blake
2019-06-07 22:59 ` Eric Blake
2019-06-10 9:08 ` Daniel P. Berrangé
2019-06-10 14:02 ` Eric Blake
2019-06-10 14:40 ` Eric Blake [this message]
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=08d5564a-0b6d-f9c6-dd30-5c2465c0f74b@redhat.com \
--to=eblake@redhat.com \
--cc=berrange@redhat.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).