【问题标题】:What are the difference between M and Mi in Kubernetes resources documentation?Kubernetes 资源文档中的 M 和 Mi 有什么区别?
【发布时间】:2021-06-11 07:02:14
【问题描述】:

阅读 Kubernetes 文档:

https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

128974848, 129e6, 129M, 123Mi

这里的M和Mi有什么区别?

如果我想申请 128GB 的​​ RAM,正确的数字是多少 Mi? 128000米?谢谢!

【问题讨论】:

标签: kubernetes memory storage


【解决方案1】:

“MB”是metric unit,其中 1 MB = 106 B 和 1 GB = 109 B。

“MiB”是基于幂 2 的单位,其中 1 MiB = 10242 B = 1048576 B。

因此,128 GB = 128 · 109 B = 122070.3 MiB。

【讨论】:

  • 因为说起来很有趣,MiB 的发音是“mebibytes”✨
  • 谢谢。真的很有帮助!
猜你喜欢
  • 2017-10-20
  • 1970-01-01
  • 2016-02-15
  • 1970-01-01
  • 2018-02-20
  • 2019-02-17
  • 1970-01-01
  • 2019-03-05
  • 2010-11-10
相关资源
最近更新 更多