![]() ![]() $ cat /proc/cpuinfo | grep -i ‘physical id’ | uniq The “physical id” values will have more than one value in the case of multiple processor. In those cases, the output of the /proc/cpuinfo will be different. It is seen that a system contains more than one processors attached in a motherboard. This means that the system contains more than one physical processors. By counting the number of “core id” it will give an actual report reading the number of cores.Īlso there are processors which comes under the category of multiple processors. Whereas /proc/cpuinfo has an information regarding the “core id”. Some processors may come under the category of hyper thread processors where the operating system considers the number of cores as double. It won’t be a wise decision to completely rely on counting the number of processors. We also know that /proc/cpuinfo file also provides details regarding the number of cores in the processor. The lscpu commands provides the details regarding the “cores per socket”. That is more than one program can be executed at a time thereby enhancing the speed of the processor. The higher the number of cores, more multi-tasking can be achieved. This number indicates the separate number of the CPU (Central Processing Unit). The output of the above command gives an updated information regarding the frequency consumption of the processor.Įvery 0.1s: cat /proc/cpuinfo | grep -i mhz Thu Oct 13 10:20:32 2016 $ watch -n 0.1 “cat /proc/cpuinfo | grep -i mhz” If you wish to monitor the change in the frequency, then follow the given command: They only consume more power or use higher frequency during the time of high load. It is to be noted that the frequency displayed in the output cannot be actual frequency, because the cpu tries to not use all of its power. The information regarding frequency of the processor is available in both the lcpu and /proc/cpuinfo The architecture x86_64 indicates that it is a 64 bit processor. The lscpu command provides the architecture details of the processor Model name: Intel Xeon E312xx (Sandy Bridge) The following command can be followed to get the model name of the processor.Ĭat /proc/cpuinfo | grep ‘model name’ | uniq The details of processor’s vendor and model name can be find in /proc/cpuinfo file with the help of grep command. It is not possible to get all the information in one command, so we will be going through some of the commonly used commands for getting details regarding the processor/CPU (Central Processing Unit) In this topic we will be covering how to get the details regarding number of cores, availability of hyper threading, architecture, cache size etc. It is important to know the details about the processor and the specification of the system used. ![]()
0 Comments
Leave a Reply. |