News Score: Score the News, Sort the News, Rewrite the Headlines

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

My brother and I spent a lot of time designing our eBPF security agent to be really fast from the ground up, but recently we discovered we could make it much faster using memoization!A couple of weeks ago, I profiled the eBPF code and found that the most expensive part of the protection isn’t actually enforcing a policy (allow/deny), but figuring out which policy applies to a given file open.Our policies are path based, so our eBPF leverages an LSM hook that triggers on file open. We then recons...

Read more at nathannaveen.dev

© News Score  score the news, sort the news, rewrite the headlines