News for hackers. Stuff that matters.
Re:New Relic to open-source Pixie’s eBPF observability platform by thejonanshow on Thursday December 10, 2020 @11:37AM (#25375461)
I'm curious to hear people's thoughts on eBPF generally, it seems likely that this is where observability companies are headed. It's non-trivial to implement but monitoring from the kernel layer makes so much sense that I expect the tooling will come along quickly.
Re:New Relic to open-source Pixie’s eBPF observability platform by dan-buzzkill on Thursday December 10, 2020 @11:40AM (#25375487)
eBPF is great but it only works for linux and access to the kernel layer doesn't work for serverless environments, so it's definitely a piece of the puzzle but not a silver bullet IMO.
Re:New Relic to open-source Pixie’s eBPF observability platform by zasgar on Thursday December 10, 2020 @11:54AM (#25375639)
Co-founder/CEO of Pixie here.

eBPF is indeed a part of the puzzle. It allows us to access telemetry data without any manual instrumentation when running on Linux machines.

Pixie itself is extendable and currently ingests data from many other sources as well. Joining forces with New Relic will allow us to focus on expanding the open-source project, but also expand our capabilities by plugging into other open APIs and frameworks such as OpenTelemetry, Grafana, Prometheus.

Re:New Relic to open-source Pixie’s eBPF observability platform by pstuart on Thursday December 10, 2020 @05:18PM (#25379551)
I caught your presentation to GoSF a couple weeks ago -- it was very impressive and I'm looking forward to the opportunity to apply lessons learned from that.

https://github.com/pixie-labs/pixie/tree/main/demos/simple-g...

p.s. The slides would be nice to have too :-)

Re:New Relic to open-source Pixie’s eBPF observability platform by zasgar on Thursday December 10, 2020 @08:16PM (#25381127)
Re:New Relic to open-source Pixie’s eBPF observability platform by ed_elliott_asc on Friday December 11, 2020 @01:32AM (#25382992)
Hi,

Why do you need the kernel support if you modify the binaries, why not insert a function to write your logs and then insert a call to that function rather than relying on kernel support via an int 3?

Curious really.

Re:New Relic to open-source Pixie’s eBPF observability platform by serbrech on Friday December 11, 2020 @02:28AM (#25383297)
performance, plus lower level metrics that tell you about the health of the system/host, disregarding what software is running.
Re:New Relic to open-source Pixie’s eBPF observability platform by xiphias2 on Thursday December 10, 2020 @01:52PM (#25376996)
Is there any technical reason why it couldn't work with serverless?
Re:New Relic to open-source Pixie’s eBPF observability platform by yjftsjthsd-h on Thursday December 10, 2020 @02:29PM (#25377477)
Because serverless still needs to run on a machine, and that machine is typically at least one of 1. shared with other users, in which case giving you kernel access would be a security issue, or 2. ephemeral (firecracker VM or such) in which case eBPF is... technically possible, but not nearly as useful (you go from "this server has had X events of type Y over the last 24 hours" to "this VM had X events happen in the 590ms before it was destroyed").
Re:New Relic to open-source Pixie’s eBPF observability platform by xiphias2 on Thursday December 10, 2020 @05:49PM (#25379843)
I see, I thought it could be used for some simple thing, like a load balancer / proxy with a bit of logic in it, but I guess it's too constrainted to do something useful as a server
Re:New Relic to open-source Pixie’s eBPF observability platform by throwaway894345 on Thursday December 10, 2020 @11:50AM (#25375588)
What's the advantage of monitoring from the kernel layer? It's not jumping out at me...
Re:New Relic to open-source Pixie’s eBPF observability platform by lbotos on Thursday December 10, 2020 @05:22PM (#25379591)
At GitLab we've built and used strace-parser to help us get to quick and deep debugging, but running strace is EXPENSIVE: https://gitlab.com/gitlab-com/support/toolbox/strace-parser

We've been eagerly awaiting some customers to adopt newer kernels so we can start leveraging eBPF because of the performance gains in these type of scenarios.

Getting down the the kernel often can help find problems with disk access or network issues.

One of our staff engineers is exploring it now for NFS stats: https://gitlab.com/wchandler/tracing-tools/-/blob/master/nfs...

In Support Engineering we often straddle the line of 'SRE style stare at graphs and configuration as code' and 'log on to the box and look at syscalls'. We are very very excited about eBPF.

Re:New Relic to open-source Pixie’s eBPF observability platform by justicezyx on Thursday December 10, 2020 @06:45PM (#25380367)
Take a look at Pixie dynamic logging [1].

Deploys eBPF kprobes (based on bpftrace) and uprobe (based a custom front-end language) and instantly get rich data (arts, return value, latency), query data in a Pandas-like scripting language and visual dashboard.

[1] https://docs.pixielabs.ai/using-pixie/code-tracing/

Re:New Relic to open-source Pixie’s eBPF observability platform by justicezyx on Thursday December 10, 2020 @01:17PM (#25376591)
A few things:

* Non intrusive: meaning one can snoop info of application without changing application code.

* Deep visibility: function level and syscall/kernel functions reveal more context and are more accurate in a lot of cases.

* Low overhead: everything runs inside kernel space, no context switching compared to other kernel based/aided tracing.

* Expressiveness: eBPF is fairly expressive, can do many things that usually are exclusive to high level programming languages.

Re:New Relic to open-source Pixie’s eBPF observability platform by SEJeff on Thursday December 10, 2020 @12:13PM (#25375841)
Tracing from user to kernel back to userspace in one single pane of glass. Have you never heard anyone hype about DTrace on Solaris? This allows building similar things on production systems with little to no impact on running production applications.
Re:New Relic to open-source Pixie’s eBPF observability platform by 0xEFF on Thursday December 10, 2020 @03:04PM (#25377867)
dtrace has also been on macOS since 10.5, with a pretty nice GUI app as well. I’ve used it to trace ruby and python code to isolate slow API requests from the end user’s perspective.
Re:New Relic to open-source Pixie’s eBPF observability platform by colechristensen on Thursday December 10, 2020 @04:58PM (#25379312)
That sounds really interesting, do you have any references to share about macOS gui dtrace?
Re:New Relic to open-source Pixie’s eBPF observability platform by SEJeff on Friday December 11, 2020 @10:25AM (#25386749)
The app is called Instruments. Check it out at /Developer/Applications/Instruments

https://developer.apple.com/library/archive/documentation/An...

Re:New Relic to open-source Pixie’s eBPF observability platform by suthakamal on Thursday December 10, 2020 @01:18PM (#25376604)
hadn't thought of this like DTrace. Thx for that!
Re:New Relic to open-source Pixie’s eBPF observability platform by SEJeff on Thursday December 10, 2020 @02:40PM (#25377599)
Anytime! eBPF is Linux’s equivalent of DTrace
Re:New Relic to open-source Pixie’s eBPF observability platform by cyphar on Thursday December 10, 2020 @06:06PM (#25380017)
Strictly speaking, one of the uses of eBPF is a DTrace-like tracing tool but it's also used in quite a few other places (for instance it's also used for devices cgroup policy in cgroupv2).
Re:New Relic to open-source Pixie’s eBPF observability platform by SEJeff on Thursday December 10, 2020 @07:15PM (#25380661)
And filtering syscalls for seccomp or literally packet filtering. I believe Jens Axboe and team were looking at using eBPF for some of the low level IO subsystems.

But I was explaining the most common and obvious (for a user) use of eBPF.

They should just look at the io visor project to see some of the stuff that can be done with it (disclaimer, I work with one of the io visor maintainers)

Re:New Relic to open-source Pixie’s eBPF observability platform by seneca on Thursday December 10, 2020 @12:40PM (#25376191)
The kernel has a "god's eye view" of everything happening on its OS. With event based tracing in the kernel there's no chance of missing an occurrence because your sampling rate is too low, for example. You can also correlate and enrich data that just isn't available in userspace.
Re:New Relic to open-source Pixie’s eBPF observability platform by boston_sre87 on Thursday December 10, 2020 @08:09PM (#25381072)
It's extremely quick to do it there as well. Originally, bpf was created to replace tcpdump with a quicker less impactful alternative. People saw that it was a pretty neat alternative so they started extending it (the e in eBPF). Think they might have finally come round again and just call it BPF now again.
Re:New Relic to open-source Pixie’s eBPF observability platform by morelisp on Thursday December 10, 2020 @11:54AM (#25375644)
For hardware management maybe but so much of "observability" in general is at the application layer I can't see BPF displacing anything more than a tiny corner of it.

On the other hand - it already is overhauling service meshes, VPNs and firewalls and network security policies, etc. The stuff fly.io is debuting now is probably going to be standard in few years.

Re:New Relic to open-source Pixie’s eBPF observability platform by seneca on Thursday December 10, 2020 @12:42PM (#25376213)
Strongly disagree. BPF uprobes allow extremely fine grained tracing of userspace applications, and allow you to programmatically correlate them with kernel level information.
Re:New Relic to open-source Pixie’s eBPF observability platform by morelisp on Friday December 11, 2020 @06:37AM (#25384616)
Sure, but "fine-grained tracing" is itself such a small part of observability even if BPF takes over that entire part of the stack it's still nowhere near a complete observability story.

This is outside my area of expertise so maybe I'm just missing some deeper insight - and I can see where you're coming from for traditional "throw the artifact over the wall, good luck running it" system operations kind of stuff. Or debugging services in production, which tracing is a key part of - but again just a small part of observability, and one that the rest of your dev process should be actively trying to minimize. If you have any degree of DevOps going on, many key SLIs will much higher-level (p99 of HTTP requests, MB of storage per customer), and I don't see how eBPF addresses that better than existing instrumentation, or in some cases at all.

Re:New Relic to open-source Pixie’s eBPF observability platform by jeffbee on Thursday December 10, 2020 @02:53PM (#25377756)
Sure but it's also terribly expensive. Are you trying to give up 5-10% of your CPU time to observability?
Re:New Relic to open-source Pixie’s eBPF observability platform by krab on Thursday December 10, 2020 @03:40PM (#25378326)
Gladly, if it doesn't influence latency much and it is presented intelligently in terms of my high level code.
Re:New Relic to open-source Pixie’s eBPF observability platform by paulie_a on Thursday December 10, 2020 @03:19PM (#25378038)
Most CPUs are not hitting 100 percent anyways so what's a 10 percent loss?