From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id B37FA21F405 for ; Fri, 24 Apr 2015 11:41:20 -0700 (PDT) Received: by iedfl3 with SMTP id fl3so101349514ied.1 for ; Fri, 24 Apr 2015 11:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=CI61CrqDnh2Md/Nv9lbzoH7eQNagX2LRY7cEYEGNKIw=; b=h+yHXzp02Oc++sB41is+uAJjL23kWmx+RJ2rpAi0TJ1DMCr0j+rTivUQRUUbPylcPt F9mJmi7RMhvGNIKJMM9Q+hqmhmwyK5Q19qCQfTVMjYLYBf54+Sj0Z0sclKnhRpUuagpY Mi3617VbCfM5yxj7GyWPlMKMyw1E479Z6DFRvJyknYSk9LXjb9eTVWzCbnpVWszSOCRA a3LWkwxsFZjtMGl7MCxgVzDYW4jz+//+oz6nofW/M72oXNEB9QoUljLC1HHQZM0eEOa1 DMILUqgHjPjeiYqjuM9JOlLQtCLw3zu5H2/9oHnbQobWfhNJ7/yOTvuCjaxTN9W25G5I s1ag== X-Received: by 10.107.4.196 with SMTP id 187mr6547398ioe.6.1429900879201; Fri, 24 Apr 2015 11:41:19 -0700 (PDT) Received: from [172.19.255.13] ([172.19.255.13]) by mx.google.com with ESMTPSA id qr1sm95490igb.18.2015.04.24.11.41.17 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2015 11:41:18 -0700 (PDT) Message-ID: <1429900877.22254.133.camel@edumazet-glaptop2.roam.corp.google.com> From: Eric Dumazet To: Rick Jones Date: Fri, 24 Apr 2015 11:41:17 -0700 In-Reply-To: <553A6FF1.7090508@hp.com> References: <20150422191056.9C7AC406057@ip-64-139-1-69.sjc.megapath.net> <1429736552.18561.144.camel@edumazet-glaptop2.roam.corp.google.com> <55380D28.5080100@hp.com> <1429883441.22254.126.camel@edumazet-glaptop2.roam.corp.google.com> <553A6FF1.7090508@hp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Hal Murray , bloat Subject: Re: [Bloat] SO_SNDBUF and SO_RCVBUF X-BeenThere: bloat@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: General list for discussing Bufferbloat List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2015 18:41:49 -0000 On Fri, 2015-04-24 at 09:31 -0700, Rick Jones wrote: > > netperf -t TCP_STREAM" uses a default size of 16384 bytes per sendmsg. > > Under Linux at least, and only because that is the default initial value > for SO_SNDBUF for a TCP socket (via tcp_wmem). > > More generally, the default send size used by netperf is the value of > SO_SNDBUF for the data socket immediately after its creation. > Yeah, this looks odd. Note that right after a connect() or accept(), getsocktop(SO_SNDBUF) might be very different than the 'default=16384' Otherwise, we could not even send the first 10 packets for IW10 from one sendmsg(), or a single full packet on loopback interface (MTU=65536) Anyway, 16384 bytes as default buffer size on netperf is fine.