This is version 0.3 of procinfo for Linux, dated 1994-05-08.

Procinfo is a small program that gathers some system information from
diverse files under /proc and prints it to the screen. It duplicates
some of the functionality of free(1) and uptime(1). It should work
with any kernel release close to 1.0.


* New in this version:

  + Interrupts look better. Idea from Danny ter Haar
    <danny@cistron.nl.mugnet.org>.

  + A new option `-d' gives you the differences for memory,
    pagein/out, swapin/out, disks, context and interrupts since last
    update. Suggested by Rob Janssen <pe1chl@rabo.nl>.

  + Since the advent of /proc/devices in Linux 1.1.3 and of the
    modularized SLS 1.0.5 kernel means that not everything will fit on
    one 80x25 screen anymore, I have introduced a new option `-m' that
    will replace the default screen with one showing all modules (and
    devices and filesystems if your kernel is new enough). The modules
    list has disappeared from the default display. `-a' gives you
    everything.

  + Added percentages for CPU usage. Note that these are accumulated
    percentages, as opposed to those given by top(1).

  + To accommodate both those who use 1.0.x kernels and those who use
    1.1.x kernels, I have re-arranged the #defines a bit. See below.


* New in version 0.2:

  + The kernel patch broke rpc.rstatd. Fixed. Please make sure you
    don't use an old version of procinfo with the new kernel patch or
    vice versa.

  + Wildly expanded manual page.

  + A few cosmetic changes.


* How to configure.

There are currently three configurable items in the Makefile:

- If the `intr' line in /proc/stat on your system contains 17 numbers,
  add -DHAVE_IRQ_ARRAY to CFLAGS. If it contains only one number,
  either don't add it or read below about the kernel patch.

- If you have a file /proc/devices, add -DHAVE_PROC_DEVICES.

- If you have a file /proc/filesystems, add -DHAVE_PROC_FILESYSTEMS.

Just exactly which ones you have depends on the kernel version you're
running.


* Semi-obsolete interrupt patch.

As is, the `intr' line in /proc/stat under Linux 1.0 prints the
accumulated number of interrupts that have happened since boot-up for
all 16 irq channels lumped together. You can change this to display
the number of interrupts for each individual irq by applying the patch
in `kernel.patch' to the kernel sources (if necessary) and then
compiling procinfo with -DHAVE_IRQ_ARRAY.

If your kernel is at version 1.0.4 or older, just say

cd /usr/src/linux		(or whichever dir contains the kernel sources)
patch < kernel.patch

If you have version 1.0.5, then the patch is already part of the
standard kernel, except that there is a small bug in
linux/fs/proc/array.c at line 101 where it reads

		"%u",

but should read

		"intr %u",

Change this by hand and recompile and you should be all set.

As said above, the patch that came with procinfo 0.1 broke the
rpc.rstatd daemon which reads the first number form the `intr' line
and assumes that that line contains the total number of interrupts.
In this version of procinfo, the patch merely adds the sixteen extra
numbers *after* the original total number (rather than replacing the
total number *with* the sixteen extra numbers), thus retaining
compatibility with rpc.rstatd.



Bug fixes, suggestions etc. are of course always welcome.


Have fun,

Sander van Malssen
svm@kozmix.hacktic.nl
