From owner-freebsd-current@FreeBSD.ORG Wed Aug 15 14:50:01 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 498FB106564A; Wed, 15 Aug 2012 14:50:01 +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 281A58FC16; Wed, 15 Aug 2012 14:49:59 +0000 (UTC) Received: by lbbgk8 with SMTP id gk8so1105837lbb.13 for ; Wed, 15 Aug 2012 07:49:58 -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=xZ/3+I6tYinL5BuyMFogc20jwm0Q6pBZaGcbB+rnmr0=; b=eOCDupv58vlqJih6y5sj2NduvM+JqrUn5jPNx+GKlbAg9SL/AAkq/b0GeAHYvME43l ranYX6dan+xL+b9jq9WOiLA8VIxkanCqiuiqLkCDAsPEX9vixFxTIq21gefCYQURrkA9 6+MhqJUNRN3IhE/BIimHeLDKNwg0uM48j0ewDOuIRK5RDzlOoft9ximhI5KQJWAqEbfo tvrobefgM7H1/WK+/84JLrE6QueZoWkNcCEORqOOIxH7JFlvJgAzJHH56gKRPwDMFNpp 2gHBMRdUiiRVW0d8Rc9Rj7BNm9IXtqsCtFO+j4TTt2hCOhZBOhcqg0L25jPTQL35LcUX AfTQ== Received: by 10.112.100.234 with SMTP id fb10mr9727274lbb.12.1345042198734; Wed, 15 Aug 2012 07:49:58 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (213-227-240-37.static.vega-ua.net. [213.227.240.37]) by mx.google.com with ESMTPS id lr17sm1623055lab.12.2012.08.15.07.49.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Aug 2012 07:49:58 -0700 (PDT) Sender: Alexander Motin Message-ID: <502BB713.6000907@FreeBSD.org> Date: Wed, 15 Aug 2012 17:49:55 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120628 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> <502B85C4.5060703@FreeBSD.org> <1866034737.20120815152313@serebryakov.spb.ru> In-Reply-To: <1866034737.20120815152313@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 14:50:01 -0000 On 15.08.2012 14:23, Lev Serebryakov wrote: > Hello, Alexander. > You wrote 15 августа 2012 г., 15:19:32: > > AM> I've meant `kern.timecounter`. > kern.timecounter.tick: 1 > kern.timecounter.choice: TSC(800) i8254(0) dummy(-1000000) > kern.timecounter.hardware: TSC > kern.timecounter.stepwarnings: 0 > kern.timecounter.tc.i8254.mask: 65535 > kern.timecounter.tc.i8254.counter: 63995 > kern.timecounter.tc.i8254.frequency: 1193182 > kern.timecounter.tc.i8254.quality: 0 > kern.timecounter.tc.TSC.mask: 4294967295 > kern.timecounter.tc.TSC.counter: 276768292 > kern.timecounter.tc.TSC.frequency: 499912330 > kern.timecounter.tc.TSC.quality: 800 > kern.timecounter.invariant_tsc: 0 So since you have TSC timecounter, the trick with one-shot i8254 mode should work for you. Unluckily I was wrong. It should give you more correct global CPU usage percents statistics, but neither per-thread CPU usage (at least with ULE) nor load averages, as they both still depend on hardclock. > AM> There is python GUI tool /usr/src/tools/sched/schedgraph.py for it. > AM> Short manual is inside. > uh-oh, Python+Tk! I wonder, will it work on Windows, as I don't have > ``headed'' FreeBSD or Linux machines :) > > Will it work with ALQ output from KTR, not with output of ktrdump? Have no idea what ALQ output looks like. ktrdump output is just a text file that script parses. -- Alexander Motin