From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6926 invoked from network); 9 Jan 2022 12:58:49 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 9 Jan 2022 12:58:49 -0000 Received: from odoacer.turtle-trading.net ([93.241.193.16]) by 4ess; Sun Jan 9 07:52:53 -0500 2022 Received: from zenobia.turtle-trading.net ([192.168.2.111]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1n6XQh-0006Yn-PA; Sun, 09 Jan 2022 13:36:11 +0100 Received: from benny by zenobia.turtle-trading.net with local (Exim 4.94.2) (envelope-from ) id 1n6XQh-001Zh2-H8; Sun, 09 Jan 2022 13:36:11 +0100 From: Benjamin Riefenstahl To: 9front@9front.org References: <7e13be65-765d-4f6e-ad2a-e1646f01c53d@sirjofri.de> <87k0fbzimt.fsf@turtle-trading.net> Date: Sun, 09 Jan 2022 13:36:11 +0100 In-Reply-To: (Anthony Martin's message of "Sun, 9 Jan 2022 00:14:30 -0800") Message-ID: <87ilut3x38.fsf@turtle-trading.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shader CMS software Subject: Re: [9front] Understanding milli-CPUs (/dev/sysstat) Reply-To: 9front@9front.org Precedence: bulk Anthony Martin writes: > /sys/src/9/port/proc.c:/^accounttime > [...] > * ticks to go to zero. so using HZ means this is > * approximately the load over the last second, > * with a tail lasting about 5 seconds. So we should interprete the load as approximately the average number of waiting processes over the last second, but with a smoothed curve over approximately 5 seconds. Right? > load = ((uvlong)load*(HZ-1)+n)/HZ; That's the formula for what we call the "moving average" these days, I think. HZ is the number of ticks per second, so the time span is one second here. so long, benny