News thumbnail
Technology / Mon, 30 Nov 2026 Spiceworks

Why bigger CPU cache beats higher clock speeds for database workloads

One has 336MB of L3 cache, and the other has 144MB. When it comes to database workloads, the cache number often matters more than the clock. Here’s what CPU cache does, why database workloads reward more of it, and when the faster clock is still the better buy. When a core finds what it needs in cache, that’s a “cache hit,” and the data comes back within a few clock cycles. How do L1, L2, and L3 cache differ?

CPU cache is a set of small, high-speed memory banks inside the processor, holding the data and instructions the cores are most likely to need next. A cache lookup happens in nanoseconds, while the same fetch from the computer’s main memory (RAM) takes much longer. So, the processor works from the nearby copy whenever it can.

Server chipmakers treat those megabytes as a headline feature—Intel sells two 32-core Xeon 6 processors that differ mainly in cache. One has 336MB of L3 cache, and the other has 144MB. AMD offers a 16-core server chip with eight times the L3 of its 16-core sibling.

When it comes to database workloads, the cache number often matters more than the clock. If you run an ERP on SQL Server or a line-of-business app on PostgreSQL, that database spends its day hopping across indexes and rows. A processor that keeps that busy data in cache can do more for response times than another few hundred megahertz.

READ MORE: Why companies are quietly moving back to private cloud

The wrong processor costs you money as well as time, though, since database licenses are typically priced per core whether the cores are computing or waiting on RAM. If you’ve been choosing servers by gigahertz first, you may want to turn your attention to a different line on the quote.

Here’s what CPU cache does, why database workloads reward more of it, and when the faster clock is still the better buy.

What is CPU cache?

Cache is built from SRAM, a type of memory circuit that runs much faster than the DRAM in your memory sticks but costs more and takes up far more space per megabyte. Because SRAM costs so much, a server holds terabytes of disk, hundreds of gigabytes of RAM, and only megabytes of cache. Storage gets faster and smaller the closer it sits to the cores—the same layered design that runs through the computer’s whole architecture.

As you know, CPU cache is different from a browser or application cache. Those are files on a disk, the kind you empty now and then to fix a misbehaving app. CPU cache is physical memory on the processor. The hardware automatically manages it, and nothing about it ever needs clearing out.

When a core finds what it needs in cache, that’s a “cache hit,” and the data comes back within a few clock cycles. When it doesn’t, the “cache miss” sends the request down to RAM while the core waits.

How do L1, L2, and L3 cache differ?

A modern processor includes all three cache levels (L1, L2, and L3), arranged in a hierarchy that trades speed for size. L1, the smallest and fastest levelOpens a new window , sits inside each core and is usually split between instructions and data. The L2 level is bigger and a step slower, still private to each core on most designs. L3, the big shared pool, serves many cores at once. On server processors, that shared pool has grown from tens of megabytes into the hundreds.

READ MORE: What the Microsoft 365 disruption reveals about employee experience

The chip-analysis site Chips and Cheese timed each levelOpens a new window on Intel’s Xeon 6 server silicon:

Level Where it sits Measured lookup time (Intel Xeon 6) L1 Inside each core About 5 clock cycles L2 Next to each core About 16 clock cycles L3 Shared across the chip Just over 33 nanoseconds (about 130 cycles) Main memory (RAM) Outside the processor More than 100 nanoseconds

Each level catches what the one above it missed, and only when all three miss does the processor pay for a full trip to RAM. A busy server repeats those lookups constantly, so the small waits add up.

Why do fast processors wait on memory?

For decades, processors have gained speed faster than memory has. Nearly every computer also puts the processor on one side, memory on the other, and a shared pathway between them. That pathway is the choke point behind the von Neumann bottleneck, a constraint that has shaped computer design since 1945.

A fast core only helps while it has data to work on. When the next batch is still in RAM, the core stops and waits. Those lost cycles are performance you paid for but don’t receive. Cache exists to spare the cores that idle time. The more of a workload’s active data fits nearby, the less often they wait.

How does a bigger cache speed up database workloads?

A database rarely reads anything in a tidy stream. To answer a single query, it may follow an index through several lookups and then pull the matching rows from different spots in memory, one small read at a time. The data a workload returns to again and again is called its “working set,” and query times improve as more of that set fits in cache.

In 2021, TechSpot isolated the effect by locking several Intel desktop processors to the same clock speed. While testing the video game Rainbow Six Siege, it found that 67% more L3 cacheOpens a new window notched an 18% performance gain, while 67% more cores added only 6%. Games aren’t databases, of course, but the test shows what more cache can do when clock speed stays the same.

Phoronix saw the same pattern on real database engines in 2022, when it tested AMD’s EPYC 7773X, a 64-core chip that pairs the standard 7763’s cores with three times its L3 cache, 768MB against 256MB. PostgreSQL throughput ran about 9% higherOpens a new window on the big-cache chip, and the ClickHouse analytics database gained around 14% in cold runs, where the system starts with nothing already cached.

AMD has kept building on the idea with its 3D V-Cache technique, which stacks additional cache directly onto the processor die. ServeTheHome reports that the Venice-X chips AMD has slated for the second half of 2027 will offer up to 1,152MB of L3Opens a new window .

What is a good CPU cache size?

No single number fits every workload, so start from the working set. When it fits in cache, extra megabytes sit idle. When it spills over, every added megabyte keeps more of the hot data close to the cores.

The same Phoronix results that favor big cache also mark its limits. MariaDB gained only about 3.5% from the tripled cache, and Intel’s conventional Xeon chips of that generation stayed competitive on several database tests. Work that reads its data a single time, from front to back (say, a long sequential scan or a nightly backup), gets little from any amount of cache because nothing comes back a second time. And a single-threaded job whose data already fits will scale with clock speed, not cache capacity.

On a desktop or a first homelab, the answer is simpler. Cache is fixed when the chip is manufactured—you can’t add more later the way you add RAM—you can only decide which processor to pick. On servers, the same choice can get expensive because catalogs sell identical core counts with very different amounts of cache.

Should you pay for more cache or a higher clock speed?

Intel’s Xeon 6 lineup includes the 6745P and the 6738POpens a new window , both 32-core parts with base clocks 200MHz apart. The first comes with 336MB of L3, and the second with 144MB. On the AMD side, Lenovo’s EPYC processor referenceOpens a new window lists the 16-core 9175F with 512MB of L3 beside the 16-core 9135 with 64MB, an eightfold difference at the same core count.

Database licensing turns the choice between those pairs into a budget decision. Microsoft licenses SQL Server by coreOpens a new window and requires at least four core licenses for every physical processor in the box. Oracle charges per core as well, as Dell notes in its guidance for Oracle serversOpens a new window . Nobody bills you for megabytes of L3, so if a processor with fewer, cache-heavy cores can handle your database load, you’ll buy fewer licenses.

The same arithmetic applies on virtualized hosts, where you can license SQL Server by VM if you have Software Assurance or subscription licenses. SQL Server Standard also caps at 32 licensed cores, so once you hit that ceiling, you can increase capacity by getting more out of each core rather than by adding them. For database work, that per-core improvement is exactly what cache delivers. That said, clock speed still wins some of these calls. If your workload is single-threaded and light on data, the higher-clocked chip will likely serve you better.

How to factor CPU cache into your next server purchase

When your next server quote arrives, read the cache column with the same care you give the server chipset and the memory configuration. If you price the same-core pair with more cache against what extra cores would cost in database licenses, you’ll know what those megabytes are worth before you sign. And if you’re still early on the server learning curve, it’s worth getting comfortable with this trade-off. You’ll make sharper buying decisions for it, beginning with that very quote.

Categories: Articles, IT Hardware

Share This Article:

Former IT Director turned tech writer, Rose de Fremery built an IT department from scratch; she led it through years of head-spinning digital transformation at an international human rights organization. Rose creates content for major tech brands and is delighted to return to the Spiceworks community that once supported her own IT career. Former IT Director turned tech writer, Rose de Fremery built an IT department from scratch; she led it through years of head-spinning digital transformation at an international human rights organization. Rose creates content for major tech brands and is delighted to return to the Spiceworks community that once supported her own IT career.

© All Rights Reserved.