Finding number of CPUs.
Is there any way to find the number of CPUs in Linux. The sar command (sar -cuq 5 ) gives the average values of all the CPUs present. Is there any other command or system file from where I can get the individual CPU count and its values. Plz help me.
Thanks and Regards, Ranganathan |
I am on a one-processor machine right now but you can look in the proc directory
ls /proc | grep cpu cat /proc/cpuinfo |
Thanks for the reply.
I want to know one more thing. the sar command "sar -cuq 5" gives the output for all the CPUs. is there anyother way to get the values for each CPU? |
All times are GMT -5. The time now is 01:48 AM. |