From owner-freebsd-net@FreeBSD.ORG Sun Sep 21 09:57:48 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C80AB1065684 for ; Sun, 21 Sep 2008 09:57:48 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E49418FC24; Sun, 21 Sep 2008 09:57:47 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48D61AA9.5080208@FreeBSD.org> Date: Sun, 21 Sep 2008 10:58:01 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Jian Qiu References: <48CF6450.6020909@FreeBSD.org> <48D00899.4070908@FreeBSD.org> <48D2ABA2.8010703@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: What's the status of parallel netisr? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2008 09:57:48 -0000 Jian Qiu wrote: > Hi, Kris, > >> In our application-level tests FreeBSD significantly out-performs Linux, so >> either you have found a different workload, or something is not configured >> equally. One important thing I can think of off the top of my head is that >> Linux has a larger socket buffer size by default, so try tuning that on >> FreeBSD or confirm they are equal. >> >> If that still fails, can you provide test code? >> >> Kris >> > > I tried but larger socket buffer seem not helpful. > > I also tried netperf and iperf. Both applications achieve better > throughput on Linux. > > So I feel the result is not specific to my test code. > > My code is very simple. Basically, a client process called sendto in a > loop while a server called recvfrom in a loop. > Besides these, some additional lines get the throughput statistics. If > necessary, I will post the code here. > > BTW, I did the tests on Linux 2.26.5. Which linux kernel did you use? > > Could you please provide some more information on your test. The ones I have in mind were application level benchmarks of things like DNS and memcached. I tested on 2.6.25, which is perhaps what you meant to say too. Try to keep looking for other factors that might still be in play, like hardware or driver differences. Kris