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.

eBPF Documentary

220 pointsby JNRoweabout 1 year ago

11 comments

cyberaxabout 1 year ago
&quot;eBPF Documentary: An exciting train wreck in progress&quot;<p>That would be a better title. eBPF started as a small extension to just be able to insert small trivial hooks. It&#x27;s now basically a hacked-up broken WebAssembly clone, with zero forethought put into it. NIH syndrome at its worst.<p>It has recently grown unlimited loops with runtime metering, making the static verifier basically a worthless complexity. Before that, it had acquired exceptions and stack unwinding.
评论 #39665908 未加载
评论 #39665498 未加载
评论 #39666338 未加载
评论 #39722292 未加载
评论 #39666117 未加载
softirqabout 1 year ago
The genius of ebpf is allowing for pluggable policy in a world where the kernel API is very slow to change and can’t meet everyone’s needs. Whether it’s how the kernel handles packets off the wire, how it controls traffic, scheduling entities, or instrumentation, ebpf lets you provide logic rather than turn a bunch of knobs or use a bespoke syscall that only handles one case. It also moves the processing logic to the data in the kernel rather than having the kernel have to do expensive copies to and from userspace.<p>ebpf isn’t really novel beyond the interfaces it provides. They are just kernel modules that have been vetted and are sandboxed. Inserting executable code has been part of the kernel since forever in module form and kprobes.
评论 #39668280 未加载
评论 #39663588 未加载
xrdabout 1 year ago
I&#x27;ve been hearing more and more about eBPF, especially here on HN.<p>I haven&#x27;t yet watched the documentary so perhaps it is answered there. But, the analogy of JavaScript inside the kernel is great and I&#x27;m left wondering: what was the way to do it previously? Userland network tool? This standardizes on a interface to the kernel, not a language, right? Feels off to say it is JavaScript because that comes with a lot of baggage, but also (as a versatile and ubiquitous language) incredibly powerful and useful tool. Is that intentional by the author?
评论 #39663473 未加载
评论 #39664232 未加载
评论 #39664618 未加载
评论 #39664507 未加载
评论 #39678121 未加载
bchabout 1 year ago
I was a little disappointed DTrace[0] was not mentioned at all. The instrumentation (not the SDN) isn’t novel, not even to Linux (DTrace is available on Linux - I understand licensing is at least questionable (for some distros), but that aside…). [1]<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;DTrace" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;DTrace</a><p>[1] <a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;en&#x2F;operating-systems&#x2F;oracle-linux&#x2F;dtrace-tutorial&#x2F;dtrace-tutorial-IntroducingDTrace.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;en&#x2F;operating-systems&#x2F;oracle-linux&#x2F;dt...</a>
评论 #39663736 未加载
评论 #39666049 未加载
评论 #39663428 未加载
评论 #39666769 未加载
phendrenad2about 1 year ago
eBPF modules can be closed-source, right? I can see a future where things like ZFS are paid eBPF modules, or games ship with proprietary anti-cheat eBPF modules.
评论 #39673421 未加载
lexarflash8gabout 1 year ago
I saw the airing of it at Kubecon -- also met the Finnish guy there in the video. I mistook him for another Finnish guy with blond hair. Didn&#x27;t meet the Russian though.
bingleflipabout 1 year ago
It makes me wonder, what was the point of introducing Rust into the kernel when they already have eBPF?<p>Couldn&#x27;t they have just used the existing eBPF compiler for creating safe kernel code?<p>Maybe the distant future of the Linux kernel is for almost everything to compile down to eBPF bytecode except the part that runs the bytecode.
评论 #39668183 未加载
witxabout 1 year ago
ebpf seems to be a very interesting idea and have been experimenting with it. Still I find it weird that we&#x27;re doing documentaries on software &quot;frameworks&quot;
评论 #39667961 未加载
brcmthrowawayabout 1 year ago
Brendan Gregg will get a Turing Award for this, congrats!
评论 #39668223 未加载
James_Kabout 1 year ago
It has always seemed quite obvious to me that dealing in machine code is a flawed approach for distributing software. At the most basic level, it entails giving someone else near unfettered access to the hardware of your computer and simply hoping that they do nothing malicious or malformed. Yet the software world as a whole seems continually shocked at the idea of using anything else. Perhaps someday we will learn this lesson in its entirety and begin to share code rather than blobs.
评论 #39663572 未加载
评论 #39663748 未加载
评论 #39665516 未加载
评论 #39665499 未加载
评论 #39664277 未加载
bidandanswerabout 1 year ago
eBPF allows user-defined programs to run in the kernel.<p>This is huge for performance-sensitive code that executes against network packets: you don&#x27;t have to context switch between kernel space and user space.<p>It&#x27;s worth pointing out Solana&#x27;s extreme competitive advantage over other chains is almost entirely due to it running on a variant of eBPF. †<p>This is an order-of-magnitude leap over other implementations and essentially the way you should do it, if you were to write it from scratch, aside from special purpose hardware fabrication.<p>† The second reason Solana is so fast is extreme parallelism: all accounts that are used in a transaction must be marked as either &quot;read-only&quot; or &quot;writeable&quot; before sending the transaction, allowing the runtime to parallelize all reads and only solve write contention when necessary.
评论 #39678139 未加载