Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: getrusage: precision as good as a jiffie?
Date: Thu, 25 Mar 1999 23:35:22 -0500	[thread overview]
Message-ID: <36FB0E89.43393844@voicenet.com> (raw)

Well from just looking at the tv.sec&tv.usec return values one gets the
idea that CPU usage is going to be fairly precise ( somewhere in the
microsecond  level)

The actual usage seems to loop off 3 digits of precision.

Reading the kernel code, one see's that the precision is based on clock
ticks/jiffies intervals.

There appears to be no better way of getting precision accounting, as it
appears that all other sys functions are rooted in the clock tick,
rather that something with a betther precision ( ie # instructions
executed, a real-time clock.)  I suppose if u give up ur tick, u still
get charged for it - but only in whole tic units
gat


                 reply	other threads:[~1999-03-26 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox