logoalt Hacker News

Dropping eBPF CPU Cost by About 90% with Memoization (Not AI Gen)

49 pointsby nathannaveenyesterday at 2:29 PM15 commentsview on HN

Comments

danudeyyesterday at 11:03 PM

Very confused by the article. Is memoization new to the eBPF world? Did the author only just learn about it and wanted to use it?

In reality, the article is about correctly caching a path:policy mapping while working within the limitations of eBPF and Linux filesystem semantics. If you read the article in that context rather than wondering 'what is new and interesting about memoization in eBPF?' it's a lot more interesting.

I probably would have titled this 'Calculating cache keys for filesystem paths in eBPF' or something, since that's the cool and interesting problem that was solved.

show 1 reply
mrbluecoatyesterday at 10:59 PM

So you highlight "Not AI Gen" but you call the solution "Agent"? :D

show 1 reply
bawolfftoday at 1:49 AM

Umm, wouldn't this break if you moved a directory that is somewhere up the path? Seems like a security issue if you cache what policy applies but the policy could change by user action.

show 1 reply
nirmeetimthebestoday at 3:24 AM

[dead]

asdfman123today at 12:16 AM

I don't know what any of these acronyms mean. With just a little more explanation the article could be accessible to a wider developer audience.

show 3 replies