TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dropping cache didn’t drop cache

175 pointsby r4umabout 4 years ago

6 comments

aetherspawnabout 4 years ago
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 未加载
ketzoabout 4 years ago
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.”
aeyesabout 4 years ago
I am amazed that Twitter employs kernel developers.
评论 #27094047 未加载
评论 #27093953 未加载
评论 #27093556 未加载
评论 #27096043 未加载
评论 #27093513 未加载
flakinessabout 4 years ago
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 未加载
bborehamabout 4 years ago
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_isabout 4 years ago
How does a Linux kernel team prioritize work when it&#x27;s not investigating issues?
评论 #27096624 未加载