htop/netbsd
Benny Baumann b900e70e80 Update copyright notices 2021-06-26 12:18:37 +02:00
..
NetBSDProcess.c Update copyright notices 2021-06-26 12:18:37 +02:00
NetBSDProcess.h Update copyright notices 2021-06-26 12:18:37 +02:00
NetBSDProcessList.c Update copyright notices 2021-06-26 12:18:37 +02:00
NetBSDProcessList.h Update copyright notices 2021-06-26 12:18:37 +02:00
Platform.c Update copyright notices 2021-06-26 12:18:37 +02:00
Platform.h Update copyright notices 2021-06-26 12:18:37 +02:00
ProcessField.h Update copyright notices 2021-06-26 12:18:37 +02:00
README.md Add NetBSD platform support without procfs dependency 2021-06-26 12:18:37 +02:00

README.md

NetBSD support in htop(1)

This implementation makes NetBSD use htop(1) without the need of mount_procfs(8).

The implementation has been copied over from the OpenBSD implemention in htop(1).

Current implementation mimics the procfs based implementation in stats collection.

Make NetBSD no longer masquerade as Linux.

Build notes

  • Make sure python interpreter is correct in scripts/MakeHeader.py

What works

  • Builds in NetBSD without any additional patch
  • Uses sysctl(3) and kvm(3) to get basic information
  • Shows basic meters CPU / Memory / Swap
  • Shows basic process listing

What does NOT work

  • Memory being split into used/buffers/cache
  • Thread information and count may not be correct

What needs to be tested

  • Basic features of htop(1) like kill / nice / sort / search works as expected
  • If the meter displays are working as expected
  • If the process states are displayed correctly

TODO

  • Clean up the implementation, unused variables etc
  • Remove unused / irrelevant files and useless / unused code
  • Use kvm_getlwps(3) to get thread information
  • Implement proper Memory usage display
  • Make package in pkgsrc-wip for better testing