TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to estimate disk space

28 点作者 lma21将近 3 年前

3 条评论

jrumbut将近 3 年前
For some reason I thought this article would be about how to estimate (free) disk space, with the problem being how to estimate (or know if possible) the available disk space using the least effort (or at least a fixed amount of effort).<p>I was expecting a deep dive into how different OSes handle storage and indexing, which file systems&#x2F;drive types make it easier or harder, the tradeoffs between truly random sampling versus a sampling scheme that takes into account typical drive fragmentation patterns and speed of access, and was very excited.<p>I&#x27;m hoping this comment will nerd snipe someone who likes to write.<p>Edit: to comment on the article, 2**10=1024 is handy to know so then 2**20 is about a million and 2**30 is about a billion. That then helps you estimate common log2 values which allows you estimate sorting, searching, and tree type structures that have some logarithmic aspect to their time or space complexity.
Upvoter33将近 3 年前
kibibyte, mebibyte, and gibibyte are terms I refuse to use, period.
评论 #32187282 未加载
评论 #32188201 未加载
评论 #32191246 未加载
johnthescott将近 3 年前
life is so much more simple when blobs are referenced by their digests.