From owner-freebsd-net@FreeBSD.ORG Wed Feb 1 20:45:27 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 CC52E106566B for ; Wed, 1 Feb 2012 20:45:27 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 620C28FC08 for ; Wed, 1 Feb 2012 20:45:26 +0000 (UTC) Received: by bkbzx1 with SMTP id zx1so1972562bkb.13 for ; Wed, 01 Feb 2012 12:45:26 -0800 (PST) Received: by 10.204.152.7 with SMTP id e7mr48306bkw.70.1328129125930; Wed, 01 Feb 2012 12:45:25 -0800 (PST) Received: from [10.254.254.77] (ppp95-165-137-107.pppoe.spdop.ru. [95.165.137.107]) by mx.google.com with ESMTPS id o26sm252749bko.14.2012.02.01.12.45.25 (version=SSLv3 cipher=OTHER); Wed, 01 Feb 2012 12:45:25 -0800 (PST) Message-ID: <4F29A464.3080302@zonov.org> Date: Thu, 02 Feb 2012 00:45:24 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: netisr defered - active only one thread 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, 01 Feb 2012 20:45:27 -0000 Hi, I'm trying to tune machine with 8.2-STABLE for heavy network load and now playing with netisr. Could anyone explain me why actually works only one netisr thread if I set them to 8? loader.conf: net.isr.maxthreads=8 net.isr.bindthreads=0 (also tried set to 1) hw.em.rxd=4096 (net.isr.numthreads is 8 after reboot, `procstat -t 12' shows me 8 netisr threads) sysctl.conf: net.isr.direct=0 net.isr.direct_force=0 (also tried hybrid mode when direct=1, but force_direct=0) NIC: em0@pci0:4:0:0: class=0x020000 card=0x109615d9 chip=0x10968086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'Intel PRO/1000 EB (Intel PRO/1000 EB)' class = network subclass = ethernet No polling. top: PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 12 root -44 - 0K 512K CPU7 7 1:18 100.00% {swi1: netisr 7} 11 root 171 ki31 0K 128K CPU3 3 2:15 94.38% {idle: cpu3} 11 root 171 ki31 0K 128K CPU6 6 2:06 90.19% {idle: cpu6} 11 root 171 ki31 0K 128K CPU2 2 2:42 88.67% {idle: cpu2} 11 root 171 ki31 0K 128K CPU1 1 2:22 84.18% {idle: cpu1} 11 root 171 ki31 0K 128K CPU5 5 2:29 75.29% {idle: cpu5} 11 root 171 ki31 0K 128K RUN 4 2:28 69.97% {idle: cpu4} 11 root 171 ki31 0K 128K RUN 0 2:29 69.68% {idle: cpu0} -- Andrey Zonov