Subject: building userland that works with UVM.
To: None <current-users@NetBSD.ORG>
From: matthew green <mrg@eterna.com.au>
List: current-users
Date: 02/09/1998 17:40:13
hi folks.

i've mostly made userland stuff work with UVM.  there are still a couple
of problems to sort out (no ETA on these yet).

there are 6 programs affected by this:
	/bin/ps
	/usr/bin/systat
	/usr/bin/vmstat
	/usr/bin/w		[ /usr/bin/uptime is OK ]
	/usr/libexec/rpc.rstatd
	/usr/sbin/pstat

some only need to be recompiled with -DUVM, others required changes to
the source...  to build UVM-capable versions of these programs, one needs
to set "UVM" in the make environment (either an environment variable or
in /etc/mk.conf) to something.  eg, i have `UVM=yes' in /etc/mk.conf.
this will add -DUVM to these programs.


current known problems:
	- ps and w are not able to read the process argument or environment
	  vectors (kvm_get{arg,env}v)
	- some members of the `struct vmtotal' (as obtained via sysctl
	  vm.vmmeter) are not yet filled in.  this affects both vmstat and
	  systat's vmstat screen.
	- `systat vmstat' does not currently display a whole lot of useful
	  VM information.

the last problem should be fixed shortly.  the first two require a fair
bit of thought and so far nothing totally concrete has been planned for
these (you're welcome to try! :-)


as normal, please send-pr any problems you see!


.mrg.