Overview with affiliate links. We receive a commission if you click through via us. Read how
Compare

What Does an M.2 Slot Do in a NAS? Cache or Storage Explained

M.2 slots let you fit fast SSDs in a NAS, but what you can do with them differs per model.

Blog6 min read

Short answer

An M.2 slot in a NAS is meant for a compact SSD. You can usually use it as cache to make frequently used data available faster, and with some models also as ordinary storage. Exactly what is possible differs per manufacturer and model, so check the specifications.

What is an M.2 slot?

M.2 is a format for small, narrow SSDs. They are about the size of a stick of chewing gum and are plugged directly into the motherboard, without a cable. You often find them in laptops, and increasingly in NAS systems too.

Note: M.2 describes the format, not the speed. An M.2 SSD can work over SATA or over NVMe, and that makes a big difference to performance. If you use an NVMe SSD, it communicates over PCIe, a faster connection. You can read more about PCIe in PCIe versions explained.

M.2 as cache: faster for frequently used files

With SSD cache, the NAS keeps frequently used data on the fast SSD. The hard drives form the actual storage. The idea is that frequently requested files or small write operations go faster.

This mainly benefits applications with many small files or several users at the same time, such as a busy office or a virtual machine. When streaming a film or copying a large folder you often notice less of it, because that is mainly sequential work. The gain therefore depends strongly on what you do with your NAS.

M.2 as storage space

Some NAS systems let you make a separate storage volume from M.2 SSDs. You can then put, for example, apps, containers, databases or virtual machines on it, while files and backups stay on the hard drives.

Not every model offers that option. With some systems the M.2 slots are intended exclusively for cache. Check the specifications or the manual to see which functions the slots support before you buy SSDs.

What to look for when choosing an M.2 SSD

A few points to check:

Do you need M.2 in your NAS?

For a NAS that mainly keeps photos, documents and films, M.2 is usually not necessary. The network connection is then often the limiting factor, see 2.5GbE and 10GbE for your NAS. M.2 can be interesting if you run apps, databases or virtual machines, or if several people work with small files at the same time.

If you want to compare models, look at the NAS page. A broader explanation of uses can be found in what can you do with a NAS.

An example: from slow folders to faster responses

Say your office of six people works in the same folders full of small documents and design files. When someone opens a folder, they sometimes wait a moment before everything is visible. SSD cache can then make sure the most-used data is quickly available, so that folders open faster.

If, on the other hand, you are one person who occasionally watches a film from the NAS, you will often notice little from a cache. The hard drives are then fast enough for streaming, and the investment in extra SSDs yields little.

A practical approach: first put your NAS into use without cache and see whether you actually experience slowdown. Many systems show statistics on drive use in the management screen. Based on that, you can decide whether M.2 SSDs make sense. That way you avoid fitting an extra component you do not need.

Another practical point: some manufacturers offer expansion cards that let you add extra M.2 SSDs via a PCIe slot. That can be an alternative if your model has few M.2 slots, but not every model has such an expansion slot. Also look at the software support, because not every SSD or card is recognised as a matter of course.

Finally, it is good to know that with some settings an SSD cache temporarily holds write operations. In the event of a power cut, that can pose risks for data that has not yet been written to the hard drives. Read in the manual how the system handles this and whether an uninterruptible power supply (UPS) is recommended.

Read-only or read-write cache: how many SSDs do you need?

There are two types of SSD cache. A read cache speeds up re-reading frequently used data. A read-write cache also speeds up writing. On Synology, a read cache can work with one SSD, while a read-write cache requires at least two SSDs of the same type. Other manufacturers may have different rules, so read the manual for your model.

Synology describes that a cache mainly pays off with random access to frequently used data, such as with file services and virtualisation. With sequential access, such as streaming a single video file, the gain is expected to be small. Synology also notes that the hit rate (the share of read requests served from the cache) is low at first and grows once the cache has warmed up.

Here is how to check it yourself:

  1. Look in the specifications to see which cache types your model supports.
  2. Look for the hit rate in the management screen.
  3. Give the cache some time in normal use before you judge it.

Frequently asked questions

Is an M.2 slot the same as NVMe?

No. M.2 is the form factor of the connector. An M.2 SSD can use SATA or NVMe. Check what your NAS supports.

Can I use an M.2 SSD as ordinary storage in my NAS?

With some models yes, with others only as cache. This is stated in the model’s specifications or manual.

Will my NAS really get faster with SSD cache?

That depends on how it is used. With many small files and several users it can help. With large files or streaming you often notice little.

Do I need one or two M.2 SSDs for cache?

That depends on the manufacturer and the type of cache. On Synology, a read cache can work with one SSD, while a read-write cache requires at least two SSDs of the same type. Check the manual for your model.

Further reading

Last updated on

Ask us
Compare Get in touch

Are you sure?