All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Tailslayer: C++ Library for Reducing RAM Tail Latency from DRAM Refresh Stalls

By

hasheddan

1mo ago· 2 min readenCode

Summary

Tailslayer is a C++ library designed to reduce tail latency in RAM reads caused by DRAM refresh stalls. It works by replicating data across multiple independent DRAM channels with uncorrelated refresh schedules, using undocumented channel scrambling offsets that work on AMD, Intel, and Graviton processors. The library implements hedged reads across all replicas, allowing work to proceed with whichever result responds first. The article provides technical details about the library's implementation and usage.

Key quotes

· 4 pulled
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, using (undocumented!) channel scrambling offsets that works on AMD, Intel, and Graviton.
Once the request comes in, Tailslayer issues hedged reads across all replicas, allowing the work to be performed on whichever result responds first.
The library code is available in hedged_reader.cpp and the example using the library can be found in tailslayer_example.cpp.
Snippet from the RSS feed
Library for reducing tail latency in RAM reads. Contribute to LaurieWired/tailslayer development by creating an account on GitHub.

You might also wanna read