Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
David van Moolenbroek 305e366fe4 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-13 20:32:54 +01:00
bin Import NetBSD ps(1) 2016-01-13 20:32:52 +01:00
common w(1): switch to libkvm 2016-01-13 20:32:50 +01:00
crypto NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
distrib Rename top(1) to mtop(1), import NetBSD top(1) 2016-01-13 20:32:53 +01:00
docs Add PTYFS, Unix98 pseudo terminal support 2015-06-23 17:43:46 +00:00
etc Import NetBSD dev_mkdb(8) 2016-01-13 20:32:51 +01:00
external Rename top(1) to mtop(1), import NetBSD top(1) 2016-01-13 20:32:53 +01:00
games Fix weird flock uses 2016-01-13 20:32:23 +01:00
gnu NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
include Start using sysctl(3) throughout userland 2016-01-13 20:32:45 +01:00
lib Import NetBSD dev_mkdb(8) 2016-01-13 20:32:51 +01:00
libexec Start using sysctl(3) throughout userland 2016-01-13 20:32:45 +01:00
minix ProcFS: get process information from MIB service 2016-01-13 20:32:54 +01:00
releasetools Add MIB service, sysctl(2) support 2016-01-13 20:32:37 +01:00
sbin Import NetBSD sysctl(8) 2016-01-13 20:32:48 +01:00
share Integrate ASR instrumentation into build system 2016-01-13 20:32:34 +01:00
sys w(1): switch to libkvm 2016-01-13 20:32:50 +01:00
tests NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
tools NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
usr.bin w(1): switch to libkvm 2016-01-13 20:32:50 +01:00
usr.sbin Import NetBSD dev_mkdb(8) 2016-01-13 20:32:51 +01:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview build:update 'git review' config to match gerrit.minix3.org 2014-07-28 17:05:15 +02:00
build.sh NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile NetBSD re-synchronization of the source tree 2016-01-13 20:32:14 +01:00
Makefile.inc Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00