Command to find information about CPUs on a UNIX machine

前端 未结 6 849
一个人的身影
一个人的身影 2021-02-01 14:50

Do you know if there is a UNIX command that will tell me what the CPU configuration for my Sun OS UNIX machine is? I am also trying to determine the memory configuration. Is the

6条回答
  •  清歌不尽
    2021-02-01 15:26

    The nproc command shows the number of processing units available:
    $ nproc

    Sample outputs: 4

    lscpu gathers CPU architecture information form /proc/cpuinfon in human-read-able format:
    $ lscpu

    Sample outputs:

    Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 8
    On-line CPU(s) list: 0-7
    Thread(s) per core: 1
    Core(s) per socket: 4
    CPU socket(s): 2
    NUMA node(s): 1
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 15
    Stepping: 7
    CPU MHz: 1866.669
    BogoMIPS: 3732.83
    Virtualization: VT-x
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 4096K
    NUMA node0 CPU(s): 0-7

提交回复
热议问题