I like very much htop, on GNU/Linux is very nice, I would like a similar software for OpenBSD 5.6. Anyone knows something about that?
Htop 2.0 adds OpenBSD support. I just compiled it on OpenBSD 5.9 and it works very well: http://hisham.hm/htop/
ps are your best choices.
At some point you were able to mount
procfs on OpenBSD - see
mount_procfs(8) but this was recently removed from the standard configuration. You can try to build a custom kernel, but I expect procfs support was removed for a good reason.
For example, see this commented out line in
#option PROCFS # /proc, currently broken
You can try to build a new kernel with
procfs support. It's only supported on i386 and is broken in 5.6 (as far as I can tell).
cd /tmp; wget http://ftp.spline.de/pub/OpenBSD/5.6/sys.tar.gz tar xzf /tmp/sys.tar.gz # Unpack sources cd /usr/src/sys/arch/i386/conf vi GENERIC # Comment out the procfs line config GENERIC cd ../compile/GENERIC make clean && make make install reboot
Now you can mount
mount_procfs /proc /proc
Build htop (it requires procfs and is only supported on Linux. Technically it works on FreeBSD as well, with the procfs mounted, and may end up working on OpenBSD... your mileage may vary. I wouldn't trust it though...
wget http://hisham.hm/htop/releases/1.0/htop-1.0.tar.gz tar zxf htop-1.0.tar.gz cd htop-1.0 ./configure make make install
Or really, just use
From OpenBSD 5.9 'htop' is available as a package and it works very well.
htop is Linux only software and apparently works on FreeBSD and NetBSD via Linux compatibility layer (probably only on 32bit). OpenBSD Linux comp (386 only) is on the life support. However check out OpenBSD top, and sysctl. Few people mentioned /proc (procfs). Of course OpenBSD doesn't have it. That is Plan 9 special filesystem which was shamelessly stolen by Linux.