From owner-freebsd-current@FreeBSD.ORG Wed Aug 15 11:12:02 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34281106564A; Wed, 15 Aug 2012 11:12:02 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id E44A48FC16; Wed, 15 Aug 2012 11:12:01 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:18c9:94f1:8e7e:6995]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 8B9AD4AC2D; Wed, 15 Aug 2012 15:12:00 +0400 (MSK) Date: Wed, 15 Aug 2012 15:11:49 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <938388715.20120815151149@serebryakov.spb.ru> To: Alexander Motin In-Reply-To: <502B82F4.1090804@FreeBSD.org> References: <157941699.20120815004542@serebryakov.spb.ru> <502AE8B5.9090106@FreeBSD.org> <502B775D.7000101@FreeBSD.org> <1849591745.20120815144006@serebryakov.spb.ru> <502B82F4.1090804@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Adrian Chadd , Doug Barton , current@freebsd.org Subject: Re: CURRENT as gateway on not-so-fast hardware: where is a bottlneck? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2012 11:12:02 -0000 Hello, Alexander. You wrote 15 =E0=E2=E3=F3=F1=F2=E0 2012 =E3., 15:07:32: AM> Yes, that is what I expected to see there. If you have timecounter other AM> then i8254, you can release i8254 from those duties to allow using it as AM> one-shot setting hint.attimer.0.timecounter=3D0. Otherwise there are no= =20 AM> options now. % dmesg | grep timer pmtimer0 on isa0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: at port 0x40 on isa0 Event timer "i8254" frequency 1193182 Hz quality 100 % >> (a) with polling, system is responsive under any load, but wire2wifi >> performance is hugely affected by wire2wire traffic (and mpd5 >> inbetween). And, yes, "top" seems to lie about idle time. AM> I don't know why wifi is so different. Suppose it is for some reason AM> more affected by latencies. Adrian says, it is. >> (b) with interrupts, system works much better when it works (wire2wifi >> speed is affected by wire2wire traffic, but to much less extent), but >> it freezes every third minute for minute, when traffic is passed, but >> no user-level applications including BIND and DHCP server) works at >> all FOR MINUTE OR MORE. It not looks like 100ms lag, which could affect >> video playback. It looks like 60-120 seconds lag! At least, in case of >> ULE, I didn't try 4BSD yet. AM> In this case problem may be that kernel and interrupt threads are all AM> having absolute priorities. It means until they release the CPU,=20 AM> user-level may get no CPU time at all. :( How could it be seen in KTR traces? Where could I read how to decipher and read these traces? --=20 // Black Lion AKA Lev Serebryakov