CH 6: Tuning System Performance Flashcards
1
Q
ps a
ps u
ps aux
A
show me
2
Q
list all tuned profiles
A
tuned-adm list
3
Q
change server tuning profile to powersave
A
tuned-adm profile powersave
4
Q
view active tuned profile
A
tuned-adm active
5
Q
2 ways to view information about CPUs
A
lscpu
cat /proc/cpuinfo
6
Q
how to start a process with a nice value of 10
A
nice -n 10
in the book we did:
nice -n 10 sha1sum /dev/zero &
7
Q
Show all sha1sum processes with ps to show PID, % of CPU, nice value, and executable name (command)
A
ps -o pid,pcpu,nice,comm $(pgrep sha1sum)