zoukankan      html  css  js  c++  java
  • F800上的CPU有多少个core?

    本来想看看F800的一个节点上,每个core的cpu的使用情况。使用下面的命令,可以进行查看:

    top –P


    从命令输出来看,好像是有32个core嘛。

    image


    使用下面的命令可以看到具体的CPU的信息。

    dmidecode

    image


    明明写的是16个core啊,但是注意, thread count是32. 这是怎么回事呢?

    因为CPU使用一种叫做Hyper-threading (Hyper-Threading Technology, HTT)的技术。维基百科介绍如下:

    For each processor core that is physically present, the operating system addresses two virtual (logical) cores and shares the workload between them when possible. The main function of hyper-threading is to increase the number of independent instructions in the pipeline; it takes advantage of superscalar architecture, in which multiple instructions operate on separate data in parallel. With HTT, one physical core appears as two processors to the operating system, allowing concurrent scheduling of two processes per core. In addition, two or more processes can use the same resources: if resources for one process are not available, then another process can continue if its resources are available.


    使用HTT技术之后,一个物理的core在操作系统中会展现为两个processor,所以我们就看到了F800的top -P命令输出里的32个CPU了。


    参考资料

    ==============

    Hyper-threading

    https://en.wikipedia.org/wiki/Hyper-threading

  • 相关阅读:
    tensorflow模型保存和使用08
    LSTM最基本的应用(07-3)
    手写数字识别-卷积神经网络cnn(06-2)
    python面向对象笔记
    attention机制
    dockerfile
    docker入门
    CentOS7安装Oracle11gR2
    anaconda常用的命令
    python xlrd处理表格常用方法
  • 原文地址:https://www.cnblogs.com/awpatp/p/9055166.html
Copyright © 2011-2022 走看看