Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Slow write speed to share with cache (avg 25-30 MB/s) - /mnt/user is slow, /mnt/cahe super fast

Featured Replies

I have set up a share that uses an SSD as cache. However, something seems to be very wrong. My writing speed to /mnt/user/share are around 25-30 Megabyte/s, even though I'm having an SSD cache and the "Use Cache Pool" setting at "Yes".

 

I noticed that my qBittorrent was always at a maximum of 25 Megabyte/s. I have 750 Mbit/s internet and always get 500 Mbit/s+ in speed tests and reaches speeds at 70 Megabyte/s+ on my other computer.

 

I tried to search and found out more people who seem to have had the same problem, but I couldn't find any solution. I've tried setting Tunable (md_write_method) to reconstruct write, but that doesn't affect speed. (I guess it shouldn't either, as the data is written to cache and the parity is not involved.)

 

My server specs:

Motherboard: Supermicro X12STH-LN4F

CPU: Intel Xeon E-2356G

Memory: 2*32 GB ECC RAM

Hard drives: 3*Seagate Exos X16 16 TB 7200 RPM (1 parity, 2 data) - Data is xfs encrypted

SSD cache: 1 TB Samsung 970 EVO Plus NVMe M.2 - SSD is btrfs encrypted
Unraid version: 6.10.0-rc4

 

I ran some dd tests and these are the results:

 

# dd if=/dev/zero of=/mnt/user/media/test-user bs=1K count=5000000 conv=fdatasync
5000000+0 records in
5000000+0 records out
5120000000 bytes (5.1 GB, 4.8 GiB) copied, 209.546 s, 24.4 MB/s


 

# dd if=/dev/zero of=/mnt/cache/media/test-cache bs=1K count=5000000 conv=fdatasync
5000000+0 records in
5000000+0 records out
5120000000 bytes (5.1 GB, 4.8 GiB) copied, 8.50469 s, 602 MB/s


 

# dd if=/dev/zero of=/mnt/disk1/media/test-disk1 bs=1K count=5000000 conv=fdatasync
5000000+0 records in
5000000+0 records out
5120000000 bytes (5.1 GB, 4.8 GiB) copied, 23.7756 s, 215 MB/s

 

I've verified that the dd test to /mnt/user is written to the share, and not disk.

 

I've attached the diagnostics, collected after I ran the dd tests. No reboot. Below are some images of my settings.

 

 

Disk Settings:

disk-settings.jpg.aa9d488da158292221fac8bc44691cda.jpg

 

Disk 1:

disk1.jpg.20be5c8f0864700ecb5f474d206e3521.jpg

 

Cache:

cache.jpg.5cf1e212fa00ab21ea87ccf74ea661b8.jpg

 

Share settings:

share-settings.jpg.4c319ea74ac0ceff7bae47b9c9bc1355.jpg

 

Global Share Settings:

global-share-settings.jpg.99b3bccc7ffbd08444bec9bca99d6e2c.jpg

tower-diagnostics-20220401-2004.zip

Edited by ChrisK2
Formatting

  • ChrisK2 changed the title to Slow write speed to share with cache (avg 25-30 MB/s) - /mnt/user is slow, /mnt/cahe super fast
  • Author

Some other topics with same/similar problem, but without any solution.

 

 

 

 

Edited by ChrisK2

  • Author

Ran a dd with Tunable (enable Direct IO) turned to yes, with no difference at all:

 

# dd if=/dev/zero of=/mnt/user/media/test-user bs=1K count=5000000 conv=fdatasync
5000000+0 records in
5000000+0 records out
5120000000 bytes (5.1 GB, 4.8 GiB) copied, 189.436 s, 27.0 MB/s

 

Edited by ChrisK2

  • Author

Some more information, it seems that the shfs process is taking some CPU when doing the dd tests, if that's of any interest.

 

Both these screenshots from when running dd to /mnt/user/.

 

shfs-top.thumb.jpg.76973119f940adffc57d5d07d29537b5.jpg

 

 

shfs-htop.thumb.jpg.0ba53e255c9333f4f4fec404f46d4b1c.jpg

Edited by ChrisK2

  • Community Expert

Just a couple of observations, using dd to test /mnt/user doesn't always give relevant results, also it's known that user shares always have some extra overhead vs disk shares, some users see a much bigger difference than others, though 25MB/s would be extra slow, usually only users with 10GbE notice the difference. 

 

If you you transfer data from another PC to a share using cache do you also get 25MB/s?

  • Author

Thank you for your answe, @JorgeB!

 

I've setup my PC and ran tests against the share and directly against the cache. Both were actually at 96-98 Megabyte/s, so the problem doesn't seem to be the cache, after all. I also tried local dd, with larger block size, and that seemed to increase the speed as well. Can it be that the small block size, when running locally, increases I/O? And that's hard for the shfs to handle?

 

However, I still seem to be limited to 25-30 Megabyte/s in all torrent clients I've tried. qBittorrent, rTorrent, Deluge. From my other PC, I reach speeds at 60 Megabyte/s+ with no problem. Could it be that the torrent clients has high I/O, and that, as in the dd with a block size of 1kB, leads to poor performance?

  • Community Expert
20 hours ago, ChrisK2 said:

I also tried local dd, with larger block size, and that seemed to increase the speed as well. Can it be that the small block size, when running locally, increases I/O?

Like mentioned dd is not a reliable way to test that.

 

20 hours ago, ChrisK2 said:

However, I still seem to be limited to 25-30 Megabyte/s in all torrent clients I've tried. qBittorrent, rTorrent, Deluge.

Sorry, can't really help with that.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.