Larger CPU Cache Beats Higher Clock Speeds for Database Workloads

Database workloads perform better when server processors have larger L3 cache sizes rather than higher clock speeds, as heavy index-hopping causes cores to idle while waiting on memory.

Database Workloads Starve on RAM

Server chipmakers treat memory cache as a headline feature. Intel sells two 32-core Xeon 6 processors that differ mainly in cache capacity. One version features 336MB of L3 cache, while another carries 144MB, according to Spiceworks. AMD offers a 16-core server chip with eight times the L3 cache of its 16-core sibling.

When running an enterprise resource planning system on SQL Server or a line-of-business app on PostgreSQL, the database spends its day hopping across indexes and rows. Spiceworks reported that response times benefit more from a processor retaining that frequent data in cache than from an extra few hundred megahertz.

The Von Neumann Bottleneck Cost

For decades, processors have gained speed faster than memory has. Nearly every computer puts the processor on one side. Memory sits on the other. A shared pathway between them forms the choke point behind the von Neumann bottleneck, a constraint shaping 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. Cache exists to spare cores that idle time. The more active data fits nearby, the less often they wait.

Database Licensing and Hardware Choices

Database licensing turns hardware selection into a budget decision. Licenses are typically priced per core whether the cores are computing or waiting on RAM, Spiceworks noted. Microsoft licenses SQL Server by core and requires at least four core licenses for every physical processor in the box.

Intel’s Xeon 6 lineup includes the 6745P and the 6738P. Both are 32-core parts with base clocks 200MHz apart. The first comes with 336MB of L3. The second comes with 144MB, as Spiceworks detailed. On the AMD side, Lenovo’s EPYC processor reference lists the 16-core 9175F with 512MB of L3 beside the 16-core 9135 with 64MB.

Photo of author

Newsroom

Newsroom at Archyde.

Everyday Business Activities IT Teams Should Review to Reduce Data Risks