惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
V2EX - 技术
V2EX - 技术
P
Privacy & Cybersecurity Law Blog
T
The Exploit Database - CXSecurity.com
美团技术团队
WordPress大学
WordPress大学
博客园 - 司徒正美
S
Securelist
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
Attack and Defense Labs
Attack and Defense Labs
Security Latest
Security Latest
L
LINUX DO - 最新话题
NISL@THU
NISL@THU
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Y
Y Combinator Blog
The Hacker News
The Hacker News
Security Archives - TechRepublic
Security Archives - TechRepublic
IT之家
IT之家
T
Threatpost
Hugging Face - Blog
Hugging Face - Blog
Scott Helme
Scott Helme
S
SegmentFault 最新的问题
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
小众软件
小众软件
V
Vulnerabilities – Threatpost
J
Java Code Geeks
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
Arctic Wolf
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
S
Security @ Cisco Blogs
雷峰网
雷峰网
Help Net Security
Help Net Security
The Last Watchdog
The Last Watchdog
Recent Announcements
Recent Announcements
G
Google Developers Blog
C
CERT Recently Published Vulnerability Notes
T
Troy Hunt's Blog
MyScale Blog
MyScale Blog

Whexy Blog

We lost the AIxCC. So, what now? Arm VMM with Apple's Hypervisor Framework Driving WaveShare E‐Paper Display with a Raspberry Pi Pico in MicroPython Use cgroup v2 inside docker containers Annual Hit Piece: Fuzzing Top Conference Paper Debunking Report Solving SSH Key Login Issues on Synology NAS Virtualization is all you need Running Windows Games on Mac Without Virtual Machines Tears of the Kingdom: End of an Era Anonymous CDN Traffic Relay Self-host Relay Service with CDN Home Networking Solution Building Your Own Blog System Connecting Smart Devices to SUSTech Campus Network Function Color Theory Stop Forkin' Around: Faster Creating of Large Processes on Linux PMU Interrupts: How to handle them Asynchronous Mutex Using QEMU to run Linux images on M1 Macbook Alligator In Vest - My first research work Experience Using Several Plugins in Complex LaTeX Projects Variance in Rust Understanding Rust Generic Traits SUSTeam: Ultimate Gaming Platform Inline Assembly Language in C React Learning Notes Building a School Bus Schedule App for Apple Watch 12307 Train Ticket Purchase Platform Sakai and Local Folder Synchronization Building a Super Simple OpenJudge in Two Nights Setting Up Remote Backup for macOS Shell Script for Automatically Logging into SUSTech Campus Network Building a Movie Streaming System in the Dorm
Can SSD Cache Improve Synology NAS Write Speeds?
Whexy · 2023-07-27 · via Whexy Blog

Conclusion: Adding SSD alone provides no improvement to daily Synology NAS write speeds.

I searched online but couldn't find any specific tests on how Synology SSD cache affects NAS write speeds. In some forum posts, some claimed SSD cache could "dramatically improve" write speeds, while others said it had "no effect." However, these posts and comments provided no specific test data as proof.

Therefore, I decided to spend $60 to purchase two 500GB NVME SSDs to personally test whether Synology SSD cache can improve write speeds.

⚠️

My experiment was simple, divided into two parts:

  • Copy single 4GB large file
  • Copy 8192 small files totaling 4GB

The reason for choosing 4GB is that the NAS itself has 2GB memory. Using files larger than memory size for transfer avoids memory cache affecting results.

Equipment: Using MacBook M1 Pro to copy data to Synology 723+ NAS.

Connection Method: Direct ethernet connection between MacBook and NAS, bypassing any switches or routers, ensuring both devices cannot access the internet.

Data Generation: Using dd command to extract random values from /dev/urandom to generate files. First, I created a 4GB large file named large-4G filled entirely with random data. Then, I generated 8192 files of 0.5MB each, also totaling 4GB.

Copy Method: Using NAS command line with rsync -av --status <src> <dst> command for copying.

dd if=/dev/urandom of=large-4G bs=1g count=4

for i in $(seq 1 8192)
do
	dd if=/dev/urandom of=random_file_$i bs=524288 count=1
done

Here are the copy speed test results:

Test NameWithout CacheWith SSD Read/Write Cache
Large File (4GB)81.12 MB/s86.24 MB/s
Multiple Small Files (4GB)83.49 MB/s85.24 MB/s

Ideally, all tests should be conducted multiple times, then provide averages and medians. However, frankly, I had hoped for significant write speed improvements. But these test results already prove multiple trials would be worthless.

Before spending three days' meal money on SSDs, I thought adding read/write cache would significantly improve NAS write speeds. But actually, SSD cache has almost no impact on NAS write speeds. Why is this?

So I tested network speeds between the two devices. Using speedtest, I measured download rate of 966.8Mbps and upload rate of 735.9Mbps. Synology NAS comes with gigabit network cards, and with speedtest running in docker containers having some performance loss, test results match expectations.

speedtest results

speedtest results

Comparing our previous test results, the fastest write speed was 86.24 MB/s, which is 689.92 Mbps. That means NAS write speeds are already approaching gigabit network card limits. Therefore, even with SSD cache, write speeds cannot be improved.

Without upgrading NAS networks, using SSD read/write cache doesn't significantly improve write speeds for large files or multiple small files.

So for friends wanting to improve NAS write speeds, I suggest first upgrading networks. Because your bottleneck is probably not the hard drive, but bandwidth.

Synology is very stingy, equipping each home NAS with only gigabit network cards. Actually, USB 2.5G network cards now cost less than 100 yuan. Upgrading network cards can double your daily NAS usage speeds (2500Mbps).

Next is upgrading routers. Current phones and computers already support WiFi 6 or even WiFi 6e, but most home routers are still mediocre products from five or six years ago. I recommend upgrading to AX9000 or AX6000, minimum AX5400.

For randomly reading large amounts of small files, SSD cache helps tremendously. Whether btrfs or ext4 file systems, both choose to place metadata at the very front of disks. Indexing large amounts of small files causes mechanical hard drive heads to move repeatedly between metadata positions and file positions, greatly increasing seek times and reducing read speeds. SSD cache can cache this metadata to SSDs, thus improving read speeds.

© LICENSED UNDER CC BY-NC-SA 4.0