From owner-freebsd-questions@FreeBSD.ORG Sat Nov 13 18:35:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86637106566B for ; Sat, 13 Nov 2010 18:35:54 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3CC588FC08 for ; Sat, 13 Nov 2010 18:35:53 +0000 (UTC) Received: by qwi2 with SMTP id 2so562756qwi.13 for ; Sat, 13 Nov 2010 10:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=NOUgFEAHw3mrR6kbdqs/mFqzHUz9+0/H3o9rqwApuRU=; b=VgPhECde7Zs2NMmcFfQ29MWFxXViiB6PaJOx/Cg1zZOfo9bgFm+eGEAN8eBxGBC/DP k0ORMCkao4IKA45tEXi2tpFJBjCIbLuXLOLHF/qUhVvSz8jVVB3BWUiXja3dx8JLWJMK 2GBfWv7kb2x/WqJ5R7KL1fhX5Snn0XbW067og= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=f4kAZbu02OnsHkp56QGmvGvtCpKOT7thTv7PUSRkoj6YTtZuFQjyB+0APqG/bpgAIU 7NHZ24ci/34GzU4QEW5za/q11j1C60aykZh88IOWZ6JGnfGxOoeUOlv2lCiUJELYkz8e p5Z1TM44mZ3gy7RmC+0r+HR5RlIRM1jjVci74= Received: by 10.229.79.135 with SMTP id p7mr3363906qck.85.1289673353239; Sat, 13 Nov 2010 10:35:53 -0800 (PST) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.229.40.145 with HTTP; Sat, 13 Nov 2010 10:35:12 -0800 (PST) In-Reply-To: <5510442048.20101113034233@yandex.ru> References: <4910622844.20101111212049@yandex.ru> <5510442048.20101113034233@yandex.ru> From: Ivan Voras Date: Sat, 13 Nov 2010 19:35:12 +0100 X-Google-Sender-Auth: WSZvwUi87Gu0lMTEXRh2Lg6Bo3Y Message-ID: To: =?UTF-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Re[2]: How to obtain what swi1:net is doing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2010 18:35:54 -0000 2010/11/13 =D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0=B2 =D0=95=D0=B2=D0=B3=D0= =B5=D0=BD=D0=B8=D0=B9 : > IV> net.isr.direct_force=3D0 > IV> net.isr.maxthreads=3D2 > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads > =C2=A0cpu0 (BSP): APIC ID: =C2=A00 > =C2=A0cpu1 (AP): APIC ID: =C2=A01 > =C2=A0cpu2 (AP): APIC ID: =C2=A04 > =C2=A0cpu3 (AP): APIC ID: =C2=A05 > ioapic0: Changing APIC ID to 6 > ioapic0 irqs 0-23 on motherboard > netisr_init: forcing maxthreads to 1 and bindthreads to 0 for device poll= ing > > # cat /boot/loader.conf > net.isr.maxthreads=3D2 > > maxthreads does not affected I don't understand: how is it not affected? On a system with maxthreads=3D2, here is how it shows: betelgeuse:/home/ivoras# ps axuHc | grep isr root 12 3.0 0.0 0 432 ?? WL 12:21PM 0:09.21 intr/swi1: netisr 7 root 12 0.0 0.0 0 432 ?? WL 12:21PM 0:00.00 intr/swi1: netisr 0 I.e. there are two threads here, bound to CPU cores 0 and 7. > #uname -r > 9.0-CURRENT Yes, multithreaded netisr was introduced in FreeBSD 8, it wasn't there in 7= .