Re: Proposal - Reduce HTTP2 frame length from 16 to 12 bits

Patrick McManus <mcmanus@ducksong.com> Tue, 28 May 2013 20:35 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 75ED111E80DC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 28 May 2013 13:35:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level:
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xbVZb3dToqs8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 28 May 2013 13:35:39 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2986621F92E8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 28 May 2013 13:35:38 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UhQaz-0002ad-2r for ietf-http-wg-dist@listhub.w3.org; Tue, 28 May 2013 20:34:13 +0000
Resent-Date: Tue, 28 May 2013 20:34:13 +0000
Resent-Message-Id: <E1UhQaz-0002ad-2r@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1UhQal-0002Zp-Oj for ietf-http-wg@listhub.w3.org; Tue, 28 May 2013 20:33:59 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1UhQah-0000VG-8A for ietf-http-wg@w3.org; Tue, 28 May 2013 20:33:59 +0000
Received: by mail-ob0-f171.google.com with SMTP id ef5so9614065obb.16 for <ietf-http-wg@w3.org>; Tue, 28 May 2013 13:33:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=NZp8nNDkP/jLEcx0HKrzCdhh/qr8ae6jOrwJuqfyUH0=; b=uf/7SOGr5zup+VC24bFoHkqOE/lv8IBcEv9XtBsHjw7vfWP976OdE+ZiCqwQIAg1L+ Gi1JE9M5NhBxhzgluCkdgzc8BRWhQh9IJKLrh3ijA9bLsW8mu3lEogQIgqkDAi6YmkPs 0X4RL4mWbHRTmnfwioivbRd5aagaQDzkZhATjvlo0b/M9fg7AA+E2AYh156dPkxvN0Uk bKg9+T8DqIqZXFHx4z0Y/t9ug6LS4lmuZArOz/Ej0Dk0K8t216EmDRxfysYu+z1oeouY /azVWf9OZ1dQEjqG8lIzErHVXDh9ZMSxqvmbU0y5KbfK/OKDbHdQ/YIQ8su3RxaeCa5M Zpgg==
MIME-Version: 1.0
X-Received: by 10.182.225.199 with SMTP id rm7mr22189787obc.20.1369773209256; Tue, 28 May 2013 13:33:29 -0700 (PDT)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.105.230 with HTTP; Tue, 28 May 2013 13:33:29 -0700 (PDT)
In-Reply-To: <CAP+FsNez763nkt5EPo8Wf496gH-+hY_V1NRuT5TDuM+697L6_g@mail.gmail.com>
References: <CAOdDvNoAjiRSBv9ue6RgCQJ4wMNQcKBH2a8zVa4_96wbp=g8MA@mail.gmail.com> <CABP7Rbefh0HxT7Pui_F8viNvu8232O3Qt=VaR6SgsL1DQarVSA@mail.gmail.com> <CAA4WUYgKsDudsSAywWSwz5KVsEV5iUREqjmYVB5sWuc+11ujOQ@mail.gmail.com> <CAP+FsNdejY=K4fp6jMh1AzSkMpdxWNd+cCnaF6uw2GPfMVtjAA@mail.gmail.com> <CABP7Rbf6Ls8pBf9Rons9hgLeXjnm-yk6t6kebk1EXcS3bTdf_Q@mail.gmail.com> <CAA4WUYjGk5EYeP9pP=TDWdGGyq5PjwHcDc+qD1mBGuSAt9yvng@mail.gmail.com> <CAP+FsNez763nkt5EPo8Wf496gH-+hY_V1NRuT5TDuM+697L6_g@mail.gmail.com>
Date: Tue, 28 May 2013 16:33:29 -0400
X-Google-Sender-Auth: umG56rAsq8v60nW1RQ_xIWhAl2M
Message-ID: <CAOdDvNr81+HtAQ1bR5LtXHmD1Gz+XbfHP=9WZiNZvHodxUddpQ@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
To: Roberto Peon <grmocg@gmail.com>
Cc: "William Chan (陈智昌)" <willchan@chromium.org>, James M Snell <jasnell@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11c2f0688fa2ce04ddcd2dd7"
Received-SPF: pass client-ip=209.85.214.171; envelope-from=patrick.ducksong@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-2.498, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UhQah-0000VG-8A 8224d0440514fb128d4fde174ffdef01
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Proposal - Reduce HTTP2 frame length from 16 to 12 bits
Archived-At: <http://www.w3.org/mid/CAOdDvNr81+HtAQ1bR5LtXHmD1Gz+XbfHP=9WZiNZvHodxUddpQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18125
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Tue, May 28, 2013 at 4:12 PM, Roberto Peon <grmocg@gmail.com> wrote:

My sweet-spot number was 16k, as I knew that I could saturate a 10G nic
> with 16k frames/writes and have enough CPU left over to do some actual
> work. The amount of overhead goes up more than linearly with the decrease
> in frame size thanks to contention, etc.
>
>

Given what you've said here and in the other mail (plus of course my own
previously stated concerns) I'm inclined to suggest a 16KB max (14 bits)
without introducing any kind of max frame size configurable. My point is to
drive it as small as we can without creating excessive overhead and you've
put a stake in the ground that 16KB is that level. That's still 4x as
aggressive as the current draft.