首頁>Club>
7
回覆列表
  • 1 # 王嘯皓月山巔

    我的回答:1.檢視CPU的型號:

    #more /proc/cpuinfo|grep name|cut -f2 -d:

    輸出結果:

    Intel(R)Xeon(R) CPU E5-2690 v4 @2.60GHz

    2.檢視CPU的位數:

    #getconf LONG_BIT

    輸出結果是:64

    3.檢視CPU物理的個數:

    #more /proc/cpuinfo|grep 'physical id'|sort -n|uniq|wc -l

    輸出結果:2

    表示Linux伺服器上面安裝了2個物理CPU晶片。

    4.檢視CPU的核心個數:

    #more /proc/cpuinfo|grep 'cpu cores'|uniq

    查詢結果是:14

    表示一顆物理CPU裡面有14個CPU核心,單塊CPU上處理資料的晶片組數量是14。

    5.檢視每顆物理CPU中的邏輯CPU個數:

    #more /proc/cpuinfo|grep 'siblings'|uniq

    輸出結果:

    siblings: 28

    6.檢視CPU是否開啟了超執行緒技術:

    #more /proc/cpuinfo|egrep 'cpu cores|siblings'|sort|uniq

    輸出結果:

    cpu cores:14

    siblings:28

    如果cpu cores數量是siblings的一半,說明開啟了超執行緒技術。

    如果cpu cores與siblings數量一致,說明沒有開啟超執行緒技術。

    7.檢視邏輯CPU個數;

    #more /proc/cpuinfo|grep 'processor'|uniq|wc -l

    輸出結果是:56。

    說明邏輯CPU個數是56。邏輯CPU個數=物理CPU個數xCPU核心數x每顆的硬體執行緒數。

  • 中秋節和大豐收的關聯?
  • 3d列印的依據?