-
Notifications
You must be signed in to change notification settings - Fork 0
Resource management
GradedJestRisk edited this page Dec 9, 2018
·
1 revision
List processes running in background : jobs
View process tree of an user
pstree -u <USER> (..) init─┬─atd ├─console-kit-dae───63*[{console-kit-da}] ├─crond (..)
Show load average for 1, 5, 15 minutes.
uptime 11:00:02 up 104 days, 23:08, 7 users, load average: 1.01, 1.05, 0.66
Get load average each minute: while sleep 60; do uptime; done;
Handful:
- IO wait (wa) given by vmstat: time spent by CPU waiting for IO
- get all processes waiting for IO
watch -n 1 "(ps aux | awk '\$8 ~ /D/ { print \$0 }')"
- get IO wait for last 5 secondes
sar 5 | awk '/all|iowait/{print $7}'