From c445c3c7f6a053cd4b4af2655b57fb25b0abbaf1 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 30 Jun 2014 04:25:51 +0000 Subject: [PATCH] If we're doing RSS then ensure that the callwheel swi's are CPU pinned. --- sys/kern/kern_timeout.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 905e24a1381..b503633e5e0 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -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)");