取消
搜索历史

    linux下查看cpu的情况

    来源:比特网 2010-07-23 00:00Linux教程

    现在机器的cpu越来越复杂,一个cpu,经常是几个内核,4,6,8都不是什么稀罕的事情。

    现在一台普通的2U的服务器,都可能看到这种场景。

    There are some commands here to help identify these type of information quickly on a running Linux:

    Total amount of processors including the logical ones:

    # cat /proc/cpuinfo | grep "processor"| wc -l

    Total amount of CPU package:

    # cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l

    How many cores for each CPU. (Here we should call CPU as physical package as we mentioned above):

    # cat /proc/cpuinfo | grep "cpu cores" | wc -l

    For each physical CPU, the amount of Logical CPU (the logical CPU can be physical cores, soft cores like threaded, or both).

    # cat /proc/cpuinfo | grep "siblings"

    (文章为作者独立观点,不代表存储网立场,版权疑问请联系客服。)
    关于我们| 隐私条例| 版权申明| 联系我们

    2018-2022 Copyright © Stor.com.cn