From owner-freebsd-current@FreeBSD.ORG Wed Aug 15 11:18:21 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 EB35B1065672; Wed, 15 Aug 2012 11:18:21 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id B9B9D8FC0C; Wed, 15 Aug 2012 11:18:20 +0000 (UTC) Received: by lbbgk8 with SMTP id gk8so964604lbb.13 for ; Wed, 15 Aug 2012 04:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=WGydcVuEvVMYrU40YzKqw+KMaTZuFkZOinGrsEmcqxk=; b=gO5VEa3QsrIiaWAnYmU8GvPDJ97CPVZGbQhuu0XXxWd+SvP+T1rkMS1IrOPN9ZV0oQ WwiYY39Y2mDAkd4SCDzFwAqUqLPV8bknsSV4rlCHdd2g+qw4wPMH9+UQNlrxKW77JoLc owMzXxyIJT64Bdfvspm5bAg4tap8CxL5zQaDxNXIcSiJIA0a0RRs25FcqYeI1nrmIMn2 N5ZjsSjQT3CxqIJIji8m5UtbIU9vATAxlZ2hwu6AKnEtnESG0FcnGwYpVV/v4JGEH8kX 48TfWDwZlUIfI3I6irD/v/PVoaKlo7VYWMYrNdu1CaJlkIfGp3WMg4ip4vgaF3wH7NRP fbWQ== Received: by 10.112.9.3 with SMTP id v3mr3627488lba.32.1345029499164; Wed, 15 Aug 2012 04:18:19 -0700 (PDT) Received: from pc.mavhome.dp.ua (213-227-240-37.static.vega-ua.net. [213.227.240.37]) by mx.google.com with ESMTPS id gd9sm320752lbb.15.2012.08.15.04.18.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Aug 2012 04:18:18 -0700 (PDT) Sender: Alexander Motin Message-ID: <502B85C4.5060703@FreeBSD.org> Date: Wed, 15 Aug 2012 14:19:32 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120621 Thunderbird/13.0.1 MIME-Version: 1.0 To: lev@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> <938388715.20120815151149@serebryakov.spb.ru> In-Reply-To: <938388715.20120815151149@serebryakov.spb.ru> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit 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 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:18:22 -0000 On 15.08.2012 14:11, Lev Serebryakov wrote: > Hello, Alexander. > You wrote 15 августа 2012 г., 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=0. Otherwise there are no > 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 > % I've meant `kern.timecounter`. >>> (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, > 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? There is python GUI tool /usr/src/tools/sched/schedgraph.py for it. Short manual is inside. -- Alexander Motin