From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: range requests and multipart responses Date: Tue, 20 Jul 2010 11:54:59 -0700 Message-ID: <20100720185459.GA2732@dcvr.yhbt.net> References: <20100720061803.GA8037@dcvr.yhbt.net> <71E4CB4E-365A-4A6B-85EA-9C24415E1234@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279653127 1665 80.91.229.12 (20 Jul 2010 19:12:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Jul 2010 19:12:07 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Tue Jul 20 21:12:04 2010 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline In-Reply-To: <71E4CB4E-365A-4A6B-85EA-9C24415E1234-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:110 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ObIEU-00059u-Sl for gclrrg-rainbows-talk@m.gmane.org; Tue, 20 Jul 2010 21:12:03 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 4FB1618583A5; Tue, 20 Jul 2010 15:12:02 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id A747E18583A5 for ; Tue, 20 Jul 2010 14:55:00 -0400 (EDT) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id 97EAF1F510; Tue, 20 Jul 2010 18:54:59 +0000 (UTC) James Tucker wrote: > On 20 Jul 2010, at 07:18, Eric Wong wrote: > > [1] - For the performance-minded, it's also tough to implement multipart > > responses efficiently using any sendfile() implementation. > > Our TCP_CORK support is far from optimal under Linux right now, > > and not using TCP_CORK would be even less efficient with extra > > multipart headers. AFAIK, sendfilev() isn't available outside of > > Solaris, either. > > Does cork even help in real world use cases? Heh, good question :) I've only seen it help in microbenchmarks and analyzing tcpdump output. I've never bothered checking in Ruby apps (never though it'd be worth my time, even), but I don't expect it to be worth the effort. Maybe somebody else will care enough... However, I've seen corking hurt badly for things like chat apps and anything with bidirectional small messages. It's impossible for the server to reliably tell what type of traffic to expect without the app stepping in to tell it to uncork at certain points. -- Eric Wong _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying