[TriLUG] Trying to understand top/htop/free vs other tools

Steve Litt via TriLUG trilug at trilug.org
Mon Jul 17 16:40:32 EDT 2017


On Mon, 17 Jul 2017 15:06:51 -0400
Scott Lambdin via TriLUG <trilug at trilug.org> wrote:

> I once monitored some processes using ps flags.  Periodically, I
> would run this command and the result was a running count of minor
> and major page faults for the monitored processes.
> 
> ps -eo min_flt,maj_flt,cmd | grep -e CA[D] -e ARE[G] -e APH[M]

For any of you running the runit init system and wanting to see a quick
and dirty graph of the daemon tree:

ps axfo ppid,pid,cmd | cat -n | grep -A1 runsv | grep -v grep

You can do similar things for s6 and daemontools.
 
SteveT

Steve Litt 
July 2017 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


More information about the TriLUG mailing list