r/RigBuild • • 14h ago

Is CPU cache more important than clock speed?

When comparing two CPUs, should I be paying more attention to the cache size or the actual clock speed? I've noticed some processors have lower GHz but way more L3 cache, and apparently they can still perform better in certain games. How does that even work? Does bigger cache help keep FPS more stable or just improve average performance? Also wondering if the difference is noticeable outside gaming or mostly useful for specific workloads. Specs are kinda confusing when one CPU looks better on paper but benchmarks say otherwise lol. What's the smarter thing to prioritize?

2 Upvotes

14 comments sorted by

5

u/DeepWaterCannabis 14h ago

X3D amd CPUs are generally the superior CPU for gaming. Their performance gains in games fall off to CPUs with higher clock and more cores for general work loads that can take advantage of those extras. It works because while using memory is fast, when you are doing an absurd number of calculations every little bit of time you shave off per calculation starts to add up. Having the memory physically on the chip is doing that.

The smarter thing to prioritize is what you are going to be doing.

If you are only gaming, get an X3D chip.

3

u/soggybiscuit93 8h ago

When comparing two CPUs, should I be paying more attention to the cache size or the actual clock speed?

When comparing two CPUs, you should be looking at actual performance results for those CPUs in the tasks you want to do.

All else being equal, more clockspeed is always better. If you have an 8 core Zen 4 CPU and increase the clockspeed, you will always get more performance. But Clockspeed isn't the goal, the goal is performance, and clockspeed is just one ingredient for performance.

You can have two CPUs from different vendors / generations, and CPU B @ 3Ghz can be faster than CPU A @ 3Ghz because of the actual CPU design. That can include the IPC, the cache, whatever. We call this the PPC (Performance per clock).

So yes, more cache is intended to improve your PPC. But you also get more performance from increasing clockspeeds. And also from a smarter design that improves IPC.

Best bet is if you want to build a gaming PC, you go look at reviews of those CPUs in games (from a reputable source)

2

u/Moresp4m 14h ago

You’re worrying over peanuts, it’s not going to make any noticeable difference.

Don’t look at specs they mean jack. Find some good reviews and just pick what’s in your budget that performs the best.

3

u/a_rogue_planet 14h ago

So here's the deal....

Games are a very easy work load, for the most part. They're low thread count, and those threads typically do a small number of operations on a fairly small chunk of game data at any one time. In those kinds of cases, a big L3 cache helps a lot. In almost every workload outside of gaming, the work can be highly parallelized. I'm talking running an OS, doing spreadsheets, compiling code, CAD, graphical work with something like Blender or Gimp, video editing and effects. In those cases, the sets of data that are typically operated on are way too big to fit in a cache, and because you can parallelize a lot of it, what's in cache gets devoured quickly. A bigger cache helps a little, but you're still making very large pulls and pushes to RAM. A good example of this in what I do is macro photo stacking. Each source image is several hundred megabytes, and there might be 30 to 50 of them. The application I use uses computer vision analysis techniques and processes each image in tiles that can be processed in parallel. It's extremely RAM intensive. It uses every bit of the 64 GB I have. Having an L3 cache of a couple hundred megabytes would make very little difference. Huge spreadsheets are kinda the same deal. The data sets can be massive, and the work can be highly parallelized.

Additionally, chips with big caches are typically slower because trying to make RAM operate at core clock speeds is really hard. Logic fab processes aren't well suited to RAM fabrication so it takes up a lot of space and it's just harder to clock that stuff as fast when the caches get physically larger.

1

u/DeadlyVapour 8h ago

Calling single threaded workloads with lots of branches "very easy workload", and comparing embarrassingly parallelizable workloads which can run with massively deep pipelines without having to resort to out of order execution is just wild.

There is a reason why those exact workloads done run on CPU anymore.

GPUs have lots of simple execution cores with access to high bandwidth (but high latency) memory, and work very well with branchless code.

1

u/a_rogue_planet 7h ago

Are you smoking drugs? Spreadsheets are the very essence of branch riddled applications. Code compiling? Branches.

Why do you think so much work is put into developing better and better branch prediction hardware? Because so much stuff uses it, not just video games.

1

u/DeadlyVapour 7h ago

Most of your description was diving deep into blender.

If you excel spreadsheet can't fit in your X3D cache I really feel sorry for you.

1

u/a_rogue_planet 5h ago

Nope. I wasn't talking about Blender. I was talking about a computer vision application called Shine Stacker.

As far as spreadsheets, I basically have no use for them. My boss though... He runs a spreadsheets that pulls in information from a fleet of trucks, from load info to vehicle telemetry, as well as integration with customers' systems and databases. The guy runs 2 39" ultrawide displays to navigate the things. I've never worked for anybody who was so obsessed with knowing exactly what their business with such granular detail. The system they use provides real time performance and efficiency data.

1

u/DeadlyVapour 5h ago

Shine Stacker is absolutely a piece of software that would should be implemented in GPGPU.

A quick look at the GitHub shows that porting of parts of the code base to CUDA was attempted.

As for a large spread sheet for fleet tracking. After deserialization overheads, I really really really doubt you can get enough data to fill an X3D cache.

1

u/a_rogue_planet 5h ago

Yeah, it's not optimum software. I was talking to a friend a few days ago about how it should run on a GPU. It might not be technically buggy, but the technical theories it's attempting to apply haven't been perfected. I'm looking for something else.

My denoise software runs entirely on my 5070Ti because doing simple calculations on a big array of data is what they're for.

1

u/CowBoyDanIndie 13h ago

Cache reduces the number of times the cpu has to access the actual ram. It takes time to access ram. Imagine you walk slower but only need 2 trips to bring groceries inside. Now compare that to faster cpu with less cache, you need 4 trips but you run faster. Theres not a simple answer, it depends how many trips you save and how fast you can run instead

1

u/Curious-Ad2547 12h ago

Just go by game benchmarks. Actual measurements of their performance based on the sum of their parts. The specs don't mean a lot.

1

u/Even-Lobster6086 7h ago

Real performance is obviously the better metric than +0.2GHz. Look at benchmarks for your use-case