From owner-freebsd-net@FreeBSD.ORG Thu Sep 18 14:50:12 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 6F4B21065674 for ; Thu, 18 Sep 2008 14:50:12 +0000 (UTC) (envelope-from swordqiu@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.188]) by mx1.freebsd.org (Postfix) with ESMTP id EB2638FC28 for ; Thu, 18 Sep 2008 14:50:11 +0000 (UTC) (envelope-from swordqiu@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so2076505tid.3 for ; Thu, 18 Sep 2008 07:50:10 -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=4K2RJnHaORuy6LDkqYbVuWJfxR5Wz13hvO0xWj3+n8w=; b=B/41ZtAfKkmrorhY+4PmyltQ+sYaFKccOfu/1Z1aVJGkjR0XSm/Y8m91rcX6YSeLwS b9o/8M5854wq/hpz7veQ2GmHaENVC6atJAnr18IDkBt9g4fs5i37RJvNCtaKC6K3ixfk k/qrtFdHraKSSov0qnDwTEAP3EXMT9eM+aDbs= 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=jiLec3cHoEwoBYIo15MQwt/tEelvzy+xRG/t+lzdQbyw4wErvEByvoGMfeGmAloDLj 4H0uHcJA2PNcUHG+uUPP7esfYPCYCFhV4GAo1tqq070lVOxLgWtY/UtDMKBkcYwiP+Yo deiqxhWvwPJmLqxAWix5m5VWOonkDsBggHD8g= Received: by 10.110.90.9 with SMTP id n9mr3581806tib.22.1221749410594; Thu, 18 Sep 2008 07:50:10 -0700 (PDT) Received: by 10.110.90.11 with HTTP; Thu, 18 Sep 2008 07:50:10 -0700 (PDT) Message-ID: Date: Thu, 18 Sep 2008 22:50:10 +0800 From: "Jian Qiu" To: "Kris Kennaway" In-Reply-To: <48D00899.4070908@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> 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: Thu, 18 Sep 2008 14:50:12 -0000 Thanks again for the info. As you suggested, I did test on the most recent 7.0-stable-200807 kernel. The SMP throughout on the new kernel was improved to around 90MB/s. However, SMP kernel still had no advantage over UP, at least for this kind of single threaded applications. I further did the same test on Linux with both SMP and UP. I did observe the same trend. The throughput on UP (~210MB/ecs) was also much better than SMP (~170MB/sec). However, I was surprised again that the local UDP throughput on Linux was more than double of FreeBSD. Since all these tests were performed on the same machine, it must be because of the kernel that made such big differences. I'm curious what is the major performance bottleneck in FreeBSD network stack?? Is there any plan in community to address these issues? Many thanks. Jian On Wed, Sep 17, 2008 at 3:27 AM, Kris Kennaway wrote: > Jian Qiu wrote: >> >> Interesting. >> >> I did a test on local UDP throughput. >> >> I was surprised to find out the performance with a SMP kernel was >> worse than UP. (~74MB/s v.s. 96 MB/s). >> >> I had though parallel netisr might be a solution. > > Make sure you are testing with either 8.0 or 7.1 (or late 7.0-STABLE), i.e. > after the fixes to improve UDP performance on SMP systems. > > Kris > >