Agent skill · software engineering · aradotso
tailslayer-dram-hedged-reads
C++ library for reducing tail latency in RAM reads by hedging across multiple DRAM channels with uncorrelated refresh schedules
Why this skill is useful
Adds a C++ library that provides executable code for reducing tail latency in RAM reads through hedged memory access across multiple DRAM channels.
What it needs
Requires git, make installed locally. About 5k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
Tailslayer — DRAM Hedged Read Library Skill by ara.so — Daily 2026 Skills collection. Tailslayer is a C++ library that reduces tail latency in RAM reads caused by DRAM refresh stalls. It replicates data across multiple independent DRAM channels with uncorrelated refresh schedules, issues hedged reads across all replicas simultaneously, and returns whichever result responds first — eliminating worst-case stall spikes from DRAM refresh cycles. Works on AMD, Intel, and AWS Graviton using undocumented channel scrambling offsets. --- How It Works Data is replicated N times, each copy placed on a different DRAM channel Each replica is monitored by a worker pinned to a separate CPU core When a read is triggered (via your signal function), all replicas are read simultaneously Whichever channel responds first wins; the result is passed to your work function DRAM refresh on one channel cannot stall all channels simultaneously → tail latency is eliminated --- Installation Copy the header into your project Include in your code Build the provided example --- Key API tailslayer::HedgedReader<T, SignalFn, WorkFn, SignalArgs, WorkArgs> Template parameters: Parameter Description --- --- T Value type stored and read SignalFn Function that waits for a trigger and returns the index to read WorkFn Function called with the value immediately after read SignalArgs (optional) tailslayer::ArgList<...> of compile-time args to signal function WorkArgs (optional) tailslayer::ArgList<...> of compile-time args to work function Constructor optional parameters Methods Utilities --- Minimal Usage Pattern --- Passing Arguments to Signal and Work Functions Use tailslayer::ArgList<...> to pass compile-time integer arguments: --- Custom Channel Configuration Override channel offset, channel bit, and replica count in the constructor: Note: N-way (more than 2 replicas) hedging requires using the benchmark code in discovery/benchmark/. The main library header currently exposes 2 channels by default. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/tailslayer-dram-hedged-reads