惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
T
The Exploit Database - CXSecurity.com
Cyberwarzone
Cyberwarzone
C
CXSECURITY Database RSS Feed - CXSecurity.com
E
Exploit-DB.com RSS Feed
S
Security @ Cisco Blogs
Scott Helme
Scott Helme
H
Hacker News: Front Page
I
Intezer
N
News and Events Feed by Topic
V
V2EX - 技术
L
LINUX DO - 热门话题
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LINUX DO - 最新话题
K
Kaspersky official blog
S
Securelist
Latest news
Latest news
P
Proofpoint News Feed
C
Cisco Blogs
T
Troy Hunt's Blog
The Register - Security
The Register - Security
V
Vulnerabilities – Threatpost
T
Threat Research - Cisco Blogs
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
B
Blog RSS Feed
小众软件
小众软件
T
Tenable Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
SecWiki News
SecWiki News
Jina AI
Jina AI
Know Your Adversary
Know Your Adversary
Recorded Future
Recorded Future
Google Online Security Blog
Google Online Security Blog
D
Docker
W
WeLiveSecurity
Attack and Defense Labs
Attack and Defense Labs
T
Tor Project blog
A
About on SuperTechFans
U
Unit 42
S
Security Archives - TechRepublic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
O
OpenAI News
NISL@THU
NISL@THU
雷峰网
雷峰网
Vercel News
Vercel News
AWS News Blog
AWS News Blog
L
Lohrmann on Cybersecurity
Google DeepMind News
Google DeepMind News

LWN.net comments

Editing session recording as a throttling mechanism [LWN.net] Editing session recording as a throttling mechanism [LWN.net] Revealing [LWN.net] Editing session recording as a throttling mechanism [LWN.net] Nonsense [LWN.net] Revealing [LWN.net] Nonsense Surprising [LWN.net] Editing session recording as a throttling mechanism [LWN.net] Revealing [LWN.net] Recording? [LWN.net] tier support exist already in a fashion [LWN.net] Recording? [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] This isn't just anti-ai, it's also anti-gui [LWN.net] Nonsense [LWN.net] Revealing [LWN.net] This is bananas. [LWN.net] Nonsense [LWN.net] Just 12 vulnerabilities? [LWN.net] Nonsense [LWN.net] This isn't just anti-ai, it's also anti-gui [LWN.net] Surprising What if you just use AI to explore? Surprising [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] Revealing [LWN.net] Power trip? [LWN.net] Categorically no. [LWN.net] Editing session recording as a throttling mechanism [LWN.net] Nonsense [LWN.net] Nonsense [LWN.net] Surprising [LWN.net] Surprising [LWN.net] This is bananas. [LWN.net] Nonsense [LWN.net] This isn't just anti-ai, it's also anti-gui [LWN.net] Revealing [LWN.net] Nonsense [LWN.net] Just 12 vulnerabilities? [LWN.net] Nonsense [LWN.net] Editing session recording as a throttling mechanism [LWN.net] Privacy [LWN.net] Surprising [LWN.net] Speedruns do require this [LWN.net] Nonsense [LWN.net] Loss of words Nonsense [LWN.net] This isn't just anti-ai, it's also anti-gui [LWN.net] This seems unwieldy [LWN.net] Proprietary vs open source models [LWN.net] This seems unwieldy [LWN.net] Revealing [LWN.net] Surprising [LWN.net] Just 12 vulnerabilities? [LWN.net] Just 12 vulnerabilities? [LWN.net] Revealing [LWN.net] Revealing [LWN.net] Just 12 vulnerabilities? [LWN.net] Revealing [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Revealing [LWN.net] Generate assembly language directly with -S [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Deriving Documentation and Specifications [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Good, bad and probabilistic [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Proprietary vs open source models [LWN.net] Surprising [LWN.net] "Tokens per second" may not be the measure you think it is. [LWN.net] Surprising [LWN.net] Surprising [LWN.net] Surprising [LWN.net] Fundriser there [LWN.net] With hindsight, it was a code smell anyway [LWN.net] Shift in public's attitude [LWN.net] Thought I was the only one [LWN.net] Generate assembly language directly with -S [LWN.net] Opposite of -stable maintainers requests? [LWN.net] Thought I was the only one [LWN.net] Thought I was the only one [LWN.net] Thought I was the only one [LWN.net]
Data structures and overhead [LWN.net]
firstyear · 2026-05-28 · via LWN.net comments

> The second way to solve the problem is application-level caching, which has downsides of its own, including duplicating the caching done by the page cache.

It's like anything - it depends. But I don't think application caching inherently has as many downsides as presented. Application caching has the benefit of being application and context aware about behaviour, but also likely keeping the cache in a more friendly format in memory for the application.

It's one thing to have DB pages in the FS cache, but it's another to have a deserialised struct in your application cache ready to go. If an application relied purely on FS cache, now you have to either deserialise those cache pages each operation when you read them, or you need to map your application memory structures in a way that requires binary level compatibility with what's in the FS cache to avoid a deserialise step (think mmap writing raw c structs). This has a lot of trades that application level caching simply avoids.

But the bigger reason to avoid the FS cache - memory pressure. The moment there is memory pressure, FS cache is going to be squeezed and evicted first before anything else. This leaves you far more vulnerable to fluctuations in performance if the application is on a resource contended host. This is commonly seen with k8s/docker where you may have single host with many applications. If one container relies on FS cache, and another on application cache, then we know which will be placed under cache eviction pressure first.

As an interesting upside though, if you use application cache and there is memory pressure then your own application cache may end up swapped out itself. As a result you end up with the benefits of application caching, but also the kernel able to swap in/out pages as needed when under demand, without the risks of premature eviction by relying on the FS cache. There are helpful cgroup limits too that can define how much swap you can use here in this situation as well.

So while the FS cache is extremely valuable and useful, it has a time and place to shine, but application level caching will likely always outperform the FS cache due to awareness of the use case.