From owner-svn-src-all@FreeBSD.ORG Mon Jun 30 04:25:51 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B0E7B1B; Mon, 30 Jun 2014 04:25:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D05328B2; Mon, 30 Jun 2014 04:25:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5U4PpSk039292; Mon, 30 Jun 2014 04:25:51 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5U4Pp1Q039291; Mon, 30 Jun 2014 04:25:51 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201406300425.s5U4Pp1Q039291@svn.freebsd.org> From: Adrian Chadd Date: Mon, 30 Jun 2014 04:25:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268026 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 04:25:51 -0000 Author: adrian Date: Mon Jun 30 04:25:51 2014 New Revision: 268026 URL: http://svnweb.freebsd.org/changeset/base/268026 Log: If we're doing RSS then ensure that the callwheel swi's are CPU pinned. Modified: head/sys/kern/kern_timeout.c Modified: head/sys/kern/kern_timeout.c ============================================================================== --- head/sys/kern/kern_timeout.c Mon Jun 30 01:01:54 2014 (r268025) +++ head/sys/kern/kern_timeout.c Mon Jun 30 04:25:51 2014 (r268026) @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #if defined(__arm__) #include "opt_timer.h" #endif +#include "opt_rss.h" #include #include @@ -104,8 +105,13 @@ static int ncallout; SYSCTL_INT(_kern, OID_AUTO, ncallout, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &ncallout, 0, "Number of entries in callwheel and size of timeout() preallocation"); +#ifdef RSS +static int pin_default_swi = 1; +static int pin_pcpu_swi = 1; +#else static int pin_default_swi = 0; static int pin_pcpu_swi = 0; +#endif SYSCTL_INT(_kern, OID_AUTO, pin_default_swi, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &pin_default_swi, 0, "Pin the default (non-per-cpu) swi (shared with PCPU 0 swi)");