From owner-freebsd-net@FreeBSD.ORG Sat Sep 20 15:36:42 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 3947A1065675 for ; Sat, 20 Sep 2008 15:36:42 +0000 (UTC) (envelope-from swordqiu@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.184]) by mx1.freebsd.org (Postfix) with ESMTP id B42508FC0C for ; Sat, 20 Sep 2008 15:36:41 +0000 (UTC) (envelope-from swordqiu@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so473435tid.3 for ; Sat, 20 Sep 2008 08:36:40 -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=73rJ9NNVExpg2AGE3NjnJhIDak0v7y1WTHYVTRgldLg=; b=vu+kL2pTZv/IoF9bRuwj3eBuh1g/43FqE6VbnA1zw/h6Nb8QpCOhV1jk1YC5nrAxHk ish/Ph9HvhJu4KgYRa6M159WXHWSxx7HsbVCjFfSAmpFx/2X8pS4cvA1NQ0yyBgTqhFf b4UnCRdp/71pMT8CQiHU6WHvC0mmF+ihNCCW4= 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=tcR9y62wQIeUsXkdDcIKJyENj9RlraUSUgsyPHvX92ZpJvOJzIIj97MI8jL93gpvrC Z4EV+IpbMXzHcT4RVqFvlxd6huciSgmGi8E3fT08AiQvzxdzIoyJbtXHDDc/jkbzDQMD ZbgOp2ocnYLY1QX8HFTPLsXhp7HX+OZgIzO74= Received: by 10.110.95.15 with SMTP id s15mr2348393tib.40.1221925000212; Sat, 20 Sep 2008 08:36:40 -0700 (PDT) Received: by 10.110.90.11 with HTTP; Sat, 20 Sep 2008 08:36:40 -0700 (PDT) Message-ID: Date: Sat, 20 Sep 2008 23:36:40 +0800 From: "Jian Qiu" To: "Kevin Oberman" In-Reply-To: <20080918185827.E05DA45047@ptavv.es.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080918185827.E05DA45047@ptavv.es.net> 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 15:36:42 -0000 Hi, Kevin, > > Did you try locking down the CPUs used with cpuset (FreeBSD) or taskset > (Linux)? This can make a very substantial difference. Something like a > UDP canon will run far more efficiently if locked to a single CPU and > will run best if that CPU is not processing the interrupts. As far as I know, on the sending path, a UDP packet will be directly put on the sending queue of the relevant NIC. The UDP stack codes are executed on the CPU where the sending application is running. On the receiving path, iIf the packet is received from a loopback interface, the UDP stack codes are executed in the context of netisr softirq. Did you mean I should bind the sending application to one CPU and netsir softirq to another CPU? Thanks. Jian