Solve the Problem of viewing CPU information in linux

Source: Internet
Author: User

Today, I encountered a problem with my buddy's server CPU information. I am going to discuss it with you.

Run the following commands to view CPU information in Linux:

cat /proc/cpuinfo |grep "cpu cores"|uniqcat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -lcat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -ccat /proc/cpuinfo | grep -E "physical id|cpu cores" |sed 'N;s/\n/  /;'| sort| uniqcat /proc/cpuinfo |grep "processor" |wc -l

Question 1: should the server display eight single-core CPUs ?? But it is actually two 4-core... why?

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/235F33Y9-0.jpg "style =" float: none; "title =" cpu.jpg "alt =" 142029893.jpg"/>

2. This is normal. Two 4-core CPUs support hyper-threading, so 16 is displayed.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/235F3M47-1.jpg "style =" float: none; "title =" cpu0.jpg "alt =" 142029946.jpg"/>

3. How can physical id be directly 0 to 3? Isn't CPU inserted on CPU slot 2?

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/235F3L09-2.jpg "style =" float: none; "title =" cpu1.jpg "alt =" 142030734.jpg"/>


This article is from the "bug blog" blog, please be sure to keep this source http://xlogin.blog.51cto.com/3473583/1301071

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.