Why does Gallium not use my Mac's CPU cores?
Why does Gallium PDF Password Recovery only use your Mac’s GPU to find your PDF password? Why doesn’t it also use all the CPU cores as well?
In short: The CPU cores don’t help much. And they are very power hungry by comparison.
I tested a complex PDF password recovery on a M5 MacBook Pro, using a combination of GPU and CPU configurations - Gallium can be configured to run on your GPU and/or CPU cores.
The M5 chip has 18 CPU cores: 6 Super cores + 12 slower Performance cores.
| Using: | Time | Power | Energy |
|---|---|---|---|
| GPU Only | 79 s | 58 W | 4582 J |
| GPU + CPU, 6 Super cores | 76 s | 90 W | 6840 J |
| GPU + CPU, 6 Super cores + 12 Performance cores | 75 s | 100 W | 7500 J |
| CPU Only, 6 Super cores | 1282 s | 45 W | 57690 J |
| CPU Only, 6 Super cores + 12 Performance cores | 1100 s | 53 W | 58300 J |
Using the GPU + all CPU cores is the fastest option (taking only 75 seconds), but…
The GPU is 14 times faster than the CPU cores at doing the same work - so using the CPU cores do not contribute much to speeding up the entire password recovery process. Compare rows 1 and 3: Only about a 5% reduction in time, while increasing the energy required by 64%.
CPU cores are very power hungry in comparison to the GPU - compare the energy used in the GPU Only and CPU Only scenarios! In addition, maxing out both the GPU and CPU cores use 100 watts of power, which can cause thermal throttling as the system slowing down to mitigate the increase in heat.
So: Gallium uses the GPU to save energy and reduce the amount of heat generated.