From owner-freebsd-net@FreeBSD.ORG Sat Sep 20 16:04:02 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 3BFBE1065674 for ; Sat, 20 Sep 2008 16:04:02 +0000 (UTC) (envelope-from swordqiu@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.186]) by mx1.freebsd.org (Postfix) with ESMTP id B59748FC17 for ; Sat, 20 Sep 2008 16:04:01 +0000 (UTC) (envelope-from swordqiu@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so476504tid.3 for ; Sat, 20 Sep 2008 09:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9NiPCR3evonJOau6F6VSKrA7uKlxHrfWSyR9OumYwMQ=; b=nz8G6s1iHCNT2R9dO4IRMgcCa5rdq30NBU+LoG44VnPlHFqU4tswzAqrw0GfZMzSHX y7TePxbdxYr71r1O1QhBFclJqFODrui//AhNjCusR00F4sEPwgSPjEco5FwrCUkzl6uD 3za5vkq5lKyeTrZd6a1cy6Q7Q1HJ1PvPdHigc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=J9zXMkOs2BO3i23UPq7AcL9NAAjJIOoAxz2p5sP9Lf5TT7XolGxKhqM/VzmMwHMVhW J0EEjEKerXSgXiLXKxKnpsfN3Mo42qaWw8Kuy+nbcftL46evLPjjY37HXfw4lbSjZwc5 e9KXeLal0EF9s6TT394autziyNyPPaomZWyuE= Received: by 10.110.109.19 with SMTP id h19mr2335686tic.58.1221926640411; Sat, 20 Sep 2008 09:04:00 -0700 (PDT) Received: by 10.110.90.11 with HTTP; Sat, 20 Sep 2008 09:04:00 -0700 (PDT) Message-ID: Date: Sun, 21 Sep 2008 00:04:00 +0800 From: "Jian Qiu" To: "Kris Kennaway" In-Reply-To: <48D2ABA2.8010703@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48CF6450.6020909@FreeBSD.org> <48D00899.4070908@FreeBSD.org> <48D2ABA2.8010703@FreeBSD.org> 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: Sat, 20 Sep 2008 16:04:02 -0000 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. Many thanks. Jian