Azz on Nostr: Just “finished” first implementation of a simple ish memory allocator for ...
Just “finished” first implementation of a simple ish memory allocator for Starlight (Constellation’s server implementation). It’s designed to allocate packets directly as they come off the network card. Context: Constellation is a Bitcoin L3 I’m working on.
Fun fact: these packets are only copied in memory once in the entire transaction pipeline (raw pointers are involved 🥸).
29ns/packet means Slabocator9000 could allocate 400gbps of packets per CPU core. That’s only running allocation, so obv full throughput won’t hit that per core but it’s pretty damn fast.
It also reuses all memory and therefore will only use as much memory as it possibly needs.
Published at
2024-04-01 14:25:00Event JSON
{
"id": "f5c2601f6fed2329f1b3736bb5aec78637588511ffe8c90bfca2e9737545c06f",
"pubkey": "5a97e13df017eb826b0d240ef269e45727fb330a9925b1f8b18f0e10dc64857a",
"created_at": 1711981500,
"kind": 1,
"tags": [
[
"imeta",
"url https://image.nostr.build/aa59962506c8d0a5a47b17224f79a8f37b1e7396fb89779a9e68ffeb2efe0a5f.png",
"blurhash e14xrT~ooYt1s*~qnzRNs*xXIAVsxGxZs,a3%3$+sDninSRQV[jHs;",
"dim 1350x230"
],
[
"r",
"https://image.nostr.build/aa59962506c8d0a5a47b17224f79a8f37b1e7396fb89779a9e68ffeb2efe0a5f.png"
]
],
"content": "Just “finished” first implementation of a simple ish memory allocator for Starlight (Constellation’s server implementation). It’s designed to allocate packets directly as they come off the network card. Context: Constellation is a Bitcoin L3 I’m working on. \n\nFun fact: these packets are only copied in memory once in the entire transaction pipeline (raw pointers are involved 🥸). \n\n29ns/packet means Slabocator9000 could allocate 400gbps of packets per CPU core. That’s only running allocation, so obv full throughput won’t hit that per core but it’s pretty damn fast. \n\nIt also reuses all memory and therefore will only use as much memory as it possibly needs. https://image.nostr.build/aa59962506c8d0a5a47b17224f79a8f37b1e7396fb89779a9e68ffeb2efe0a5f.png ",
"sig": "291ddf321073dddde84377011d5f1e1ce7403c3d14288b2dded52e5bd7bd06671bab8f2fb2d26341eebad8d2e4c3c903f7ee1f1b259e813fa8b24d5dfb3bc04d"
}