How does SRAM hold a bit?
A standard SRAM cell uses six transistors: four form two cross-coupled inverters that lock into one of two stable states, and two connect the cell to the bit lines for reading and writing. As long as power is applied, the latch keeps its value. There is no capacitor to leak, so no refresh is needed, and reads do not destroy the stored value. The result is memory that responds in a cycle or a few, right next to the logic that uses it.
How does SRAM compare with DRAM?
| SRAM | DRAM | |
|---|---|---|
| Cell | 6 transistors (some designs 4 or 8) | 1 transistor + 1 capacitor |
| Refresh | Not needed | Every few milliseconds |
| Access time | About 1 to 20 ns on chip | About 80 to 120 ns from the CPU |
| Density and cost | Low density, high cost per bit | High density, low cost per bit |
| Main use | CPU caches, registers files, network chip buffers | Main memory |
Because of its size, SRAM is measured in kilobytes and megabytes, not gigabytes. DRAM covers the other side of the comparison.
Where is SRAM in a server?
- CPU caches: L1, L2 and L3 caches are SRAM built into the processor die. This is by far the largest use.
- Register files and buffers inside each core.
- Network and storage controllers: switch chips, NICs and NVMe controllers use SRAM for packet buffers and lookup tables.
- Firmware settings memory on older boards, kept alive by a small battery.
Why does cache size matter on server CPUs?
Every time a core needs data that is not in its caches, it waits for DRAM, wasting hundreds of cycles. A larger L3 keeps more of a program's hot data on chip. Databases with busy indexes, game servers with large worlds, virtualization hosts juggling several guests and compilers all benefit. Cache sizes vary widely across the CPUs in our range. You can read them directly:
lscpu -C getconf -a | grep -i CACHE_SIZE
lscpu -C lists each cache level, its size, associativity and how many cores share it. On dual-socket machines such as D16, each CPU has its own L3, so the total doubles, but data in the other socket's cache is slower to reach.
What does SRAM have to do with CPU generations?
Manufacturing advances have shrunk logic faster than SRAM cells in recent process nodes, which makes big caches expensive in silicon area. Chip designers respond with stacked cache dies, larger shared L3 slices or chiplet layouts. For buyers, the effect is that cache size is now a real point of difference between CPU models, not just a footnote, and it is worth checking alongside cores and clock speed. The EPYC chips in S13 and S14, the Xeon 6 line such as X3, and the Ampere processors such as A3 each take a different approach.
How can software make better use of SRAM caches?
Keep hot data compact and access it in order. Arrays beat linked lists for cache use; smaller structs mean more of them fit per cache line; processing data in blocks that fit in L2 avoids thrashing. Pinning a latency-sensitive process to specific cores with taskset or systemd's CPUAffinity= keeps its data warm in those cores' caches instead of moving between them. Profilers such as perf stat -e cache-misses,cache-references show how well a program uses the cache.
Is SRAM ever used as main memory?
Only in tiny systems such as microcontrollers, where a few hundred kilobytes is enough and simplicity matters. For anything with gigabytes of data, DRAM is the only practical choice, and SRAM caches make it feel fast. Together with SSDs for storage, they form the The memory hierarchy every server relies on.
CPUs With Different Cache Designs
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S13 | AMD EPYC 4345P | 8 / 16 | 128 GB DDR5 | 2x 2 TB NVMe | 2x 25 Gbps | $237.92 | $237.92 (1 month) |
| S14 | AMD EPYC 4565P | 16 / 32 | 192 GB DDR5 | 2x 4 TB NVMe | 2x 25 Gbps | $317.89 | $317.89 (1 month) |
| X3 | Intel Xeon 6770P | 64 / 128 | 128 GB DDR5 | 2x 2 TB NVMe | 2x 25 Gbps | $874.23 | $874.23 (1 month) |
| D16 | 2x Intel Xeon Gold 6540 | 40 / 80 | 256 GB DDR5 | 2x 2 TB NVMe | 2x 25 Gbps | $542.33 | $542.33 (1 month) |
| A3 | AmpereOne A96-36X | 96 / 96 | 256 GB DDR5 | 1x 4 TB NVMe + 1x 1 TB NVMe (boot) | 2x 25 Gbps | $369.75 | $4,437.00 (12 months) |
Keep Reading
DRAM
How dynamic RAM stores bits in capacitors that must be refreshed, why it is the main memory of every server, and how DDR generations differ.
OpenCache
Caching at every layer of a server, from CPU L1 to the page cache to application caches, and how each one makes the box faster.
OpenThe memory hierarchy
From registers through L1, L2 and L3 caches to RAM, NVMe and the network: how each level trades speed for size, and why it shapes performance.
OpenCPU
What a CPU is, the parts inside it, and how cores, clocks, cache and sockets translate into real server performance.
OpenFAQ
Quick Answers
It holds bits in transistor latches right next to the logic, with no capacitor to charge, sense and refresh.
Each bit needs about six transistors, so it is far too large and costly per gigabyte.
Run lscpu -C. It lists each cache level with its size and how many cores share it.
No. Like DRAM it is volatile, but it needs no refresh while power is on.
For workloads with large hot data sets, such as databases and VMs, often noticeably. Simple workloads see less difference.