The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Mary Ann Horton <mah@mhorton.net>
To: tuhs@tuhs.org
Subject: [TUHS] Re: Word erase?
Date: Fri, 12 Apr 2024 08:58:05 -0700	[thread overview]
Message-ID: <1ac39bdc-df66-43f7-a5d3-1bd3d160c43b@mhorton.net> (raw)
In-Reply-To: <202404090151.4391pJMR034798@elf.torek.net>

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

On 4/8/24 18:51, Chris Torek wrote:
>> Chris Torek of UofMaryland.
> I got it into 4.3-Reno.  I did not come up with the whole thing but
> Rehmi Post and I worked out how to compute %cpu without using floating
> point (the original VAX-only version used FP but we had to stop doing
> that when we were worried about porting to systems that lacked kernel
> access to FP).
>
> The version in current FreeBSD is fancier now though.
>
> Chris

Around 1981 I put a similar calculation into 2BSD for the PDP-11 with no 
floating point, but this was for the system load average, not the %cpu. 
It just imputes a decimal point in the middle of what the processor 
considers an integer.

Thanks,

/Mary Ann Horton/ (she/her/ma'am)
       Award Winning Author
maryannhorton.com <https://maryannhorton.com>




[-- Attachment #2: Type: text/html, Size: 1778 bytes --]

  reply	other threads:[~2024-04-12 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 15:02 [TUHS] " Dan Cross
2024-04-08 15:15 ` [TUHS] " Marc Donner
2024-04-08 15:18 ` arnold
2024-04-08 15:29   ` Warner Losh
2024-04-08 15:59     ` Lars Brinkhoff
2024-04-08 15:39   ` Larry McVoy
2024-04-08 16:06   ` Rich Salz
2024-04-09  1:51     ` Chris Torek
2024-04-12 15:58       ` Mary Ann Horton [this message]
2024-04-08 17:09   ` Steve Nickolas
2024-04-08 22:51   ` Mary Ann Horton
2024-04-12  1:29     ` Joseph Holsten
2024-04-08 16:14 ` Clem Cole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ac39bdc-df66-43f7-a5d3-1bd3d160c43b@mhorton.net \
    --to=mah@mhorton.net \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).