From owner-freebsd-questions@FreeBSD.ORG Sun Nov 14 21:38:36 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 F22141065670; Sun, 14 Nov 2010 21:38:35 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward18.mail.yandex.net (forward18.mail.yandex.net [95.108.253.143]) by mx1.freebsd.org (Postfix) with ESMTP id 877AE8FC22; Sun, 14 Nov 2010 21:38:35 +0000 (UTC) Received: from smtp19.mail.yandex.net (smtp19.mail.yandex.net [95.108.252.19]) by forward18.mail.yandex.net (Yandex) with ESMTP id B5A1C29A1365; Mon, 15 Nov 2010 00:38:33 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1289770713; bh=PiSb7gI5IAYgaApEZm/7MQctoWl27bJxGL9ErCC6oLI=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=k1h5dIJshTxu6g0kFtBA2GTzGPL6yY2xFAdrrnnlzMgvio68anBDJdzH2S1qWe3yC 74DlB2Wdououe3AEV3N2QwJP6/pu7xWZxAq+3azo4gzVAkGQoaSUhA85J1H8UDuriB n++lj7agIcUtoxQ7nyLMcsQHXlS11LjF5KtVTQFI= Received: from kes.in (unknown [77.93.42.18]) by smtp19.mail.yandex.net (Yandex) with ESMTPA id 58E37287005C; Mon, 15 Nov 2010 00:38:33 +0300 (MSK) Date: Sun, 14 Nov 2010 23:38:36 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1024327902.20101114233836@yandex.ru> To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= In-Reply-To: <1565461584.20101114184846@yandex.ru> References: <4910622844.20101111212049@yandex.ru> <5510442048.20101113034233@yandex.ru> <1565461584.20101114184846@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Ivan Voras , freebsd-questions@freebsd.org Subject: Re[5]: How to obtain what swi1:net is doing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 21:38:36 -0000 Здравствуйте, Коньков. Вы писали 14 ноября 2010 г., 18:48:46: КЕ> Здравствуйте, Ivan. КЕ> Вы писали 13 ноября 2010 г., 20:35:12: IV>> 2010/11/13 Коньков Евгений : >>> IV> net.isr.direct_force=0 >>> IV> net.isr.maxthreads=2 >>> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs >>> FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads >>>  cpu0 (BSP): APIC ID:  0 >>>  cpu1 (AP): APIC ID:  1 >>>  cpu2 (AP): APIC ID:  4 >>>  cpu3 (AP): APIC ID:  5 >>> ioapic0: Changing APIC ID to 6 >>> ioapic0 irqs 0-23 on motherboard >>> netisr_init: forcing maxthreads to 1 and bindthreads to 0 for device polling >>> >>> # cat /boot/loader.conf >>> net.isr.maxthreads=2 >>> >>> maxthreads does not affected IV>> I don't understand: how is it not affected? КЕ> # cat /boot/loader.conf КЕ> net.isr.maxthreads=2 КЕ> after server was rebooted: КЕ> # sysctl net.isr.maxthreads КЕ> net.isr.maxthreads: 1 meta-up# dmesg | less Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #0: Wed Nov 10 23:25:34 EET 2010 adm@meta-up:/usr/obj/usr/src/sys/KES_KERN_v9 i386 CPU: Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz (4145.96-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x20652 Family = 6 Model = 25 Stepping = 2 Features=0xbfebfbff Features2=0x98e3bd AMD Features=0x28100000 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2012078080 (1918 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: <010710 APIC1823> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 4 cpu3 (AP): APIC ID: 5 ioapic0: Changing APIC ID to 6 ioapic0 irqs 0-23 on motherboard netisr_init: forcing maxthreads to 1 and bindthreads to 0 for device polling I think problem is here. I have compiled with: options DEVICE_POLLING IV>> On a system with maxthreads=2, here is how it shows: IV>> betelgeuse:/home/ivoras# ps axuHc | grep isr IV>> root 12 3.0 0.0 0 432 ?? WL 12:21PM 0:09.21 IV>> intr/swi1: netisr 7 IV>> root 12 0.0 0.0 0 432 ?? WL 12:21PM 0:00.00 IV>> intr/swi1: netisr 0 IV>> I.e. there are two threads here, bound to CPU cores 0 and 7. КЕ> on my system with КЕ> # cat /boot/loader.conf КЕ> net.isr.maxthreads=2 КЕ> and server reboot КЕ> # ps axuHc | grep isr КЕ> root 12 0,0 0,0 0 224 ?? WL 12:54 0:00,00 intr/swi1: netisr 0 >>> #uname -r >>> 9.0-CURRENT IV>> Yes, multithreaded netisr was introduced in FreeBSD 8, it wasn't there in 7. -- С уважением, Коньков mailto:kes-kes@yandex.ru