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.

Cache speed (disk share vs user share)

Featured Replies

Hey everyone,

 

I recently rebuilt my unraid server and I'm seeing some strange cache write speed behavior.  If I write to a user share that has use cache set to Yes via SMB I can copy at about 280 MB/s which is slow.  If I enable disk shares and do the same copy direct to the cache drive share I get well over 1 GB/s which is what I'd expect.  The only thing I've tried so far is enabling Direct IO but that didn't help.

 

The cache drive is a hardware raid of SAS3 SSDs.  The PC I'm copying from has a PCIE 4.0 nvme disk in it.   Diagnostics attached.  Any help would be appreciated!

 

Thanks

 

 

tower-diagnostics-20200309-1707.zip

It's normal. Shfs (the magic behind Unraid shares) has an effective speed limit of 300MB/s to 500MB/s depending on various factors.

 

What I have been doing is to have custom smb config that targets /mnt/cache directly (instead of enabling disk shares) to get max performance.

  • 1 month later...
On 3/9/2020 at 9:16 PM, testdasi said:

...

 

What I have been doing is to have custom smb config that targets /mnt/cache directly (instead of enabling disk shares) to get max performance.

Hey, any chance you can do this "custom smb config that targets /mnt/cache directly" thingy?

Thanks

  • Author
27 minutes ago, SpeedyVV said:

Hey, any chance you can do this "custom smb config that targets /mnt/cache directly" thingy?

Thanks

 

Below is what works for me.  I usually just write 1 file through the user share and then once the folder structure is created I do the rest of my writes through the cache share. Its clunky, but it works for now until I can think of a more elegant solution.

 

[cacheShare]
  path=/mnt/cache
    valid users = whoever
    write list = whoever

Thanks for the quick reply, but I am not sure I get how this works. i'm a bit slow ;-)

 

So are you saying you create a new user share called "cacheShare"?
Where are you creating this smb config?
I have Disk Shares enabled. Should I turn that off?

  • Author

If you stop your array, go into settings, then click on SMB there is a section called "Samba extra configuration:"  That's where you paste the config I shared.  After you start the array you should now see an extra share when you browse to your server.  You don't need to create it under the "Shares" area of unraid.  I would turn off disk shares unless you need it for something specific.  

thanks for your help!

Works! U Rock!

47 minutes ago, noacess said:

I would turn off disk shares unless you need it for something specific.

What you've done is the exact same thing as enabling disk shares and not exporting SMB shares except for the cache drive.

2 hours ago, noacess said:

until I can think of a more elegant solution.

For all disk shares set Export=No,

except for cache set Export=Yes

  • Author
2 hours ago, bonienl said:

For all disk shares set Export=No,

except for cache set Export=Yes

 

I was referring to my hack of copying a single file via user shares to create directory structures and then copying the rest of the files via the cache share because of transfer speed being comparatively slow through user shares when writing to cache. 

Archived

This topic is now archived and is closed to further replies.

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.