• Jelajahi

    Copyright © RootSec BOT
    Best Viral Premium Blogger Templates

    Iklan

    10 Cara Untuk Melihat Informasi CPU di Linux

    AnonSec Team
    Februari 10, 2022, Kamis, Februari 10, 2022 WIB Last Updated 2024-03-30T15:03:04Z
    masukkan script iklan disini
    masukkan script iklan disini

     

    10 cara untuk melihat informasi cpu di linux

    Berikut panduan 10 cara untuk melihat informasi CPU di linux, terkadang kita ingin mengetahui informasi CPU apa yang kita gunakan pada system linux kita, hal ini dapat digunakan untuk kebutuhan dokumentasi pada server-server yang kita miliki.

    Informasi CPU di Linux

    Ada beberapa perintah linux yang bisa kita gunakan untuk mencari informasi terkait dengan CPU, diantaranya adalah detail tentang prosesor, arsitektur, nama vendor, model, jumlah core, kecepatan setiap core, dll.

    Dalam posting kali ini kita akan melihat beberapa perintah yang dapat digunakan untuk mendapatkan detail Informasi tentang CPU. Berikut 10 cara untuk melihat informasi CPU di Linux. 

    1. /proc/cpuinfo

    Perintah les /proc/cpuinfo dapat menampilkan informasi tentang jenis prosesor yang dijalankan pada system termasuk jumlah CPU yang ada. dibawah ini adalah contoh output dari perintah less /proc/cpuinfo pada system. 
    [email protected]:~# less /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 58
    model name : Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
    stepping : 9
    microcode : 0x19
    cpu MHz : 2594.106
    cache size : 3072 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 2
    apicid : 0
    initial apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 13
    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 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm retpoline kaiser fsgsbase
    bugs : cpu_meltdown spectre_v1 spectre_v2
    bogomips : 5188.21
    clflush size : 64
    cache_alignment : 64
    address sizes : 36 bits physical, 48 bits virtual
    power management:


    2. cpuid

    Central Processing Unit Identification merupakan software yang berfungsi untuk mendeteksi spesifikasi perangkat pada system, anda dapat menginstall nya pada system anda dengan perintah berikut ini.
    [email protected]:~# apt-get install cpuid
    Berikut contoh informasi yang ditampilkan pada cpuid.
    [email protected]:~# cpuid
    CPU 0:
    vendor_id = "GenuineIntel"
    version information (1/eax):
    processor type = primary processor (0)
    family = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
    model = 0xa (10)
    stepping id = 0x9 (9)
    extended family = 0x0 (0)
    extended model = 0x3 (3)
    (simple synth) = Intel Core i3-3000 (Ivy Bridge L1) / i5-3000 (Ivy Bridge E1/N0/L1) / i7-3000 (Ivy Bridge E1) / Mobile Core i3-3000 (Ivy Bridge L1) / i5-3000 (Ivy Bridge L1) / Mobile Core i7-3000 (Ivy Bridge E1/L1) / Xeon E3-1200 v2 (Ivy Bridge E1/N0/L1) / Pentium G1600/G2000/G2100 (Ivy Bridge P0) / Pentium 900/1000/2000/2100 (P0), 22nm
    miscellaneous (1/ebx):
    process local APIC physical ID = 0x0 (0)
    cpu count = 0x2 (2)
    CLFLUSH line size = 0x8 (8)
    brand index = 0x0 (0)
    brand id = 0x00 (0): unknown
    feature information (1/edx):
    x87 FPU on chip = true
    virtual-8086 mode enhancement = true
    debugging extensions = true
    page size extensions = true
    time stamp counter = true
    RDMSR and WRMSR support = true
    physical address extensions = true


    3. lscpu

    lscpu adalah perintah untuk menampilkan informasi tentang arsitektur CPU, perintah ini tidak memerlukan opsi apa pun, ini perintah lscpu akan mencetak detail perangkat keras cpu dalam format yang ramah pengguna.
    [email protected]:~# lscpu
    Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 2
    On-line CPU(s) list: 0,1
    Thread(s) per core: 1
    Core(s) per socket: 2
    Socket(s): 1
    NUMA node(s): 1
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 58
    Model name: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
    Stepping: 9
    CPU MHz: 2594.106
    BogoMIPS: 5188.21
    Hypervisor vendor: KVM
    Virtualization type: full
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 256K
    L3 cache: 3072K
    NUMA node0 CPU(s): 0,1
    Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm retpoline kaiser fsgsbase


    4. lshw

    Perintah lshw dapat menampilkan informasi terbatas tentang cpu. lshw secara default menampilkan informasi tentang berbagai bagian perangkat keras, dan opsi '-class' dapat digunakan untuk mengambil informasi tentang bagian perangkat keras tertentu.
    [email protected]:~# lshw -class processor
    *-cpu
    product: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
    vendor: Intel Corp.
    physical id: 2
    bus info: [email protected]
    width: 64 bits
    capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp x86-64 constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm retpoline kaiser fsgsbase


    5. hardinfo

    Hardinfo adalah perintah yang menghasilkan berbagai komponen perangkat keras, perintah hardinfo dapat digunakan pada system GUI tetapi juga dapat dijalankan dengan menggunakan CLI. Hardinfo juga melakukan beberapa tes benchmark yang membutuhkan beberapa menit sebelum informasi dapat ditampilkan.
    [email protected]:~# hardinfo | less

    Summary
    -------

    -Computer-
    Processor : 2x Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
    Memory : 1015MB (195MB used)
    Operating System : Ubuntu 16.04.4 LTS
    User Name : root (root)
    Date/Time : Sun 13 Sep 2020 11:41:06 PM WIB
    -Display-
    Resolution : 0x0 pixels
    OpenGL Renderer : Unknown
    X11 Vendor : (null)
    -Multimedia-
    Audio Adapter : ICH - Intel 82801AA-ICH
    -Input Devices-
    Power Button
    Sleep Button
    AT Translated Set 2 keyboard
    Video Bus
    ImExPS/2 Generic Explorer Mouse
    VirtualBox USB Tablet
    VirtualBox mouse integration
    -Printers-
    No printers found
    -SCSI Disks-
    VBOX CD-ROM
    ATA VBOX HARDDISK

    6. dmidecode

    Perintah dmidecode menampilkan beberapa informasi tentang cpu, yang mencakup jenis soket, nama vendor, dan berbagai tanda.
    [email protected]:~# dmidecode --t 4
    # dmidecode 3.1
    Getting SMBIOS data from sysfs.
    SMBIOS 2.7 present.

    Handle 0x0001, DMI type 4, 42 bytes
    Processor Information
    Socket Designation: CPU Socket - U3E1
    Type: Central Processor
    Family: Core i5
    Manufacturer: Intel(R) Corporation
    ID: A9 06 03 00 FF FB EB BF
    Signature: Type 0, Family 6, Model 58, Stepping 9
    Flags:
    FPU (Floating-point unit on-chip)
    VME (Virtual mode extension)
    DE (Debugging extension)
    PSE (Page size extension)
    TSC (Time stamp counter)
    MSR (Model specific registers)
    PAE (Physical address extension)
    MCE (Machine check exception)
    CX8 (CMPXCHG8 instruction supported)
    APIC (On-chip APIC hardware supported)
    SEP (Fast system call)
    MTRR (Memory type range registers)
    PGE (Page global enable)
    MCA (Machine check architecture)
    CMOV (Conditional move instruction supported)
    PAT (Page attribute table)
    PSE-36 (36-bit page size extension)
    CLFSH (CLFLUSH instruction supported)
    DS (Debug store)
    ACPI (ACPI supported)
    MMX (MMX technology supported)
    FXSR (FXSAVE and FXSTOR instructions supported)
    SSE (Streaming SIMD extensions)
    SSE2 (Streaming SIMD extensions 2)
    SS (Self-snoop)
    HTT (Multi-threading)
    TM (Thermal monitor supported)
    PBE (Pending break enabled)
    Version: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
    Voltage: 0.9 V
    External Clock: 100 MHz
    Max Speed: 2600 MHz
    Current Speed: 2600 MHz
    Status: Populated, Enabled
    Upgrade: Socket rPGA988B
    L1 Cache Handle: 0x0003
    L2 Cache Handle: 0x0004
    L3 Cache Handle: 0x0005
    Serial Number: None
    Asset Tag: None
    Part Number: None
    Core Count: 2
    Core Enabled: 2
    Thread Count: 4
    Characteristics:
    64-bit capable

    7. nproc

    Perintah nproc hanya menampilkan jumlah unit cpu pemrosesan yang tersedia pada system yang digunakan.
    [email protected]:~# nproc
    2

    8. hwinfo

    Hwinfo adalah program informasi perangkat keras yang dapat digunakan untuk menampilkan secara  detail komponen-komponen perangkat keras pada sistem Linux. gunakan perintah --short --[nama_hardware] untuk mendapatkan informasi secara spesifik, contoh informasi yang ditampilkan dibawah ini adalah CPU.
    [email protected]:~# hwinfo --short --cpu
    cpu:
    Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594 MHz
    Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594 MHz

    9. inxi

    Inxi adalah program free open source yang menampilkan informasi tentang hardware dengan fitur yang lengkap. inxi menampilkan informasi tentang hardware pada sistem seperti CPU, driver, Xorg, Desktop, Kernel, versi GCC, Proses, penggunaan RAM, dan berbagai macam informasi berguna lainnya. untuk menggunakan inxi anda dapat menginstallnya dengan perintah berikut.
    [email protected]:~# apt-get install inxi
    Berikut tampilan informasi CPU menggunakan inxi.
    [email protected]:~# inxi
    CPU~Dual core Intel Core i5-3320M (-MCP-) speed~2594 MHz (max) Kernel~4.4.0-116-gen
    eric x86_64
    Up~3:07 Mem~147.2/992.1MB HDD~10.7GB(26.3% used) Procs~118 Client~Shell

    10. x86info

    x86info adalah sebuat paket yang menampilkan informasi diagnostik tentang CPU yang dipasang pada sistem yang kompatibel dengan i386. informasi yang ditampilkan termasuk tentang konfigurasi cache CPU, kecepatan dan fitur yang didukung.
    [email protected]:~# x86info --all
    x86info v1.31pre Dave Jones 2001-2011
    Feedback to <[email protected]>.

    MP Table:
    # APIC ID Version State Family Model Step Flags
    # 0 0x14 BSP, usable 6 10 9 0x178bf3bf
    # 1 0x14 AP, usable 6 10 9 0x178bf3bf

    Found 2 identical CPUs
    Extended Family: 0 Extended Model: 3 Family: 6 Model: 58 Stepping: 9
    Type: 0 (Original OEM)
    CPU Model (x86info's best guess): Unknown model.
    Processor name string (BIOS programmed): Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz


    Demikian kira-kira artikel 10 Cara Untuk Melihat Informasi CPU di Linux ini saya buat. Semoga bermafaat untuk kita semua. Silahkan Share Jika sobat merasa postingan ini bermanfaat. Sekian & Terimakasih Salam.

    Komentar

    Tampilkan

    Terkini

    Tutorial

    +