Access to kmem - System namelist - 'ps' etc
Dave Olson
olson at fortune.UUCP
Sun Dec 2 11:18:46 AEST 1984
At Fortune Systems, we took a somewhat different approach. What we
did was to fix forever in low core the important variables (or
pointers thereto, in the case of tables such as the proc table.)
This does indeed speed up ps, pstat, vmstat, etc. We also put the
SIZES of the various structures (user, proc, etc) in low core.
This means that (with suitable re-writing of ps, pstat, etc.) you can
even change the sizes of the structures without re-compiling all
the utilities, as long as you are simply adding new stuff at the end.
It means a bit more work in the auto-configuration code, but since we
load drivers from prom, and the driver will have to work with multiple
releases of the OS, the driver's can't have the values compiled into
them, and therefore have to be able to look them up in known
locations.
As a side note, the number of proc's, clists, disk buffers, etc. are
settable by a user mode program, which writes the info into an EAROM,
which is then examined by the kernel at auto-configuration, so we
absolutely CAN'T have table sizes compiled in.
Dave Olson, Fortune Systems
UUCP: {ihnp4,ucbvax!amd}!fortune!olson
ARPA: amd!fortune!olson at BERKELEY
More information about the Comp.unix.wizards
mailing list