From owner-freebsd-current@FreeBSD.ORG Wed Jan 25 10:52:48 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B960516A424; Wed, 25 Jan 2006 10:52:48 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E43843DB9; Wed, 25 Jan 2006 10:46:28 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E159.dip.t-dialin.net [84.165.225.89]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id k0PAbchB021043; Wed, 25 Jan 2006 11:37:38 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id k0PAjieB049446; Wed, 25 Jan 2006 11:45:44 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 25 Jan 2006 11:45:44 +0100 Message-ID: <20060125114544.edawx42obkkos0ck@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 25 Jan 2006 11:45:44 +0100 From: Alexander Leidinger To: Poul-Henning Kamp References: <28985.1138184101@critter.freebsd.dk> In-Reply-To: <28985.1138184101@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: arch@freebsd.org, current@freebsd.org Subject: Re: [TEST/REVIEW] CPU accounting patches 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, 25 Jan 2006 10:52:49 -0000 Poul-Henning Kamp wrote: > In message <20060125110927.dabpg50ls8o8gg4k@netchild.homeip.net>, > Alexander Lei > dinger writes: > >> Are you going to fix those issues for machines which do power saving tricks >> (which may even be useful on servers for some people, not only on laptops), >> or do you not intend to further work on this besides the patches you present >> here? > > My plan is to add some code to measure and record the maximum "cpu_tick" > frequency we see, and use that to normalize the cpu accounting. > > That way, the user/system time reported will get units of "cpu seconds > if the cpu ran full speed". How large do you expect the error will be? Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Eternity is a terrible thought. I mean, where's it going to end? -- Tom Stoppard