1. <tr id='l54kp'><strong id='l54kp'></strong><small id='l54kp'></small><button id='l54kp'></button><li id='l54kp'><noscript id='l54kp'><big id='l54kp'></big><dt id='l54kp'></dt></noscript></li></tr><ol id='l54kp'><table id='l54kp'><blockquote id='l54kp'><tbody id='l54kp'></tbody></blockquote></table></ol><u id='l54kp'></u><kbd id='l54kp'><kbd id='l54kp'></kbd></kbd>

        <acronym id='l54kp'><em id='l54kp'></em><td id='l54kp'><div id='l54kp'></div></td></acronym><address id='l54kp'><big id='l54kp'><big id='l54kp'></big><legend id='l54kp'></legend></big></address>

        <span id='l54kp'></span>
        <i id='l54kp'></i>

        <code id='l54kp'><strong id='l54kp'></strong></code>
      1. <ins id='l54kp'></ins>
            <i id='l54kp'><div id='l54kp'><ins id='l54kp'></ins></div></i>
            <fieldset id='l54kp'></fieldset>
          1. <dl id='l54kp'></dl>

            linux中多个cpu查看方法

            • 时间:
            • 浏览:3
            • 来源:124软件资讯网

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

                昔时我公司购置一台8cpu的AMD服务器  ,双核  ,其时看到cpu很壮观  ,16个cpu  。

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

                http://planet.admon.org/howto/about-cpu-the-logical-and-physical-cores/

                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"