Google Compute Engine 上的 1 个 vCPU 基本上是 1 个物理 CPU 核心的一半吗? [英] Is 1 vCPU on Google Compute Engine basically half of 1 physical CPU core?
问题描述
Google 的机器类型页面指出:
Google's Machine types page states that:
对于n1系列机器类型,虚拟CPU实现为2.6 GHz Intel Xeon E5 (SandyBridge)、2.5 GHz Intel Xeon E5 v2 (Ivy Bridge)...等
For the n1 series of machine types, a virtual CPU is implemented as a single hardware hyper-thread on a 2.6 GHz Intel Xeon E5 (Sandy Bridge), 2.5 GHz Intel Xeon E5 v2 (Ivy Bridge)...etc
假设 单个物理具有超线程的 CPU 内核在操作系统中表现为两个逻辑 CPU,那么如果将 n1-standard-2 机器描述为 2 个虚拟 CPU 和 7.5 GB 内存,那么这实质上意味着 1 个 CPU 内核,对吗?
Assuming that a single physical CPU core with hyper-threading appears as two logical CPUs to an operating system, then if the n1-standard-2 machine that is described as 2 virtual CPUs and 7.5 GB of memory, then this essentially means 1 CPU core, right?
因此,如果我尝试 遵循推荐 2 个 CPU 内核的 InfluxDB 实例的硬件建议,那么我应该瞄准具有 4vCPU 的 Google Compute Engine 机器,对吗?
So if I'm trying to follow hardware recommendations for an InfluxDB instance that recommends 2 CPU cores, then I should aim for a Google Compute Engine machine that has 4vCPUs, correct?
推荐答案
通常,当软件告诉您他们需要多少个内核时,他们不会考虑超线程.请记住,直到最近,AMD 甚至还没有(超线程).所以 2 个内核意味着 2 个 vCPU.是的,单个 HT CPU 内核在操作系统中显示为 2 个 CPU,但并不完全像 2 个真正独立的 CPU 内核那样运行.
Typically when software tells you how many cores they need they don't take hyper-threading into account. Remember, AMD didn't even have that (Hyper-Threading) until very recently. So 2 cores means 2 vCPUs. Yes, a single HT CPU core shows up as 2 CPUs to the OS, but does NOT quite perform as 2 truly independent CPU cores.
这篇关于Google Compute Engine 上的 1 个 vCPU 基本上是 1 个物理 CPU 核心的一半吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!