Linux怎麼查看伺服器參數

來源:互聯網
上載者:User

一、CPU大小<br />[root@idc ~]# more /proc/cpuinfo<br />可以看到詳細內容或:<br />[root@idc ~]# cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id"<br />model name: Intel(R) Xeon(TM) CPU 2.80GHz model name: Intel(R) Xeon(TM) CPU 2.80GHz<br />model name: Intel(R) Xeon(TM) CPU 2.80GHz model name: Intel(R) Xeon(TM) CPU 2.80GHz<br />physical id : 0 physical id : 0 physical id : 3 physical id : 3<br />[root@idc ~]#<br />說明:Linux下可以在/proc/cpuinfo中看到每個cpu的詳細資料。但是對於雙核的cpu,在cpuinfo中會看到兩個cpu。常常會讓人誤以為是兩個單核的cpu。<br />其實應該通過Physical Processor ID來區分單核和雙核。而Physical Processor ID可以從cpuinfo或者dmesg中找到.<br />flags 如果有 ht 說明支援超執行緒技術判斷物理CPU的個數可以查看physical id 的值,相同則為同一個物理CPU 可以看到上面,<br />這台機器有兩個雙核的CPU,ID分別是0和3,大小是2.8G。<br />二、記憶體大小<br />[root@xbidc ~]# cat /proc/meminfo |grep MemTotal<br />MemTotal: 1034612 kB<br />[root@xbidc ~]#<br />三、硬碟大小<br />[root@xbidc ~]# fdisk -l |grep Disk<br />Disk /dev/sda: 300.0 GB, 300000000000 bytes<br />[root@xbidc ~]#<br /> 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.