Google Compute Engine上的1个vCPU是否基本上是1个物理CPU内核的一半? [英] Is 1 vCPU on Google Compute Engine basically half of 1 physical CPU core?

查看:106
本文介绍了Google Compute Engine上的1个vCPU是否基本上是1个物理CPU内核的一半?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google的机器类型页面指出:

Google's Machine types page states that:

对于n1系列机器类型,虚拟CPU被实现为 2.6 GHz Intel Xeon E5(Sandy)上的单个硬件超线程 桥),2.5 GHz英特尔至强E5 v2(常春藤桥)...等

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内核显示为OS的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屋!

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