minix/minix/usr.bin
David van Moolenbroek 1677b2fea3 ProcFS: get process information from MIB service
Instead of pulling in process tables itself, ProcFS now queries the
MIB service for process information.  This reduces ProcFS's memory
usage by about 1MB.  The change does have two negative consequences.

First, getting all the original /proc/<pid>/psinfo fields filled in
would take a lot of extra effort.  Since the only program that uses
those files at all is mtop(1), we reformat psinfo to expose only the
information used by mtop(1).  This means that with this patch, older
copies of MINIX3 ps and top will cease to work.

Second, since both MIB and ProcFS update their own view of the
process list only once per clock tick, ProcFS' view may now be
outdated by up to two clock ticks.  This is unlikely to pose a
problem in practice.

Change-Id: Iaa6b60450c8fb52d092962394d33d08bd638bc01
2016-01-01 01:28:31 +01:00
..
diff Move OpenBSD diff(1) into minix/usr.bin 2015-09-23 12:03:08 +00:00
eepromread New sources layout 2014-07-31 16:00:30 +02:00
grep Replace NetBSD grep with OpenBSD grep 2014-09-30 18:09:56 +00:00
mined mined: increase the size of the tgetent() buffer. 2015-03-28 08:39:19 +01:00
ministat New sources layout 2014-07-31 16:00:30 +02:00
mtop ProcFS: get process information from MIB service 2016-01-01 01:28:31 +01:00
toproto New sources layout 2014-07-31 16:00:30 +02:00
trace Retire sysuname(2), synchronize sys/utsname.h 2016-01-01 01:28:25 +01:00
Makefile Rename top(1) to mtop(1), import NetBSD top(1) 2016-01-01 01:28:30 +01:00
Makefile.inc New sources layout 2014-07-31 16:00:30 +02:00