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