Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2006 07:14:50 +1100
From:      Peter Jeremy <PeterJeremy@optushome.com.au>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        arch@freebsd.org, current@freebsd.org
Subject:   Re: [TEST/REVIEW] CPU accounting patches
Message-ID:  <20060125201450.GE25397@cirb503493.alcatel.com.au>
In-Reply-To: <19559.1138216194@critter.freebsd.dk>
References:  <E1F1kOm-000FY2-8Z@hetzner.co.za> <19559.1138216194@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2006-Jan-25 20:09:54 +0100, Poul-Henning Kamp wrote:
>We are therefore forced to try to divine the intent behind the text,
>and as somebody who were around back in the eighties I can testify
>that the intent was to be able to bill computer users for CPU
>instructions.

This implies that RDTSC (and equivalents) would be the best source of
accounting information, with CPU usage billed in CPU cycles used.
It's just users who expect to be billed in seconds.

>These days with variable clockrate, the cpu second is a bad approximation.

Agreed.

>If my CPU runs at 600MHz, even if used 100%, it can still do three times
>as much work, so the fact that my process takes 3 seconds to complete
>does not mean that I have used (in the sense of denying other users the
>ability to use) all of the CPU for three seconds.

This depends on why the CPU was running at 600MHz instead of 1800MHz.
If the user requested that speed (for whatever reason), then that user
_was_ denying other users the ability to use the CPU.

-- 
Peter Jeremy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060125201450.GE25397>