🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189165

Re: Elisp replacement for load-average

#189165
From: Steven M. Anastasi
Date: Fri, 19 Apr 1991 17:52
22 lines
1687 bytes
From article <9104181711.AA11246@hpnmd.hp.com>, by darrylo@HPNMXX.SR.HP.COM:
>> Well, the system management here wasn't comfortable making emacs sgid
>> system so it could read /dev/kmem, so I decided to sit down and write a
>> short elisp routine to parse uptime(1).  I don't have too much experience
>> programming in elisp, so if you see a way to speed it up, feel free to tell
>> me.
>
I've also written emacs lisp code to parse uptime, then I wrote it
in C, then I realized just how useless the uptime statistics are.

To the best of my knowledge, the uptime value = processes in run queue
 plus processes swapped out.  A very general overview.

I found that if you can gather paging stats, disk io, network traffic, 
etc., that you get much more meaningful graphs and you have data that
you can interpret to mean something.  More detailed stats like this
are usually available using routines provided by your OS vendor.

Of course, you can still parse them in the language of your choice.

Steve Anastasi
3M
Technical Details
Message-ID: <1991Apr19.175240.16063@mmm.serc.3m.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!caen!uwm.edu!spool.mu.edu!cs.umn.edu!mmm.serc.3m.com!us267384
References: <9104181711.AA11246@hpnmd.hp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,2778f3360c8a6d50
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-04-20 21:41:32 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!caen!uwm.edu!spool.mu.edu!cs.umn.edu!mmm.serc.3m.com!us267384
From: us267384@mmm.serc.3m.com (Steven M. Anastasi)
Newsgroups: gnu.emacs.help
Subject: Re: Elisp replacement for load-average
Message-ID: <1991Apr19.175240.16063@mmm.serc.3m.com>
Date: 19 Apr 91 17:52:40 GMT
References: <9104181711.AA11246@hpnmd.hp.com>
Organization: 3M - St. Paul, MN  55144-1000 US
Lines: 22