← Latest papers
💻 computer science

Non-Uniform L2 Cache Latency Across the Streaming Multiprocessors of an NVIDIA L40

This paper reveals that the L2 cache hit latency on NVIDIA L40 and Blackwell GPUs is non-uniform and highly dependent on the specific physical Streaming Multiprocessor (SM) issuing the load, enabling a stable, user-level primitive for kernel self-localization, device fingerprinting, and optimized work distribution that reduces makespan by up to 11%.

Original authors: Faruk Alpay, Baris Basaran

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Faruk Alpay, Baris Basaran

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a massive, high-speed library (the GPU) where thousands of librarians (called SMs, or Streaming Multiprocessors) work together to fetch books (data) from a giant, shared storage room (the L2 Cache).

For years, computer scientists believed this library worked like a perfectly uniform system: no matter which librarian you asked, the time it took to grab a book from the storage room was exactly the same. They thought the storage room was a single, flat pool of information where distance didn't matter.

This paper, however, reveals that this belief is wrong. The authors discovered that on the NVIDIA L40 GPU, where a librarian stands physically determines how fast they can get a book.

Here is the breakdown of their findings using simple analogies:

1. The "Distance Matters" Discovery

Think of the storage room not as a flat floor, but as a large warehouse with aisles.

  • The Old View: Everyone thought every librarian stood exactly the same distance from the shelves. If you asked Librarian A or Librarian Z, the wait time was identical (about 279 "ticks" of the clock).
  • The New Reality: The authors measured the wait time for every single one of the 142 librarians. They found that some librarians are standing right next to the shelves and get books in 222 ticks. Others are standing at the far end of the warehouse and take 339 ticks.
  • The Result: That's a 52% difference in speed. It's like one person running to the front door while another has to run to the back exit just to get the same package.

2. The "Mirror Image" Pattern

When the authors mapped out who was fast and who was slow, they didn't see random noise. They saw a perfect pattern.

  • The 142 librarians are split into two identical halves (like two wings of a building).
  • Librarian #1 in the first wing has the exact same speed profile as Librarian #1 in the second wing.
  • This "mirror symmetry" matches the actual physical blueprint of the computer chip, proving this isn't a glitch in the software—it's a fact of the hardware's physical construction.

3. The "Fingerprint" Effect

Because every librarian has a unique speed based on their physical spot, the library has a secret identity.

  • Self-Location: If you are a librarian (a computer program) and you ask, "How long does it take me to get a book?", you can instantly figure out exactly which spot in the warehouse you are standing in. The authors built a tool that can identify your specific spot with 99% accuracy.
  • Device Fingerprinting: Even if you have two brand-new, identical L40 GPUs (two identical libraries), they are slightly different. One library might have Librarian #5 standing slightly closer to the shelves than the other library's Librarian #5 due to tiny manufacturing differences. The authors could tell the two identical machines apart 100% of the time just by measuring these tiny speed differences. It's like being able to tell two identical twins apart by the way they walk.

4. Is This a Security Risk?

The authors are careful to clarify what this means for security.

  • What it IS: A way for a program to know where it is inside the computer. It's like a person walking into a room and realizing, "Oh, I'm standing in the corner near the window."
  • What it IS NOT: It is not a way to steal secrets from other programs. The authors emphasize that this only measures the program's own speed. It cannot peek at what other programs are doing or steal their data. It is a "self-localization" tool, not a "spy" tool.

5. The Practical Benefit: Smarter Scheduling

Why does this matter for performance?

  • Imagine you have a list of 100 tasks to do.
  • The Old Way: You assign tasks randomly. Some go to the librarians standing far away (slow), and some go to those standing close (fast). The whole job waits for the slowest people to finish.
  • The New Way: Now that we have the map, we can assign the heavy lifting to the librarians standing closest to the shelves.
  • The Result: By doing this, the authors showed they could finish the work 11% faster for tasks that rely heavily on the cache. However, if the task requires fetching data from the main memory (a different, slower storage), this trick doesn't help.

6. It's Not Just One Chip

The authors tested this on a newer, different chip (the RTX 5090) as well. They found the same "distance matters" rule applies there too, though the pattern is slightly different. This proves that the old idea of a "uniform" cache is likely wrong for many modern high-end computers.

Summary

The paper shatters the illusion that all parts of a GPU's cache are equal. It reveals that physical location dictates speed. By mapping these hidden speed differences, we can:

  1. Identify exactly where a program is running.
  2. Distinguish between two identical machines.
  3. Speed up specific tasks by assigning them to the fastest physical spots.

It turns out the computer chip isn't a flat, uniform field; it's a landscape with hills and valleys, and knowing the map makes you faster.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →