Article 52R5G What bash commands to use to correlate performance with processes?

What bash commands to use to correlate performance with processes?

by
rhimbo
from LinuxQuestions.org on (#52R5G)
I'm trying to use bash commands to see which the amount of CPU or disk resources are being used by which process or processes.

I know I can use "iostat" to see IO activity. But how can I associate the activity with specific process names or PIDs?

I know I can use "top" to see CPU activity, but I want to see which processes are using the CPU.

I know I can do "ps -elf" to see what commands are executables are being run or executed by which PID. But I don't know how to associate the command or PID with output from "iostat".latest?d=yIl2AUoC8zA latest?i=1JmHjzZerB4:utSlmZtVwLg:F7zBnMy latest?i=1JmHjzZerB4:utSlmZtVwLg:V_sGLiP latest?d=qj6IDK7rITs latest?i=1JmHjzZerB4:utSlmZtVwLg:gIN9vFw1JmHjzZerB4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments