Better HN
topnewbestaskshowjobs
Log inSign up

grantseltzer

56 karma · joined Dec 24, 2016 (9y ago) · 35 submissions

Submissions

comment 9mo ago · link · parent

https://rose.systems/animalist%0A%0A180%20animals%20listed%0...

comment 10mo ago · link · parent

I've played with bpf iterators and wrote a post about them [1]. The benefit of iterating over tasks instead of scanning procfs is a pretty astounding performance difference:

> I ran benchmarks on current code in the datadog-agent which reads the relevant data from procfs as described at the beginning of this post. I then implemented benchmarks for capturing the same data with bpf. The performance results were a major improvement.

> On a linux system with around 250 Procs it took the procfs implemention 5.45 ms vs 75.6 us for bpf (bpf is ~72x faster). On a linux system with around 10,000 Procs it took the procfs implemention ~296us vs 3ms for bpf (bpf is ~100x faster).

[1] https://www.grant.pizza/blog/bpf-iter/

comment 1y ago · link · parent

'Watch' isn't the correct word.

comment 1y ago · link · parent

Alive is a very high bar considering the alternative.

comment 1y ago · link · parent

Writing it in C, compiling with clang, and loading with either C(libbpf), Go (cilium/ebpf), or Rust (Aya).

You can also write bpf in rust with Aya but i'm not sure how feature complete it is.

For very simple use cases you can just bpftrace.

comment 1y ago · link · parent

bcc hasn't been relevant for years.

comment 1y ago · link · parent

> it's the resulting content that matters, not how it's presented

What a wild thing to say. If you had a coworker who was brilliant and taught you many great things, but only screamed instead of talking, would you feel the same way?

> If a person anthropomorphizes an LLM in their mind (rather than just in their speech patterns), then they probably have pre-existing mental problems.

Correct, and that's why these tools should be built responsibly under the assumption that people with mental problems are going to use them. It's clear in the article I linked (and my wording linking to it) that it can exacerbate issues for people. Chatgpt told him that he's sane and his mom was trying to kill him. He didn't understand what an LLM actually was.

comment 1y ago · link · parent

I'm not claiming the purpose of this prompt is to get better information. Yes, it's just a prompt.

You're asserting quite a lot of bias when you say "What most people want are useful results." Maybe in our circles of software engineers or lawyers, but many people are using AI for companionship. Even if they're not seeking companionship, unless you have a very clear understanding of how LLMs work, it's very easy to get caught up thinking that the chatbot you're talking to is "thinking" or "feeling". I feel companies that offer chatbots should be more responsible with this as it can be very dangerous.

9.

AI Shouldn't Have Personality(grant.pizza ↗)

4 points · by grantseltzer · 1y ago · 5 comments

10.

Replacing procfs with bpf(grant.pizza ↗)

4 points · by grantseltzer · 1y ago · discuss

11.

The Loudest Bird [video](youtube.com ↗)

2 points · by grantseltzer · 1y ago · discuss

comment 1y ago · link · parent

Excellent analysis and deduction!

13.

Building Go Stack Traces from BPF(grant.pizza ↗)

1 points · by grantseltzer · 2y ago · discuss

comment 2y ago · link · parent

Can someone with actual fundamental understanding of LLMs explain to me why they think it's perfectly legal to train models on copyrighted material? I don't know enough about this. Please don't answer by asking chatgpt.

comment 4y ago · link · parent

Now if only the rest of facebook would die

comment 5y ago · link · parent

Contrary to popular belief, you can get a quality education at programs that don't put you $200,000 in debt.

comment 5y ago · link · parent

If you want an actual project for this I use this one: https://github.com/knqyf263/pet

comment 5y ago · link · parent

What overhead are you worried about?

comment 6y ago · link · parent

I believe Cilium (ebpf based) is now default in kubernetes.

comment 6y ago · link · parent

Well clear your schedule, it's most commonly used interface is through it's python bindings (a library called BCC):

https://github.com/iovisor/bcc

comment 6y ago · link · parent

I don't see a reason to implement anything like this without using bpf.

comment 6y ago · link · parent

I wrote a blog post on cgroups a couple years ago that's still accurate and goes further into depth and gives workable examples of using them both inside and outside of containers: https://www.grant.pizza/blog/understanding-cgroups/

23.

Show HN: Dynamically trace Go programs using eBPF(github.com ↗)

2 points · by grantseltzer · 6y ago · discuss

12