← Lab /Systems

Using all DRAM ranks in PIM accelerates AES and SHA beyond modern CPUs

Real-world PIM with full-rank utilization outperforms CPUs for cryptographic algorithms

Systems arXiv 19 May 2026 Measurement Prototype evidence

Published as “Taking Cryptography Out of the Data Path via Near-Memory Processing in DRAM”

Why it matters

PIM can substantially accelerate memory-bound cryptographic workloads when enough ranks are used, but single-rank performance still cannot beat optimized CPU code.

Summary

PIM implementations of AES-128 and SHA-256 on a real UPMEM system achieve near-linear speedup with up to 10× over a single tasklet and outperform a CPU-only version by up to an order of magnitude for large workloads, especially when using asynchronous rank transfers. Scaling across multiple ranks keeps execution time constant while data-transfer time grows linearly, and asynchronous transfers can mitigate this bottleneck. However, on a single rank the PIM versions still lag behind modern CPU software implementations.

What they found 6

  1. Using more than 11 tasklets yields a speedup exceeding 10× compared to a single tasklet.

    “Notably, using more than 11 tasklets achieves a speedup exceeding 10× compared to the single tasklet execution.”

  2. Algorithm performance scales nearly linearly with tasklets up to 11, after which the DPU pipeline saturates.

    “The algorithm performance scales nearly linearly with the number of tasklets up to 11, after which the DPU pipeline saturates, and adding more tasklets does not improve performance.”

  3. Execution times scale almost linearly with the number of DPUs, with 16 tasklets per DPU giving good performance.

    “The execution times of both algorithms scale almost linearly with the number of DPUs since each DPU operates independently without inter-DPU communication, and 16 tasklets per DPU are typically preferred for good performance.”

  4. In weak scaling, execution time stays constant while data-transfer time grows linearly; asynchronous transfers across ranks can mitigate the transfer bottleneck.

    “In weak scaling, execution time remains constant as the number of DPUs increases, but data transfer times grow linearly and can dominate performance; using asynchronous transfers across multiple ranks can help mitigate this bottleneck, though asynchronous transfers are not supported within a single rank.”

  5. Asynchronous rank launches improve performance via pipelining, and PIM implementations significantly outperform non-PIM CPU versions for large workloads.

    “Asynchronous rank launches allow overlapping computation and data preparation across ranks, improving performance through pipelining. Weak scaling tests show that PIM implementations significantly outperform non-PIM CPU versions, especially for large workloads.”

  6. On a single rank, PIM implementations still fall short of modern CPU software performance.

    “When these algorithms are scaled on a single rank, the results are consistent with previous work, although they still fall short of software implementations on modern CPUs.”

Caveats 5

  • On a single rank, the PIM versions still lag behind modern CPU software implementations.
  • When these algorithms are scaled on a single rank, the results are consistent with previous work, although they still fall short of software implementations on modern CPUs.
  • asynchronous transfers are only supported across different ranks, not across individual DPUs within the same rank.
  • the number of usable DPUs may be slightly lower due to the presence of some faulty devices.
  • the DPU pipeline saturates at 11 tasklets, adding more does not improve performance.

What’s new here 4

  • First implementation of SHA-256 on a real PIM system.
  • Demonstrates near-linear scaling of cryptographic kernels across tasklets and DPUs on UPMEM.
  • Introduces and evaluates asynchronous rank transfer and execution to overlap computation and data movement.
  • Provides empirical comparison with host-CPU software (including AES_NI) and prior hardware AES-128 implementations.