isno / theByteBook

⭐ 【开源书籍】深入讲解内核网络、Kubernetes、ServiceMesh、容器等云原生相关技术。经历实践检验的 DevOps、SRE指南。如发现错误,谢谢提issue

Home Page:https://www.thebyte.com.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

笔误:Mebibyte 和 Megabyte 的区分

mikck opened this issue · comments

commented

注意 Mebibyte 和 Megabyte 的区分,123 Mi = 123*1204*1204B = 129 M,123 M 等于 1*1000*1000字节,所以 1M < 1Mi,显然使用带这个小 i 的更准确。

https://www.thebyte.com.cn/container/resource-limit.html#%E8%B5%84%E6%BA%90%E8%B0%83%E5%BA%A6

Mi 应该是123 Mi = 123 * 1024 * 1024B = 129 M吧

commented

我看了好久才发现原来是 1024 写成了 1204,谢谢提醒。