This is mostly for TC benefit.
- Need to filter out:
- Anything using less than 0.1% CPU/memory
- Any process with “idle” as the command
- For each process, we only keep the following (also to reduce size):
- jail-id (if available) [for FreeBSD only, obviously, we may need to backport to 12.0 eventually so lets keep it work on both platforms]
Need to evaluate if its better to use psutil or ps command.