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

推荐订阅源

Google DeepMind News
Google DeepMind News
The Last Watchdog
The Last Watchdog
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
Last Week in AI
Last Week in AI
量子位
雷峰网
雷峰网
宝玉的分享
宝玉的分享
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
P
Privacy International News Feed
NISL@THU
NISL@THU
V
V2EX
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
IT之家
IT之家
T
Tor Project blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Threatpost
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
V
Vulnerabilities – Threatpost
V
Visual Studio Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Hacker News
The Hacker News
Scott Helme
Scott Helme
H
Hacker News: Front Page
罗磊的独立博客
Hacker News - Newest:
Hacker News - Newest: "LLM"
K
Kaspersky official blog
S
Secure Thoughts
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Cloudflare Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
小众软件
小众软件
月光博客
月光博客
人人都是产品经理
人人都是产品经理
AI
AI
Help Net Security
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Webroot Blog
Webroot Blog
博客园 - 【当耐特】
PCI Perspectives
PCI Perspectives
A
Arctic Wolf

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