From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Fink Subject: Re: setsockopt() Date: Wed, 9 Jul 2008 22:50:35 -0400 Message-ID: <20080709225035.a4d39cb5.billfink@mindspring.com> References: <48725DFE.6000504@citi.umich.edu> <20080707142408.43aa2a2e@extreme> <48728B09.1050801@citi.umich.edu> <20080707.144912.76654646.davem@davemloft.net> <20080708045443.GA7726@2ka.mipt.ru> <20080708020235.388a7bd5.billfink@mindspring.com> <20080708144817.3c364962.billfink@mindspring.com> <20080709183432.GB5383@2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Roland Dreier , David Miller , aglo@citi.umich.edu, shemminger@vyatta.com, netdev@vger.kernel.org, rees@umich.edu, bfields@fieldses.org To: Evgeniy Polyakov Return-path: Received: from elasmtp-masked.atl.sa.earthlink.net ([209.86.89.68]:55731 "EHLO elasmtp-masked.atl.sa.earthlink.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752027AbYGJCuo (ORCPT ); Wed, 9 Jul 2008 22:50:44 -0400 In-Reply-To: <20080709183432.GB5383@2ka.mipt.ru> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 9 Jul 2008, Evgeniy Polyakov wrote: > On Wed, Jul 09, 2008 at 11:10:31AM -0700, Roland Dreier (rdreier@cisco.com) wrote: > > so somehow setting the window helps with the scheduling of > > processes... I guess autotuning lets some queue get too long or > > something like that. The actual window doesn't matter too much, since > > the delay of the network is low enough that even though the bandwidth is > > very high, the BDP is quite small. (With a 25 usec RTT, a 128 KB window > > should be enough for 40 Gbps, well over the raw link speed of 16 Gbps > > that I have) > > That may be cache issues: depending on what application does it can be > useful or not to be bound to the same CPU. I suppose if benchmark looks > into the packet content, then it likely wants to be on the same CPU to > aliminate cache line ping-pongs, otherwise it only needs to be awakened > to send/receive next chunk, so having it on different CPU may result in > better its utilization... In my own network benchmarking experience, I've generally gotten the best performance results when the nuttcp application and the NIC interrupts are on the same CPU, which I understood was because of cache effects. I wonder if the "-w128" forces the socket buffer to a small enough size that it totally fits in cache and this helps the performance. -Bill