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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Dropping cache didn’t drop cache

175 点作者 r4um大约 4 年前

6 条评论

aetherspawn大约 4 年前
I know that Linus hates unit tests, but these kinds of scenarios are perfect for regression tests. The investigation of the issue took so long, that you'd really want to spend those extra few hours writing the test to save yourself investigation in the future. The patch doesn't include any comment about a race condition in the actual code, so let's assume that all the knowledge is more-or-less lost and forgotten in 12 months or so.
评论 #27095318 未加载
评论 #27093563 未加载
评论 #27093673 未加载
评论 #27093538 未加载
评论 #27094929 未加载
评论 #27094396 未加载
评论 #27093638 未加载
评论 #27093745 未加载
评论 #27093542 未加载
ketzo大约 4 年前
The saying I heard in my embedded programming class was:<p>“There are two hard things in programming: naming things, cache invalidation, and off-by-one-errors.”
aeyes大约 4 年前
I am amazed that Twitter employs kernel developers.
评论 #27094047 未加载
评论 #27093953 未加载
评论 #27093556 未加载
评论 #27096043 未加载
评论 #27093513 未加载
flakiness大约 4 年前
Great read, although I don&#x27;t think I have enough knowledge to fully appreciate the details of the article.<p>I had similar problem before, and I didn&#x27;t even notice that the cache was not cleared and had worked on pointless hypothesis until a coworker pointed out that there was a case where the kernel didn&#x27;t evict the page cache. It&#x27;s very hard to even detect that problem.<p>Twitter&#x27;s Engineering blog has several interesting posts recently btw. Kudos to them.
评论 #27093519 未加载
评论 #27098324 未加载
bboreham大约 4 年前
I tried to debug a very similar-sounding issue a couple of years back. Many GB used in dentrys, not shrinking when asked, no obvious cause.<p>Sadly I have no kernel hacking skills, don’t even know what a dentry is. Kudos to the author.
评论 #27100156 未加载
say_it_as_it_is大约 4 年前
How does a Linux kernel team prioritize work when it&#x27;s not investigating issues?
评论 #27096624 未加载