Skip to main content
skill CX Codex

tailslayer-dram-hedged-reads — Claude Code skill: how to install

Guides coding assistants in setting up C++ hedged reads across DRAM channels. It helps eliminate memory tail latency caused by periodic DRAM refresh pauses.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill tailslayer-dram-hedged-reads -a claude-code
Open on GitHub

What tailslayer-dram-hedged-reads does

This skill teaches coding agents how to integrate the Tailslayer C++ library. Periodic DRAM refresh cycles stall RAM reads and create latency spikes. Tailslayer counters this by storing copies of your data across separate memory channels with out-of-sync refresh timers. Worker threads issue parallel reads to every copy. The earliest channel to reply supplies the value.

Channel routing relies on undocumented scrambling offsets and selection bits. The library works on AMD Zen, Intel architectures, and AWS Graviton servers. Standard configurations use bits 6, 7, or 8, while Graviton targets bit 8. By default, the HedgedReader template handles 2 channel replicas. Exceeding two replicas requires using benchmark programs in discovery/benchmark/.

Running the included trefi_probe and hedged benchmarks requires sudo privileges and real-time scheduling via chrt. Each background reader thread pins directly to a dedicated CPU core with tailslayer::pin_to_core, so thread contention on unpinned cores will break timing guarantees.

What it helps with

  • cut DRAM tail latency spikes caused by refresh cycles
  • set up hedged memory reads with tailslayer::HedgedReader
  • pin reader threads to separate CPU cores
  • detect optimal memory channel bits across AMD, Intel, or AWS Graviton
  • measure tREFI refresh timing using the trefi_probe utility

Example prompts for the agent

  • Show me how to include tailslayer/hedged_reader.hpp and configure a 2-way hedged reader for uint8_t.
  • Implement tailslayer::HedgedReader passing custom arguments to signal and work handlers via ArgList.
  • How do I run the hedged_read_cpp benchmark with --channel-bit 8 using chrt?

How to install tailslayer-dram-hedged-reads

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill tailslayer-dram-hedged-reads -a claude-code

2Manually: put the files in place

~/.claude/skills/tailslayer-dram-hedged-reads/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tailslayer-dram-hedged-reads/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tailslayer-dram-hedged-reads

How do I install tailslayer-dram-hedged-reads in Claude Code?

Run npx skills add reason-machines/trending-skills --skill tailslayer-dram-hedged-reads -a claude-code in your terminal. This adds the skill instructions to your agent environment.

What problem does DRAM hedged reading solve?

Standard RAM reads stall whenever a DRAM bank enters its tREFI refresh cycle. Hedging sends concurrent read requests across independent channels, ensuring the fastest non-refreshing channel delivers the payload without waiting.

Which processor platforms are compatible with Tailslayer?

The library functions on AMD Zen chips (typically channel bit 6 or 7), Intel systems (bits 6, 7, or 8), and AWS Graviton (bit 8). You can verify the right channel bit for your hardware with the --all benchmark flag.

Similar skills

All skills for Programming languages →

From the same set186

x-mentor-skill-nuwa A skill that turns six creators' methods and open-source algorithm data into concrete advice on hooks, threads and account growth. CX Codex +1 594installs gemma-gem-browser-ai Guides building and customizing Gemma Gem, an on-device Chrome extension running Gemma 4 through WebGPU with zero cloud calls. CX Codex +1 591installs claude-skill-app-onboarding-questionnaire Reads your app codebase and generates a questionnaire-style onboarding flow: copy, screen designs and working code in your framework. CX Codex +1 582installs gemma-tuner-multimodal Fine-tunes Gemma 4 and 3n models on Apple Silicon hardware with PyTorch MPS. Adapts weights for audio, vision, and text via LoRA. CX Codex +1 581installs bluehammer-vulnerability-poc A skill that walks the agent through the BlueHammer repo: building the C exploit, running it, and reading the vulnerability code. For isolated labs only. CX Codex +1 570installs alayarenderer-generative-world An agent skill that walks you through AlayaRenderer: splitting RGB video into G-buffers and restyling footage from a text prompt. CX Codex +1 564installs codesight-ai-context Builds a compact project map, wiki, and AI-tool files from a codebase. Useful when an agent needs project structure before editing code. CX Codex +1 550installs keychron-keyboards-hardware-design Lets your agent work with Keychron's open CAD files — STEP, DXF, DWG and PDF for keyboards and mice. Useful for 3D printing or laser cutting. CX Codex +1 550installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor