When Apple first started transitioning away from Intel processors and to its own ARM-based architecture, a great deal changed inside its Macs, and one of the biggest changes was in the way that its M-series systems-on-chip (SoC) used memory. And the term unified memory was used to describe how it works. But what is unified memory? How does it work on your Mac? And how much do you need? We’ll explain in this article.
What is unified memory?
Unified memory describes how Apple’s M-series Macs are architectured. It simply means that the CPU and the GPU use the same bank of memory instead of the GPU having its own separate memory. This is designed to make the system-on-a-chip more efficient.
How does unified memory work on a Mac?
To explain how unified memory works on a Mac, it’s useful to take a step back and explain how traditional memory architectures work. Memory — or random access memory (RAM), to give it its full name — is used by a CPU or GPU to temporarily store data while the processor carries out instructions. The CPU — central processing unit — processes instructions for most tasks your Mac performs, while the GPU — graphics processing unit — performs those related to graphics, such as playing games or rendering 3D images. In recent years, however, the GPU has become much more widely used for crunching data that’s not graphics-related, like mining cryptocurrency. The data could be variables used in calculations, results of previous calculations, or anything else the CPU or GPU might need in order to carry out a task. In addition, memory is used by applications and processes to store data they need while they are running because it’s quicker to access memory than it is to store data on a hard disk or SSD.
So, the more memory your computer has, the more data can be stored there, and the less time the CPU and GPU have to spend reading from and writing to disk. That’s the theory, but there are lots of other things to consider. One of those things is the efficiency with which data is transmitted between different components. And the purpose of unified memory is to speed up that transmission. Having one bank of memory used by both the CPU and GPU allows components to be closer together on the motherboard and, therefore, a shorter distance for data to travel. The downside is that many games and other applications are designed for a GPU architecture that includes dedicated memory, and so performance may not be as good on a computer that has unified memory and an integrated GPU, such as Apple’s M-series Macs.
Unified memory vs RAM
Is unified memory the same as RAM? At its most basic, yes. Apple’s unified memory uses a type of RAM known as dynamic RAM or DRAM. However, unified memory is also video RAM (VRAM) because it’s used by the GPU and the CPU. So, while the architecture of the memory chips is the same, unified memory performs a slightly different function to RAM because it serves both the CPU and the GPU.
The diagram above shows how a system with both RAM and VRAM typically works. Below is Apple’s diagram for unified memory, which shows the two memory banks (DRAM) accessible to both the CPU and GPU.
How much unified memory do I need?
When Apple first launched its M1 Macs in 2020, many people were surprised that the base configuration for RAM was only 8GB. Several years later, the base configuration for most Macs is still 8GB. And upgrading to 16GB adds a significant premium to the cost of the Mac. Apple’s explanation for including only 8GB as standard when Windows PCs at similar price levels often had at least 16GB was that because its unified memory implementation was much more efficient than the way memory was implemented on most Windows PCs, Macs didn’t need as much RAM to achieve the same levels of performance. The truth is that for most people and in most use cases, 8GB is fine. Where you might run into trouble is if you are running resource-intensive tasks like editing very large images and video, 3D rendering, or playing sophisticated, graphics-heavy games. If you use your Mac for that, you should choose at least 16GB. For web surfing, email, editing holiday photos, and other everyday tasks, 8GB is fine.
How to improve your Mac’s performance
If you find that your Mac is not running as fast or as smoothly as it was when you first got it, one solution is regular maintenance. Just like a car or a building, regularly maintaining your Mac will help keep it running well for longer. Regular maintenance includes tasks like freeing up RAM (particularly important if you have a Mac with 8GB RAM or less), running macOS maintenance scripts, clearing purgeable disk space, and reindexing Spotlight. Running all these tasks manually would be very time-consuming and, in the case of macOS maintenance scripts, would require using Terminal.
However, you don’t need to do it manually — CleanMyMac X’s Maintenance module can run all of those tasks for you, as well as thin out Time Machine snapshots, repair disk permissions, flush DNS cache, and speed up Mail. It’s really easy to use. Just choose Maintenance in the sidebar, select the tasks you want to run, and click Run. You can download CleanMyMac X for free here.
Unified memory is the term used to describe the memory architecture in Macs with Apple silicon. It’s unified because instead of having separate banks for memory for the CPU and GPU, both processing units draw on the same bank of memory. The idea is that by reducing the number of components on a chip, the other components can be closer together, which, in turn, reduces the time it takes to transfer data between them and should, therefore, make your Mac faster than it would otherwise be.
FAQs
Is unified memory the same as RAM?
In very basic terms, yes. However, unlike RAM, it serves both CPU and GPU.
How much unified memory do I need?
It all depends on how you use your Mac. If you do not edit large photos and videos or play graphics-intensive games, 8GB should be enough in most cases.