不同CPU AMD/Intel上的物理核心和逻辑核心 [英] Physical core and Logical cores on diffrent cpu AMD/Intel

查看:534
本文介绍了不同CPU AMD/Intel上的物理核心和逻辑核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能确认例如Intel I3 CPU有2个物理核心和4个逻辑核心,所以如果我将Process Afinity设置为Core#0,则意味着我将第一个物理核心设置为1个逻辑核心,但是如果我将核心设置为#1,这意味着我在第一个物理核心1 HyperThreading核心

Can anyone confirm that for example Intel I3 CPU has 2 physical cores and 4 logical cores, so if I set Process afinity to Core #0 so that means I set on first physical cores 1 logical core, but if I set on Core #1 so it means I set on first physical core 1 HyperThreading core,

但是AMD CPU怎么样,因为它们有至少我在互联网上读到的模块",

but how about AMD CPU since they got somekind of "modules" atleast what I read on internet,

如何使用AMD CPUS?

how to work with amd cpus?

intel总是有这个物理核心包含1个逻辑和1个HT核心吗?

And does intel ALWAYS has this come physical core contains 1 logical and 1 HT core?

AMD物理核心组合怎么样?

How about AMD physical core combo?

推荐答案

某些Intel CPU已禁用超线程,例如四核i5 CPU通常禁用HT.例如 Skylake台式机芯片上装有4c8t(4核/8线程) i7型号,i5芯片上的4c4t(不带HT的四核)和i3芯片上的2c4t(带HT的双核).

Some Intel CPUs have hyperthreading disabled, e.g. quad core i5 CPUs usually have HT disabled. e.g. Skylake desktop chips have 4c8t (4 cores / 8 threads) on the i7 models, 4c4t on the i5 chips (quad core without HT), and 2c4t on the i3 chips (dual core with HT).

超线程仅使用多核/多路SMP系统引导和发现CPU的现有方式.支持HT的OS必须检查每个CPU的物理ID,以查明它们中的哪个与另一个逻辑CPU共享一个物理核心.

Hyperthreading just uses the already-existing way that multi-core / multi-socket SMP systems boot and discover CPUs. An HT-aware OS has to check the physical ID of each CPU to find out which if any of them share a physical core with which other logical CPU.

如果在BIOS中禁用了HT,则系统仅表示每个物理内核具有一个CPU,而不是2(在Xeon Phi中为4).

If you disable HT in the BIOS, the system only presents itself as having one CPU per physical core, instead of 2. (Or 4 in Xeon Phi).

从逻辑核心到物理核心的映射未标准化.

在我的SKL台式机上(华硕Z170 Pro Gaming主板中的i7-6700k),Linux将我的内核检测为:

On my SKL desktop (i7-6700k in an Asus Z170 Pro Gaming mobo), Linux detects my cores as:

log   phys
 0     0
 1     1
 2     2
 3     3
 4     0
 5     1
 6     2
 7     3

但是在Haswell笔记本电脑上,是

But on a Haswell laptop, it was

log   phys
 0     0
 1     0
 2     1
 3     1

IDK(如果有系统具有怪异的逻辑->物理映射);我认为要么包装

IDK if any system have weirder logical->physical mappings; I think either wrapping

但是AMD CPU怎么样呢,因为它们至少有一些我在互联网上阅读的模块"

but how about AMD CPU since they got somekind of "modules" atleast what I read on internet

推土机家族使用成对的弱整数内核共享SIMD/FPU单元和某些缓存,并将其称为集群".这对单线程工作负载不是很好(因为两个整数内核之一处于空闲状态),但是当有足够多的线程来使所有内核保持繁忙时,影响比英特尔的HT好.

Bulldozer-family uses pairs of weak integer cores sharing a SIMD / FPU unit and some cache, and calls that a "cluster". It's not good for single-threaded workloads (because one of the two integer cores sits idle), but more effecting than Intel's HT when there are enough threads to keep all the cores busy.

Ryzen是一种细粒度的 SMT(同步多线程)架构(通用CPU- HT的架构术语)与英特尔非常相似,但是拥有更广泛的渠道.

Ryzen is a fine-grained SMT (Simultaneous Multithreading) architecture (the generic CPU-architecture term for what HT is) that's very much like Intel's, but with an even wider pipeline.

Ryzen将其核心组织为4个集群,这些集群共享一个L3缓存( https://www.reddit.com/r/hardware/comments/6s1m80/why_did_amd_design_ryzen_as_2_quadcore_ccxs/).两个或多个CCX内核集群之间存在互连. 这与SMT无关.

Ryzen organizes its cores into clusters of 4 which share an L3 cache (https://www.reddit.com/r/hardware/comments/6s1m80/why_did_amd_design_ryzen_as_2_quadcore_ccxs/). There's an interconnect between two or more CCX clusters of cores. This is unrelated to SMT.

这篇关于不同CPU AMD/Intel上的物理核心和逻辑核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆