Date: 17 Jan 2002 10:10:52 CST From: shreenivasa H V <shreenihv@usa.net> To: freebsd-questions@freebsd.org Subject: Percentage CPU and the digital decay Message-ID: <20020117161052.24589.qmail@cpdvg201.cms.usa.net>
next in thread | raw e-mail | index | archive | help
Hello, Why does freebsd accumulate the percentage CPU utilization (which is displayed by the 'ps' command) and then digitally decay it, instead of just keeping track of it in the past interval only. What I mean is in Linux, they calculate the PCPU by counting the number of ticks the process has used over the past interval (between the two probes). But freebsd seems like accumulating it over all the intervals and then normalising it so that it forgets some 95% in 60 seconds. Why is it have to be such a round about process when it could have been done in a straight forward manner? You could just keep track of the number of ticks the process has used in a particular interval and get the percentage from the total number of ticks in that interval. What's the logic behind this design decision? shreenivasa. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020117161052.24589.qmail>
