I need to locate and utilize performance analysis tools to determine characteris
ID: 3671939 • Letter: I
Question
I need to locate and utilize performance analysis tools to determine characteristics of my processor and process utilization / management on my Linux partition. What command or commands would I use to find the following information when using the terminal app in Ubuntu:
How many CPUs are running?
How fast is each CPU?
What is the size of the cache on your CPU?
What is meant by “User Time” in terms of CPU usage?
What is meant by “Kernel” or “System” time in terms of CPU usage?
What does it mean when a CPU is 90% idle? 0% idle?
What is the difference between a running and runnable process? What is a blocked (also called “Uninteruptable”) thread or process?
Explanation / Answer
command to check number of processing units available:
$lscpu
the frequency of the processor :
$ lscpu I grep -i mhz
User Time:: The amount of time spent on the processor running your program's code or code in libraries.
“Kernel” or “System” time: is the tim spent on running codein the operating system kernel on behaif of your program.
when a CPU is 90% idle? 0% idle?: That means your linux server is running slow,Idel means, which means it has nothing to do.
difference between running state and runnable sate:
running sate:
The process that is executing and using the CPU at a particular moment is called running process.
runnable state:
When a process is in runnable state, it means it has all the resources it needs to run, except that the CPU is not available. The runnable state of this process is shown as R in ps output.
blocked thread: It is a process which happens o be in a system(kernal function) that cannot be interrupted by a signal.Blocked, Waiting, Sleeping, in an Interruptable sleep, or in an Uninterruptable sleep.