Cara Memeriksa CPU Thread dan Core Pada Sistem Linux

by | Mar 24, 2024 | Blog, Linux, Tutorial | 17 comments

Anda dapat dengan mudah mendapatkan informasi tentang jumlah CPU atau core di sistem Linux menggunakan baris perintah. Informasi ini tersedia dalam file /proc/cpuinfo, yang menyimpan detail tentang CPU dan arsitektur sistem. Anda bisa menggunakan perintah cat, grep, atau egrep untuk melihat isi file /proc/cpuinfo. Saya akan menunjukkan kepada Anda cara menggunakan file /proc/cpuinfo dan perintah lscpu untuk menampilkan jumlah prosesor di Linux.

 

 

Bagaimana Cara Memeriksa CPU Thread dan Core yang ada di sistem Linux?

bengkel-ti

Anda bisa menggunakan salah satu dari berbagai perintah berikut untuk menemukan jumlah inti CPU fisik, termasuk semua inti, di Linux:

 

  • Perintah lscpu: Perintah ini memberikan informasi terperinci tentang CPU, termasuk jumlah inti CPU fisik.
  • Perintah cat /proc/cpuinfo: Ini akan menampilkan detail CPU, termasuk jumlah inti fisik.
  • Perintah top atau htop: Anda dapat menggunakan perintah ini untuk melihat informasi tentang penggunaan CPU saat ini, yang juga mencakup jumlah inti fisik.
  • Perintah nproc: Ini akan langsung memberikan jumlah inti CPU yang aktif.
  • Perintah dmidecode -t processor: Ini akan memberikan informasi tentang prosesor yang terpasang di sistem.
  • Perintah getconf
  • _NPROCESSORS_ONLN: Perintah ini memberikan jumlah total inti CPU yang aktif.

 

Anda bisa menggunakan salah satu dari perintah tersebut untuk mendapatkan informasi tentang jumlah inti CPU fisik di sistem Linux Anda.

Cara menampilkan informasi tentang CPU di Linux

    Jalankan saja perintah lscpu:

    • lscpu
    • lscpu | egrep ‘Model name|Socket|Thread|NUMA|CPU\(s\)’
    • lscpu -p
    cara-memeriksa-cpu

    Output diatas dengan jelas menunjukkan saya memiliki:

     

    CPU yang digunakan adalah AMD Ryzen 7 1700 dengan delapan inti fisik. Masing-masing inti CPU memiliki dua utas, sehingga total utas yang tersedia adalah 16 (8 inti CPU dikalikan dengan 2 utas per inti).

    Kesimpulan

    Anda dapat mempelajari cara menampilkan informasi tentang arsitektur CPU, inti, utas, versi/model CPU, vendor, dan informasi lainnya menggunakan berbagai opsi baris perintah Linux. Anda dapat menggunakan perintah help atau perintah man untuk melihat halaman manual berikut:

    • lscpu: Menampilkan informasi CPU
    • cat /proc/cpuinfo: Menampilkan informasi CPU dari file /proc/cpuinfo
    • top atau htop: Menampilkan informasi sistem secara keseluruhan, termasuk informasi tentang CPU
    • nproc: Menampilkan jumlah inti CPU
    • dmidecode -t processor: Menampilkan informasi tentang prosesor dari data DMI (Desktop Management Interface)
    • getconf _NPROCESSORS_ONLN: Menampilkan jumlah inti CPU secara langsung

     

    Anda dapat menggunakan perintah help atau man untuk mempelajari lebih lanjut tentang penggunaan dan opsi yang tersedia untuk setiap perintah.

    17 Comments

    1. temp mail

      You appear to be able to read my thoughts. It’s as though you authored the book on this subject or something. You seem to know so much about it. I think a few graphics could help to emphasise the point a little bit more, but other than that, this is a terrific blog, and I will surely be back.

      Reply
    2. kingymab

      Hi i think that i saw you visited my web site thus i came to Return the favore Im attempting to find things to enhance my siteI suppose its ok to use a few of your ideas

      Reply
    3. firestickdownloader

      I loved as much as youll receive carried out right here The sketch is attractive your authored material stylish nonetheless you command get bought an nervousness over that you wish be delivering the following unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this hike

      Reply
    4. tecktimes

      Somebody essentially lend a hand to make significantly articles Id state That is the very first time I frequented your website page and up to now I surprised with the research you made to make this actual submit amazing Wonderful task

      Reply
    5. clipzdownloader

      Your articles never fail to captivate me. Each one is a testament to your expertise and dedication to your craft. Thank you for sharing your wisdom with the world.

      Reply
    6. blogmedia

      My brother recommended I might like this web site He was totally right This post actually made my day You cannt imagine just how much time I had spent for this information Thanks

      Reply
    7. latestsession

      you are in reality a just right webmaster The site loading velocity is incredible It seems that you are doing any unique trick In addition The contents are masterwork you have performed a wonderful task on this topic

      Reply
    8. itsnewsed

      Fantastic site Lots of helpful information here I am sending it to some friends ans additionally sharing in delicious And of course thanks for your effort

      Reply
    9. douyin video downloader

      Your blog is a breath of fresh air in the often stagnant world of online content. Your thoughtful analysis and insightful commentary never fail to leave a lasting impression. Thank you for sharing your wisdom with us.

      Reply
    10. theorangedip

      Hi i think that i saw you visited my web site thus i came to Return the favore Im attempting to find things to enhance my siteI suppose its ok to use a few of your ideas

      Reply
    11. businesstrick

      Nice blog here Also your site loads up fast What host are you using Can I get your affiliate link to your host I wish my web site loaded up as quickly as yours lol

      Reply
    12. theorangedip

      Thanks I have recently been looking for info about this subject for a while and yours is the greatest I have discovered so far However what in regards to the bottom line Are you certain in regards to the supply

      Reply
    13. globesimregistration

      Your blog is a breath of fresh air in the crowded online space. I appreciate the unique perspective you bring to every topic you cover. Keep up the fantastic work!

      Reply
    14. guitar

      Thank you for the good writeup It in fact was a amusement account it Look advanced to far added agreeable from you However how could we communicate

      Reply
    15. firestickdownloader

      Usually I do not read article on blogs however I would like to say that this writeup very compelled me to take a look at and do it Your writing style has been amazed me Thank you very nice article

      Reply
    16. stufferdnb

      Your blog is a constant source of inspiration for me. Your passion for your subject matter is palpable, and it’s clear that you pour your heart and soul into every post. Keep up the incredible work!

      Reply
    17. influencersginewuld

      Thanks I have just been looking for information about this subject for a long time and yours is the best Ive discovered till now However what in regards to the bottom line Are you certain in regards to the supply

      Reply

    Submit a Comment

    Your email address will not be published. Required fields are marked *

    Cari

    Kategori Artikel