Better HN
topnewbestaskshowjobs
Log inSign up

adammiribyan

210 karma · joined Aug 16, 2022 (4y ago) · 23 submissions

adam.miribyan@gmail.com
Submissions

1.

Show HN: Wide Events – Rails telemetry for agents and humans in a DB you own(github.com ↗)

4 points · by adammiribyan · 4mo ago · discuss

comment 8mo ago · link · parent

Not yet. Current design is run code, return result. Adding virtio-net to forks is on the roadmap. What's your use case that needs it?

comment 8mo ago · link · parent

Glad to see the approach validated at scale! I hadn't seen your blog posts until they were linked here, going to dig into the userfaultfd path. Would love to chat if you're open to it.

comment 8mo ago · link · parent

Great writeup, bookmarked. The fault storm point is interesting -- our forks are short-lived (execute and discard) so the working set is small, but for longer-running sandboxes that would absolutely be a problem.

comment 8mo ago · link · parent

Both. The engine is open source. You can self-host it on any Linux box with KVM. There's also a live API you can hit right now (curl example in the README). Building the managed service for teams that don't want to run their own infra.

comment 8mo ago · link · parent

1 vCPU per fork currently. Multi-vCPU is doable (per-vCPU state restore in a loop) but would multiply fork time.

On Firecracker version: tested with v1.12, but the vmstate parser auto-detects offsets rather than hardcoding them, so it should work across versions.

comment 8mo ago · link · parent

On tail latency: KVM VM creation is 99.5% of the fork cost - create_vm, create_irq_chip, create_vcpu, and restoring CPU state. The CoW mmap is ~4 microseconds regardless of load. P99 at 1000 concurrent is 1.3ms. The mmap CoW page faults during execution are handled transparently by the host kernel and don't contribute to fork latency.

On snapshot staleness: yes, forks inherit all internal state including RNG seeds. For dependency updates you rebuild the template (~15s). No incremental update - full re-snapshot, similar to rebuilding a Docker image.

On the memory number: 265KB is the fork overhead before any code runs. Under real workloads we measured 3.5MB for a trivial print(), ~27MB for numpy operations. But 93% of pages stay shared across forks via CoW. We measured 100 VMs each running numpy sharing 2.4GB of read-only pages with only 1.75MB private per VM. So the real comparison to E2B's ~128MB is more like 3-27MB depending on workload, with most of the runtime memory shared.

comment 8mo ago · link · parent

Exactly —- they skip the OS, we make it free to clone.

comment 8mo ago · link · parent

Agreed, cross-node is the hard next step. For now single-node density gets you surprisingly far. 1000 concurrent sandboxes on one $50 box. When we need multi-node, userfaultfd with remote page fetch is the likely path.

comment 8mo ago · link · parent

Good callout. We seed entropy before snapshot to unblock getrandom(), but forks still share CSPRNG state. The proper fix per Firecracker’s docs is RNDADDENTROPY + RNDRESEEDCRNG after each fork, plus reseeding userspace PRNGs like numpy separately. On the roadmap. https://github.com/firecracker-microvm/firecracker/blob/main...

comment 8mo ago · link · parent

CRIU is great for save/restore. The nice thing about CoW forking is it's cheap branching, not just checkpointing. You can clone a running state thousands of times at a few hundred KB each.

comment 8mo ago · link · parent

The API in the readme is live right now -- you can curl it. Plan is multi-region, custom templates with your own dependencies, and usage-based pricing. Email in my profile if you want early access.

comment 8mo ago · link · parent

Thanks! Yes, there's going to be a managed version.

comment 8mo ago · link · parent

Fair question. The fork engine itself is general purpose -- you could use it for anything that needs fast isolated execution. We say 'AI agents' because that's where the demand is right now. Every agent framework (LangChain, CrewAI, OpenAI Assistants) needs sandboxed code execution as a tool call, and the existing options (E2B, Daytona, Modal) all boot or restore a VM/container per execution. At sub-millisecond fork times, you can do things that aren't practical with 100-200ms startup: speculative parallel execution (fork 10 VMs, try 10 approaches, keep the best), treating code execution like a function call instead of an infrastructure decision, etc.

15.

Show HN: Zeroboot – sub-millisecond VM sandboxes using CoW memory forking(github.com ↗)

20 points · by adammiribyan · 8mo ago · 1 comment

16.

Show HN: Sub-millisecond VM sandboxes using CoW memory forking(github.com ↗)

311 points · by adammiribyan · 8mo ago · 72 comments

comment 10mo ago · link · parent

Cool website. I built Croft a few weeks ago — very similar.

https://api.trycroft.com/landing-draft

comment 1y ago · link · parent

Does OpenAI use Ory? I thought they’re using Auth0.

19.

Simple sabotage for software (2023)(erikbern.com ↗)

271 points · by adammiribyan · 2y ago · 75 comments

20.

The Git Parable: Making Your Own Simple Version of Git(practical-neuroimaging.github.io ↗)

3 points · by adammiribyan · 3y ago · discuss

comment 3y ago · link · parent

Their home page shows “Sorry, you have been blocked” and the status page is not event responding.

22.

Is Cloudflare down?(cloudflare.com ↗)

8 points · by adammiribyan · 3y ago · 7 comments