SSD Cache
SSD cache can improve the performance of Random Access by storing frequently accessed data on the SSD cache. SSD cache can only be mounted to one volume at a time.
The objective of enabling SSD cache is to increase the performance of random access to a small portion of data that is frequently accessed in the storage space. For example, both large sequential read or write operations (e.g., HD video streaming) and entirely random data reading patterns lack re-reading patterns, and thus will not benefit significantly from SSD caching. For general applications, it is recommended to enable the Skip sequential I/O option, so that sequential I/O can still pass through to the drives of the storage space.
Note:
- SSD cache is available on specific models only. To see if your model supports SSD cache, please refer to this article.
- We recommend using SSDs that are compatible with your Synology Unified Controller (check the Synology Products Compatibility List) to prevent any compatibility issues. Using incompatible SSDs may affect the system performance and cause data loss.
- Please refer to the product specifications of your models on Synology's website for the maximum size of SSD cache allowed on your Synology Unified Controller.
- When mounting SSD cache, the cache and its corresponding volume must be created on the same device.
SSD Cache Types
There are two types of SSD cache, both implementing an LRU (Least Recently Used) algorithm to swap the data in the cache:
- Read-only cache can consist of 1 to 6 SSDs and be set to the cache RAID type of RAID 0, RAID 1, or RAID 10 to improve the random read performance of the storage space on which it is mounted.
- Read-write cache can consist of 1 to 6 SSDs and be set to the cache RAID type of RAID 1, RAID 5, RAID 6, or RAID 10 to improve the random read and write performance of the storage space on which it is mounted.
Note:
- SSD read-only cache stores copies of data from the volume; thus, no data loss will occur even if the read-only cache has crashed.
- When SSD read-write cache is degraded, Automatic protection mechanism will be activated. It will stop caching new IOs and start writing (i.e. synchronizing) existing new data from the SSD to HDDs. After the data synchronization is completed, no data loss will occur even if the read-write cache has crashed.
- In normal situations, SSD read-write cache contains new data that has not been synchronized to HDDs yet. Properly remove the SSD cache from Storage Manager first before removing SSDs from your Synology Unified Controller (even with the system powered off). Otherwise, the volume may crash.
Total Allowable Cache Size
The total allowable cache size is affected by the following factors:
- The limit of total cache size supported on your device. Please refer to the specifications of your model.
- Whether the system has sufficient free memory.
Note:
- If you are no longer able to create SSD cache due to the factors above, the system will send you a pop-up notification.
Memory Requirements
Memory requirements depend on the CPU of your Synology Unified Controller. To see which CPU is used in your Synology Unified Controller, please refer to this article.
For models with Alpine CPUs:
Every 1 GB of SSD cache requires approximately 416 KB of system memory (expandable memory can be counted), and the maximum cache size is 930 GB. Therefore, if the read-only cache configuration is 2 x 128 GB SSD, the total cache size will be 256 GB and require at least 104 MB of memory, if the read-write cache configuration is 2 x 128 GB SSD, the total cache size will be 128 GB and require at least 52 MB of memory. If memory is insufficient, SSD cache creation will be restricted or the size of SSD cache will be limited.
For all other models:
SSD cache requires a certain amount of system memory depending on the cache size, so mounting larger SSD cache might require upgrading the memory of the Synology Unified Controller. To keep the system stable and fast, only 1/4 of the pre-installed system memory can be used for SSD cache.
Every 1 GB of SSD cache requires approximately 416 KB of system memory (expandable memory can be counted).
Note: This does not apply to read-write SSD caches created on DSM 5.1 or earlier versions. That is, every 1 GB of SSD cache created before DSM 5.2 will still require 4 MB of system memory even when used in the DSM 5.2 environment.
Therefore, if the read-only cache configuration is 2 x 128 GB SSD, the total cache size will be 256 GB and require at least 104 MB of memory; if the read-write cache configuration is 2 x 128 GB SSD, the total cache size will be 128 GB and require at least 52 MB of memory. If memory is insufficient, SSD cache creation will be restricted or the size of SSD cache will be limited.
Cache Hit Rate
An SSD cache by default only accelerates random I/O and does not accelerate sequential I/O. The Cache Hit Rate of an SSD cache can be calculated according to the following formula:
- Hit Rate of a SSD read-only cache = Accelerated Random Read Counts / Total Random Read Counts * 100%
- Hit Rate of a SSD read-write cache = Accelerated Random Read & Write Counts / Total Random Read & Write Counts * 100%
Managing SSD Cache
To mount SSD cache:
- Install the SSDs into your Synology Unified Controller. Please see the notes above first.
- Go to Storage Manager > SSD Cache. Click Create.
- Select the cache mode (only available for models that support read-write cache).
- Find the drop-down menu and select the volume on which you wish to mount the SSD cache.
- Choose the SSDs from the list. Data on the SSDs will be erased, so please make sure no important data will be deleted.
- Click Apply.
Note:
- If the SSD cache is to be mounted on a volume in a Secured Storage Pool:
- You can only choose SEDs.
- Secured SSD Cache will be created.
- If the SSD cache is to be mounted on a volume in a General Storage Pool:
- You can only choose SEDs which are not protected by authentication.
- Normal SSD Cache will be created.
To stop caching sequential I/O:
If your target volume has excellent sequential I/O performance, you can make SSD cache stop caching sequential I/O and access data directly from your drives for higher speed and better performance.
- Click Configure to open the configuration window.
- Tick Skip sequential I/O.
To remove SSD cache:
- Click Remove to permanently remove this SSD cache from Synology Unified Controller.
Note:
- For the read-write cache, you must remove it through this procedure (even if your Synology Unified Controller is powered off), otherwise volume crash will occur because partial data resides only on the cache.
- If a read-write cache on a storage space is not detected when booting up, the system will not mount that storage space. Please find and re-install the SSDs in the Synology Unified Controller and reboot to mount the storage space.
- Please make sure to properly remove the read-write SSD cache before unplugging its corresponding SSDs. Unplugging the SSDs improperly (e.g. when a cache is still in use or when the system is powered off) will cause the data stored in the target volume to crash.
To cancel removing SSD cache:
- Click Cancel Removal to cancel cache removing action.
To repair SSD cache:
- For read-write cache: If one of the SSDs has crashed, please follow the steps below to repair it.
- Replace the failed SSD with a new one.
- Click the Repair button.
- Select the SSD from the list.
- Click Apply.
- For read-only cache:
- If one of the SSDs in RAID 0 configuration crashes, please remove the cache, replace the failed SSD, and then create a new cache.
- If one of the SSDs in RAID 1 or RAID 10 configuration crashes, simply replace the failed SSD and repair the cache.
Note:
- With Secured SSD Cache, you can only choose SEDs.
- With Normal SSD Cache, you can only choose SEDs which are not protected by authentication.
To replace a failed SSD of an SSD cache:
You can replace an abnormal SSD of an SSD cache if the RAID configuration of your SSD cache supports redundancy.
- Go to Storage Manager > HDD/SSD.
- Click Deactivate to deactivate the failed SSD.
- Replace the failed SSD with a new one, and click Repair.
- Select the SSD from the list.
- Click Apply.
To expand the size of an SSD cache:
Remove the original SSD cache, then create a new SSD cache with larger-sized SSDs.