From owner-freebsd-net@FreeBSD.ORG Wed Apr 25 19:30:39 2012 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 6BB15106566B; Wed, 25 Apr 2012 19:30:39 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 21E308FC0A; Wed, 25 Apr 2012 19:30:39 +0000 (UTC) Received: from [IPv6:::1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q3PJUQu4098474; Wed, 25 Apr 2012 12:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1335382227; bh=fdx9vknuJmDbcIGLOIqu4xzwS4AN9eJw55m/IH4v7+8=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=L4r1QBUhRB5bipjKeB52TV1MGVSIj0V0F37HuUO3+fFC/b9SmPKo3xoiTN69Wucx0 mTvYui2HybIX7Z3k9RVkrhNWdFs+3feOqN2zafcFZPIla+pgI3hpzpXyP/+k1+fvqU Dgcqag1N4x6pI22hJON3jJtAR2bpn2iXH+3CpJds= From: Sean Bruno To: John Baldwin In-Reply-To: <201204250932.21378.jhb@freebsd.org> References: <1335312667.11564.13.camel@powernoodle-l7.corp.yahoo.com> <201204250932.21378.jhb@freebsd.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 25 Apr 2012 12:30:25 -0700 Message-ID: <1335382225.2722.6.camel@powernoodle-l7.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 382226000 Cc: "freebsd-net@freebsd.org" , Jack Vogel Subject: Re: igb(4) Pondering a bind to cpu patch 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: Wed, 25 Apr 2012 19:30:39 -0000 On Wed, 2012-04-25 at 06:32 -0700, John Baldwin wrote: > CPU IDs are not guaranteed to be dense. However, you can use > CPU_FIRST() and > CPU_NEXT() with your static global instead. > Ah, does CPU_NEXT() reset to 0 when it reaches the end of its list of CPUs? > OTOH, if igb were to just leave the interrupts alone instead of > binding them > by hand, they would get round-robin assigned among available cores > already. I > think in this case the best approach might be to add a tunable to > disable > igb's manual binding and instead let the default system round-robin > be > preserved. also, yes. Why *are* we binding to CPUs in the first place? Are we afraid that the scheduler won't do the right thing and we're trying to work around some unknown performance issue ? Sean