Hi,
what is command to find out no of core per procssor?
Regards,
Manoj
Hi,
what is command to find out no of core per procssor?
Regards,
Manoj
cat /proc/cpuinfo works on RHEL.
No command per se. As Jimbalaya said, you can inspect /proc/cpuinfo to see if it reports the number of cores. In fact, the format is separated into sections -- each describing a CPU (a core counts as a CPU; there may be many CPUs per "chip"). So you want to count the sections to find how many cores there are.
Therefore the command that will work best is:
grep -ic ^processor /proc/cpuinfo
"mpstat" will list CPU id and stats counter
The entire /proc/cpuinfo output can be used to determine things like core/processor. Each "chunk" of output represents a processor core. In modern kernels, the output will contain a line such as "Processor Core" or something and you will get a number like 0, 1, 2, 3. You can use that to determine how many processors per core.