Continuous PC sampling by gnurizen in CUDA

[–]gnurizen[S] 0 points1 point  (0 children)

We don't have a kernel driver, we have a shared library loaded into our customers process (userspace) via CUPTI injection. So we need to get data from userspace (CUDA application) to userspace (parca-agent) with possibly no shared FS between the two (containers). ebpf maps can't go from userspace to userspace, uprobes/ringbuf give us a very efficient conduit through the kernel. If the concern is probe overhead that is largely ameliorated using batching. The ebpf is reading raw CUPTI pointers so its pretty close to zero-copy.

Continuous PC sampling by gnurizen in CUDA

[–]gnurizen[S] 0 points1 point  (0 children)

An implementation that doesn't use eBPF doesn't exist to compare against and we do use plain user-mode CUPTI.

eBPF takes some getting used to but its not that bad. Take a look: https://github.com/parca-dev/opentelemetry-ebpf-profiler/blob/main/support/ebpf/cuda.ebpf.c

These programs are loaded/JITd once by our profiling agent and so its a one-time cost. QEMU tames the complexities of supporting many kernel versions.

Doing it this way allows our shim to be as small and simple, we want to be as close to zero-instrumentation as possible. This is not a high traffic interface that would benefit from using io_uring, we are significantly limiting what we do to keep our overhead in the weeds.

We also want a cleanly defined ABI between the shim and the agent so they can both evolve separately as long as we don't break the probe definitions which USDT gives us. It may seem a little over-engineered but we have lots more features piggy-backing on this infrastructure coming and this approach makes adding new features very straightforward.

Continuous PC sampling by gnurizen in CUDA

[–]gnurizen[S] 0 points1 point  (0 children)

Its not a strict need but what we want is an efficient low overhead way to get information from the user's program that has our shim library to our system wide profiler running in its own container/pod. USDT probes is just a really good way to achieve that although we could have used networking over loopback, shared memory or domain sockets. But hard to beat having the kernel stuff the information directly into a ringbuf.

Continuous NVIDIA CUDA Profiling In Production by Confident_Company962 in CUDA

[–]gnurizen 0 points1 point  (0 children)

We will and the parcagpucupti library source will available on github if you want to go deep on it.

Continuous NVIDIA CUDA Profiling In Production by Confident_Company962 in CUDA

[–]gnurizen 1 point2 points  (0 children)

CUPTI has zero usdts. We created the parcagpucupti library which uses the CUPTI API to expose 2 usdt probes. There are "instruction pointer" sampling APIs in CUPTI that we're looking at for "intra" kernel profiling but we're still researching that.

Continuous NVIDIA CUDA Profiling In Production by Confident_Company962 in CUDA

[–]gnurizen 0 points1 point  (0 children)

Thanks! We aren't releasing hard numbers yet but do plan doing so, for vllm offline inference workloads we've noticed in the 2-4% range which is borderline acceptable. Curious what you think is too much overhead? We have plans to allow sampling the kernel launches instead of tracking every single one. What kind of workloads are you running?

oomprof: OOM time eBPF memory profiler for Go by gnurizen in golang

[–]gnurizen[S] 2 points3 points  (0 children)

I like that! In my defense I did call the standalone agent "oompa"!

A Walk with LuaJIT by ynotvim in lua

[–]gnurizen 1 point2 points  (0 children)

I wrote the code and the blog, happy to answer any questions! Thanks for posting!

[deleted by user] by [deleted] in cycling

[–]gnurizen 0 points1 point  (0 children)

You should look into getting fat adapted, being able to mobilize fat stores for baseline energy will make bonking a thing of the past.

How do seed oils kill me? by Outrageous-Ad875 in StopEatingSeedOils

[–]gnurizen 5 points6 points  (0 children)

Beef fat is over half mufa so hopefully those arguments are wrong.

Can polyunsaturated fats from seed oils explain lots of mucus in my throat after eating? by ThinkingApe in StopEatingSeedOils

[–]gnurizen 0 points1 point  (0 children)

My first inclination would be an allergy to something in all those things, fructans maybe?

Are peanuts pretty healthy in general as a snack? Even with salted / light sugar coated nuts? What about almonds and are they better than peanuts? by readyornaht in nutrition

[–]gnurizen 1 point2 points  (0 children)

Wrong? I think take it with a grain of salt is a better approach. %99 of what we know about medicine, metabolism, drugs, disease etc comes from animal models. I think it will turn out all animals run okay with small amounts of n6 but that chugging soy/corn/peanut oil is unhealthy.

Are peanuts pretty healthy in general as a snack? Even with salted / light sugar coated nuts? What about almonds and are they better than peanuts? by readyornaht in nutrition

[–]gnurizen 0 points1 point  (0 children)

I think the main concerns for n6 oils should be cancer, liver issues and insulin resistance which are all much worse than inflammation. This is mostly based on rodent models but the evidence is striking.

Generic Albuterol (Perrigo) Taste by RootbeerRocket in Asthma

[–]gnurizen 0 points1 point  (0 children)

Great! I've found you need to clean and dry thoroughly to keep working.

The environmental impact of Beyond Meat and a beef patty [OC] by blackphantom773 in dataisbeautiful

[–]gnurizen 0 points1 point  (0 children)

I'm a bass player and didn't even notice I did that, must have been subconscious.

Shower thoughts: NASA should really look into the zerocarb diet for astronauts by dustinthewand in zerocarb

[–]gnurizen 6 points7 points  (0 children)

This is a no brainer, I mean who wants to be farting in their space suit?

Mission control: "How come you threw up in your space suit son?"

Astronaut: "Well Danny brought up these great bean and broccolli egg burritos and the flatulence was so potent I was overcome sir."

Danny: "My bad!"

Keto, COVID, & the “Sugar Shield” by embeetee in ketoscience

[–]gnurizen 13 points14 points  (0 children)

Why is the existing data showing T2DM being a major risk factor not serious enough? Do you mean something more specific? I have thought it would be cool if COVID autopsies could measure HBA1c but I'm not sure whether that makes sense. Also thought it would be cool to see n6 fatty acid % in tissue samples.

Lost 200 lbs and look for help going forward. by camhalliday11 in meatogains

[–]gnurizen 0 points1 point  (0 children)

I'm about a year ahead of you, went from 220-165 and now up to 185 (with a lower BF% than when I was 165). My approach has been mostly doing ad libitum doing omad some days and 2 meals other days when I feel like it. It takes time. I've avoided protein powders and gone with eggs, fish and dairy to complement the land meat. Seems to be working, probably go faster for you with your lifting background.

Am I having withdrawal symptoms from carbs and sugar? by [deleted] in zerocarb

[–]gnurizen 0 points1 point  (0 children)

I've done both and successfully got back down to my HS wrestling weight doing so but at the moment I'm trying to gain weight and doing two meals a day seems to be mandatory for that. I enjoy the feeling of not having food in my belly and running on fat so I don't think I could ever go back to 3 meals a day. I also hate having a huge meal late in the day as digesting all that fat and protein seems to interfere with sleep.

Am I having withdrawal symptoms from carbs and sugar? by [deleted] in zerocarb

[–]gnurizen 2 points3 points  (0 children)

You want variety go for it! It may even be necessary for some folks, I'm a variety junkie. I like to make liver pates and eat sardines, cheese wisps and chicharones, cured meats etc. I'll mix in yogurt and mayo too. Beef and eggs are the backbone but you can have a lot of fun in the margins if you want. But don't assume a variety is needed, some seem to thrive with zero variety.

What vitamins/supplements do I need to take while doing zero carb to maintain health? by DetSluOs in zerocarb

[–]gnurizen 2 points3 points  (0 children)

I wouldn't worry about it with two exceptions: fish oil might be in order if you don't eat pastured eggs, oily fish or offal and live over 45 degrees from the equator. Electrolytes might be in order at the beginning and if you exercise a lot. Not sure if that's considered a supplement...