Better HN
topnewbestaskshowjobs
Log inSign up

ben_s

1,225 karma · joined Jan 28, 2024 (2y ago) · 180 submissions

Submissions

comment 11mo ago · link · parent

Once you oversubscribe GPU memory, performance usually collapses. Frameworks like vLLM can explicitly offload things like the KV cache to CPU memory, but that's an application-level tradeoff, not transparent GPU virtual memory.

comment 11mo ago · link · parent

We didn't focus on vGPU and largely avoided it on purpose. Instead, we focused on whole-GPU and NVSwitch-partitioned passthrough (Shared NVSwitch Multitenancy Mode), which is a better fit for the workloads we care about.

comment 11mo ago · link · parent

In this article, we're primarily concerned with whole-GPU or multi-GPU partitions that preserve NVLink bandwidth, rather than finer-grained fractional sharing of a single GPU.

comment 11mo ago · link · parent

We haven't looked deeply at inter-machine communication yet. NVLink/NVSwitch (which this post focuses on) are intra-node, so InfiniBand is mostly orthogonal I think and comes down to NIC passthrough, NUMA/PCIe placement, and validating RDMA inside the VM.

comment 11mo ago · link · parent

Thanks for the comment! You're right that a lot of the mechanics apply more generally. On point (3) specifically: we handle this by allocating at the IOMMU-group level rather than individual devices. Our allocator selects an IOMMU group and passes through all devices in that group (e.g., GPU video + audio), which avoids the partial-passthrough wonkiness you mentioned. For reference: https://github.com/ubicloud/ubicloud/blob/main/scheduling/al...

comment 11mo ago · link · parent

Fabric Manager itself is not open source. It's NVIDIA-provided software, and today it's required to bring up and manage the NVLink/NVSwitch fabric on HGX systems. What we meant by "open" is that everything around it - the hypervisor, our control plane logic, partition selection, host configuration, etc. - is implemented in the open and available in our repos. You're right that this isn't a fully open GPU stack.

On isolation: in Shared NVSwitch Multitenancy mode, isolation is enforced at multiple layers. Fabric Manager programs the NVSwitch routing tables so GPUs in different partitions cannot exchange NVLink traffic, and each VM receives exclusive ownership of its assigned GPUs via VFIO passthrough. Large providers apply additional hardening and operational controls beyond what we describe here. We're not claiming this is equivalent to AWS's internal threat model, but it does rely on NVIDIA's documented isolation mechanisms.

comment 11mo ago · link · parent

Thanks! I haven't looked deeply into slicing up a single GPU. My understanding is that vGPU (which we briefly mention in the post) can partition memory but time-shares compute, while MIG is the only mechanism that provides partitioning of both SMs and memory bandwidth within a single GPU.

comment 11mo ago · link · parent

(author of the blog post here)

For me, the hardest part was virtualizing GPUs with NVLink in the mix. It complicates isolation while trying to preserve performance.

AMA if you want to dig into any of the details.

9.

Virtualizing Nvidia HGX B200 GPUs with Open Source(ubicloud.com ↗)

116 points · by ben_s · 11mo ago · 28 comments

10.

Fifty problems with standard web APIs in 2025(zerotrickpony.com ↗)

2 points · by ben_s · 11mo ago · discuss

11.

These Aren't the Tools You're Looking For: The Hidden Dangers of MCP(ainativedev.io ↗)

1 points · by ben_s · 11mo ago · discuss

12.

How to review AI generated PRs(thoughtbot.com ↗)

1 points · by ben_s · 11mo ago · 1 comment

13.

Snowflake: Building a Data Cloud(medium.com ↗)

1 points · by ben_s · 2y ago · discuss

14.

Finding Stuff in the Terminal(flakm.com ↗)

1 points · by ben_s · 2y ago · discuss

15.

The What, Why and How of Containers(annwan.me ↗)

226 points · by ben_s · 2y ago · 128 comments

16.

PostgreSQL Heap-Only-Tuple or Hot Update Optimization(vladmihalcea.com ↗)

1 points · by ben_s · 2y ago · discuss

17.

KeepYourMouthShut – A Python program to auto-generate Podcasts(github.com ↗)

2 points · by ben_s · 2y ago · discuss

18.

Container Loading in AWS Lambda(brooker.co.za ↗)

2 points · by ben_s · 2y ago · discuss

19.

Equations That Changed the World – Rewritten in JavaScript(runjs.app ↗)

3 points · by ben_s · 2y ago · discuss

20.

Logging: The Unsung Hero in Developer Security – Here's Why and How(withstandsecurity.com ↗)

5 points · by ben_s · 2y ago · discuss

21.

CloudZip: List/read from remote zip files without downloading them(github.com ↗)

2 points · by ben_s · 2y ago · discuss

22.

Exploring Gleam with Genetic Algorithms(silasmarvin.dev ↗)

1 points · by ben_s · 2y ago · discuss

23.

DuckDB Walks to the Beat of Its Own Analytics Drum(datanami.com ↗)

2 points · by ben_s · 2y ago · discuss

24.

The Tragic Race Condition(codereliant.io ↗)

1 points · by ben_s · 2y ago · discuss

25.

How to keep your product alive: poor man's SRE(pixeljets.com ↗)

2 points · by ben_s · 2y ago · discuss

123456