Re: [hybi] hum #3: Message
Scott Ferguson <ferg@caucho.com> Sat, 07 August 2010 22:45 UTC
Return-Path: <ferg@caucho.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D358E3A68C3 for <hybi@core3.amsl.com>; Sat, 7 Aug 2010 15:45:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.669
X-Spam-Level:
X-Spam-Status: No, score=-1.669 tagged_above=-999 required=5 tests=[AWL=-0.929, BAYES_20=-0.74]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y84zb9Rv7Q+i for <hybi@core3.amsl.com>; Sat, 7 Aug 2010 15:45:50 -0700 (PDT)
Received: from smtp113.biz.mail.re2.yahoo.com (smtp113.biz.mail.re2.yahoo.com [66.196.116.98]) by core3.amsl.com (Postfix) with SMTP id 7CB9A3A688D for <hybi@ietf.org>; Sat, 7 Aug 2010 15:45:50 -0700 (PDT)
Received: (qmail 1270 invoked from network); 7 Aug 2010 22:46:20 -0000
Received: from [192.168.1.11] (ferg@66.92.8.203 with plain) by smtp113.biz.mail.re2.yahoo.com with SMTP; 07 Aug 2010 15:46:19 -0700 PDT
X-Yahoo-SMTP: L1_TBRiswBB5.MuzAo8Yf89wczFo0A2C
X-YMail-OSG: AX3Im8EVM1nbxzeXTJ.bXIL3j7SY2cAwpZunyJUY3tJWOYo owUiDY9Hdxs2LNkPp9s5hh_PE1DwkqEYYSERQlgibw_YDqfzqrEAoqtk3HGK qsUnWdouaMuXi20gkR02gQzIpsw9y0NirpqOlawqEEvTnkWVfluTZ7nFXHUi ohpAMGVvB7yPtBRZ.ymRnYZW8Sl36rFeGMxoYOhPieXuEUw8E0tdGUMZ8BJ6 BBwO6gaXnRF1kFKQhE.zFGKaWxu1xAaHgcbvj4_lbd3.b_XHE89Et_YzfO.a LZd9Hu4f7CvYXwhcY2fZv7lvfWaeNXyEM2Q6OS6XI.y1J.D28xeINqFafYQp vpUZIoQIp4LCnPbum4PZjy6BlreTl.OqJuBkbXjZEZM8nFMolvQN269oJw5u Y6WFKNxIbuhqN45SwNQ--
X-Yahoo-Newman-Property: ymail-3
Message-ID: <4C5DE235.1050606@caucho.com>
Date: Sat, 07 Aug 2010 15:46:13 -0700
From: Scott Ferguson <ferg@caucho.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: Willy Tarreau <w@1wt.eu>
References: <AANLkTinXLPmBACd3ji0V9wkAWmxOR7qBMED19KKMvJrd@mail.gmail.com> <AANLkTi=RWdqDDgy24C6qtUSr+5R5p=P15B=+aUZuE16Q@mail.gmail.com> <4C5C07D6.1030208@noemax.com> <AANLkTimj9RvzL8E+FmH=vT_TeECVNmDPXY0ymPnvBHSZ@mail.gmail.com> <4C5C31DF.3030608@caucho.com> <2286.1281126409.976140@puncture> <4C5CBAEB.3050809@caucho.com> <20100807043359.GD4387@1wt.eu> <4C5DB23F.102@caucho.com> <AANLkTimCNQZUFS2b=dnW8bPsY-q6JkjuGkt-AsiNvrNL@mail.gmail.com> <20100807202331.GB8115@1wt.eu>
In-Reply-To: <20100807202331.GB8115@1wt.eu>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Server-Initiated HTTP <hybi@ietf.org>
Subject: Re: [hybi] hum #3: Message
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Aug 2010 22:45:51 -0000
Willy Tarreau wrote: > On Sat, Aug 07, 2010 at 12:38:11PM -0700, Roberto Peon wrote: > >> If we're going over TCP/IP, you may as well think about the overhead for the >> TCP/IP headers. >> It ends up coming down to transaction rate as much as anything else. >> -=R >> That's a good point. It's also an argument for a fixed 64-bit length. > > Yes, but if/when we add multiplexing, it might be nice to be able to push > as many transactions as possible in a single TCP segment. > True, but you need a high message rate, even with multiplexing, to make it worth delaying. (I can't estimate how often that will happen. Maybe someone has a good feel for this?) > Scott, in my opinion, what is important is not to compare overheads together > but efficiency (payload/total), which is what really matters. Indeed, halving > the overhead when it's already not noticeable won't save much bandwidth. > However if we can keep it low for small packets, it helps : > > > 8/64 16/64 64 8/64 vs 16/64 > -------------------------------- > 16 88.9% 84.2% 64.0% +5.6% > 20 90.9% 87.0% 69.0% +4.5% > 32 94.1% 91.4% 78.0% +3.0% > Yes. That's a good way of looking at the data. > Now we see that above 512 bytes, we're fighting in the same yard with every > model. However, I think that it's interesting to note that below 128, 8/64 > has a significant advantage (and 64 alone is a total waste). > It's a space vs complexity trade-off. Is it worth the extra implementation complexity of the 256-byte boundary to save 5% space? For me, no. I would happily pay that 5% to keep my code simple. > I have intentionally added the 255-bytes message so see the maximal > theorical efficiency on 8-bit. In fact it will often be between 0.5% and > 2% more efficient than the 16-bit model for tweets. Also, in my opinion, > we should theorically plan to send messages up to 510 bytes as 2 chunks > of 255, which finally improves efficiency to 98.5 for the 256-bytes message > (and up 99.2 for 512-bytes). This finally results in -0.3% for 8 vs 16 > instead of -2.2%. > > So in fact with 8 bit we could get savings of up to a few percent compared > to 16-bit on very short messages, and losses of at most 1.1% (511-bytes). > That's why I think it should still get an advantage, eventhough I admit > both tie on medium to large messages. > This is all true, but I'd still prefer the savings in code complexity because the difference in space is close enough, imo. -- Scott > Regards, > Willy > > > > >
- Re: [hybi] hum #3: Message Jamie Lokier
- [hybi] hum #3: Message Salvatore Loreto
- Re: [hybi] hum #3: Message Ian Hickson
- Re: [hybi] hum #3: Message John Tamplin
- Re: [hybi] hum #3: Message Douglas Otis
- Re: [hybi] hum #3: Message Maciej Stachowiak
- Re: [hybi] hum #3: Message Dave Cridland
- Re: [hybi] hum #3: Message Ian Hickson
- Re: [hybi] hum #3: Message Julian Reschke
- Re: [hybi] hum #3: Message John Tamplin
- Re: [hybi] hum #3: Message Jack Moffitt
- Re: [hybi] hum #3: Message Bjoern Hoehrmann
- Re: [hybi] hum #3: Message Willy Tarreau
- Re: [hybi] hum #3: Message Bjoern Hoehrmann
- Re: [hybi] hum #3: Message Maciej Stachowiak
- Re: [hybi] hum #3: Message Julian Reschke
- Re: [hybi] hum #3: Message Roberto Peon
- Re: [hybi] hum #3: Message Maciej Stachowiak
- Re: [hybi] hum #3: Message Jack Moffitt
- Re: [hybi] hum #3: Message Willy Tarreau
- Re: [hybi] hum #3: Message Maciej Stachowiak
- Re: [hybi] hum #3: Message Maciej Stachowiak
- Re: [hybi] hum #3: Message Dave Cridland
- Re: [hybi] hum #3: Message Maciej Stachowiak
- Re: [hybi] hum #3: Message Dave Cridland
- Re: [hybi] hum #3: Message Greg Wilkins
- Re: [hybi] hum #3: Message Dave Cridland
- Re: [hybi] hum #3: Message Jack Moffitt
- Re: [hybi] hum #3: Message Ian Fette (イアンフェッティ)
- Re: [hybi] hum #3: Message Ian Fette (イアンフェッティ)
- [hybi] Background info: Properties of sendfile() Jamie Lokier
- Re: [hybi] hum #3: Message Jamie Lokier
- Re: [hybi] Background info: Properties of sendfil… Roy T. Fielding
- Re: [hybi] Background info: Properties of sendfil… Jamie Lokier
- Re: [hybi] Background info: Properties of sendfil… Greg Wilkins
- Re: [hybi] Background info: Properties of sendfil… Roberto Peon
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] Background info: Properties of sendfil… Jamie Lokier
- Re: [hybi] Background info: Properties of sendfil… Greg Wilkins
- Re: [hybi] Background info: Properties of sendfil… Willy Tarreau
- Re: [hybi] Background info: Properties of sendfil… Maciej Stachowiak
- Re: [hybi] Background info: Properties of sendfil… Willy Tarreau
- Re: [hybi] hum #3: Message Pieter Hintjens
- Re: [hybi] hum #3: Message Arman Djusupov
- Re: [hybi] hum #3: Message Pieter Hintjens
- Re: [hybi] hum #3: Message Julian Reschke
- Re: [hybi] hum #3: Message Arman Djusupov
- Re: [hybi] Background info: Properties of sendfil… Jack Moffitt
- Re: [hybi] hum #3: Message John Tamplin
- Re: [hybi] hum #3: Message Arman Djusupov
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] hum #3: Message Patrick McManus
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] hum #3: Message Patrick McManus
- Re: [hybi] Background info: Properties of sendfil… Roberto Peon
- Re: [hybi] Background info: Properties of sendfil… Jamie Lokier
- Re: [hybi] hum #3: Message Dave Cridland
- Re: [hybi] hum #3: Message Dave Cridland
- Re: [hybi] hum #3: Message Douglas Otis
- [hybi] Impact of mandatory chunking (was Re: Back… Maciej Stachowiak
- Re: [hybi] Impact of mandatory chunking (was Re: … Jack Moffitt
- Re: [hybi] hum #3: Message Pieter Hintjens
- Re: [hybi] Impact of mandatory chunking (was Re: … Maciej Stachowiak
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] hum #3: Message Willy Tarreau
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] hum #3: Message Roberto Peon
- Re: [hybi] hum #3: Message Willy Tarreau
- Re: [hybi] hum #3: Message Scott Ferguson
- Re: [hybi] hum #3: Message Pieter Hintjens
- Re: [hybi] hum #3: Message Greg Wilkins
- Re: [hybi] hum #3: Message Pieter Hintjens
- Re: [hybi] hum #3: Message Martin Sustrik
- Re: [hybi] hum(s) followup Maciej Stachowiak
- [hybi] hum(s) followup Salvatore Loreto
- Re: [hybi] hum(s) followup Pieter Hintjens
- Re: [hybi] hum(s) followup Salvatore Loreto