From owner-freebsd-arch@FreeBSD.ORG Wed Jan 25 10:09:30 2006 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA0FA16A41F; Wed, 25 Jan 2006 10:09:30 +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 27ADB43D55; Wed, 25 Jan 2006 10:09:29 +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 k0PA1LgC020943; Wed, 25 Jan 2006 11:01:22 +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 k0PA9ROE042636; Wed, 25 Jan 2006 11:09:27 +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:09:27 +0100 Message-ID: <20060125110927.dabpg50ls8o8gg4k@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 25 Jan 2006 11:09:27 +0100 From: Alexander Leidinger To: Poul-Henning Kamp References: <23570.1138137045@critter.freebsd.dk> In-Reply-To: <23570.1138137045@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-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 10:09:31 -0000 Poul-Henning Kamp wrote: [first patch] > Of course, the scheme used in this patch suffers a bit if the > hardware counter changes to other hardware of a different rate > or simply changes rate. [second patch] > The downside is, that unless your cpu clock is correctly probed > at boot and stays constant, your cpu accounting numbers will have > a bogus scaling factor. > For i386 and amd64 things are more tricky. Laptops doing power > saving tricks will probably give bogus cpu accounting values, > but as such the patch should do no other harm than screw up > those values. 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? Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 One man tells a falsehood, a hundred repeat it as true.