In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you the methods of viewing machine cpu information in the linux system. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
A few cpu
More / proc/cpuinfo | grep "physical id" | uniq | wc-l
How many cores is each cpu (assuming the cpu configuration is the same)
More / proc/cpuinfo | grep "physical id" | grep "0" | wc-lcat / proc/cpuinfo | grep processor
1. Check the number of physical CPU
# cat / proc/cpuinfo | grep "physical id" | sort | uniq | wc-l
two。 Check the number of logical CPU
# cat / proc/cpuinfo | grep "processor" | wc-l
3. Check how many cores CPU is.
# cat / proc/cpuinfo | grep "cores" | uniq
4. Check the main frequency of CPU
# cat / proc/cpuinfo | grep MHz | uniq# uname-aLinux euis1 2.6.9-55.ELsmp # 1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux (view current operating system kernel information) # cat / etc/issue | grep LinuxRed Hat Enterprise Linux AS release 4 (Nahant Update 5) (view current operating system release information) # cat / proc/cpuinfo | grep name | cut-f2-d: | uniq-c8 Intel (R) Xeon (R) CPU E5410 @ 2.33GHz (see 8 logical CPU Also know the CPU model) # cat / proc/cpuinfo | grep physical | uniq-c4 physical id: 04 physical id: 1 (indicating that it is actually two 4-core CPU) # getconf LONG_BIT32 (indicating that the current CPU is running in 32bit mode, but does not mean that CPU does not support 64bit) # cat / proc/cpuinfo | grep flags | grep'lm'| wc-l8 (the result is greater than 0, which means 64bit computing is supported. Lm refers to long mode, while supporting lm is 64bit.) the above is the way to view machine cpu information in the linux system shared by Xiaobian. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.