Linux_查看系統cpu個數、核心數、線程數,linux個數

來源:互聯網
上載者:User

Linux_查看系統cpu個數、核心數、線程數,linux個數

原創作品,出自 “深藍的blog” 部落格,歡迎轉載,轉載時請務必註明以下出處,否則追究著作權法律責任。

深藍的blog:http://blog.csdn.net/huangyanlong/article/details/43935535

 

(1)、查看cpu資訊

[root@xckydb ~]# cat /proc/cpuinfo

--查看cpu資訊

processor: 0

vendor_id: GenuineIntel

cpu family: 6

model: 58

model name :        Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz

stepping: 9

cpu MHz: 2566.490

cache size      : 6144 KB

fpu             : yes

fpu_exception   : yes

cpuid level     : 5

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc up pni monitor ssse3 lahf_lm

bogomips        : 5132.98

clflush size    : 64

cache_alignment : 64

address sizes   : 36 bits physical, 48 bits virtual

power management:

 

(2)、查看cpu簡要資訊

[root@xckydb ~]# cat /proc/cpuinfo |grep name |cut -f2 -d: |uniq –c

--查看cpu簡要資訊

      1         Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz

 

(3)、查看物理cpu個數

[root@xckydb ~]# grep 'physical id' /proc/cpuinfo | sort -u

1

--查看到物理cpu個數為1

(4)、查看核心數量

[root@xckydb ~]# grep 'core id' /proc/cpuinfo | sort -u | wc -l

6

--查看CPU的核心數為6

(5)、查看線程數

[root@xckydb ~]# grep 'processor' /proc/cpuinfo | sort -u | wc -l

12

--查看cpu匯流排程數為12(6個核心)

 

原創作品,出自 “深藍的blog” 部落格,歡迎轉載,轉載時請務必註明以下出處,否則追究著作權法律責任。

深藍的blog:http://blog.csdn.net/huangyanlong/article/details/43935535

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.