Unusable shares (shfs issue)


Recommended Posts

We will need a bit more information about your setup. 

 

Is anything else doing a save operation to the array at the same time?

 

Are you using a cache drive?

 

Are you doing any  type of parity operation? 

 

You should also provide your Diagnostics file.   Tools    >>>   Diagnostics     Upload the file in a new post. 

 

Unraid is capable of doing this in a timely manner.  Once a month, I back up a about 20GB of data in less than a half hour--- >4000 files in more than 500 folders.  I do have a 500GB SSD cache drive.   (I have no idea how long it takes Mover to relocate this backup to the array as it happens at 3:00AM!)

Link to comment

There is no operation running in the array and mover runs at 3:40am every day.

I'm using cache drive since a month with any problem but yesterday I uploded to a smb share a lot of files inside a single folder, transfer is running since yesterday for less than 50GB...unusable!

Attached the diag file generated now.

gigavault-diagnostics-20211115-0953.zip

Edited by Gigabyte2
Link to comment

You have two cache drives in this system.  Which one are you using for the share that you are having the issue with? 

 

Now for some bad news.  Not all SSD's are equal.  There are several fabrication techniques used to make SSD's.  Some of the  are very fast but they are very expensive on a per bit basis.  Others are very cheap on a per bit basis but their performance suffers.  (Google MCL vs TCL vs SLC)  Some drives that use the slower attempt to 'hide' this fact by using a large block of high speed memory as an on-drive cache but as soon as it is filled things slow down to the basic write speed of the cells used to actually store the data.  (Note this means that this permits such a drive to perform very well as a typical consumer OS/data drive where the writes will usually be less than 500MB.)

 

(Earlier this year, there was a big flap because some manufacturers were accused of shipping drives to reviewers that used MCL technology when the actual shipping drives were using TCL  The issue came to light when users could not duplicate the test results of the reviewers.)

 

You could try swapping which SSD drive you are using to cache these transfers and see if that makes a difference.  (Make sure you move any cached files off that drive to the array first!)

 

I would suggest that you try an experiment.  Copy a block of data to a cached share on Unraid and time the transfer with a stopwatch.  (Ignore the transfer speed reported by the file manager.)  Than copy the same file set back to your PC and time that transfer the same way.  (I actually basically do this as after I make my monthly backups, I copy those backups to a USB3 hard drive that is stored off-site.  My experience is that both times are approximately the same.)  OH , I do do this in the foreground.  I have a feeling that file managers have a much lower priority when they become a background application.

Link to comment

Thanks for the reply.

In this scenario the cache drive is "Cache_ssd_nvme" that is a Samsung_SSD_970_EVO_Plus_500GB.

I've used this drive as cache for three weeks before that issue comes and the issue still even if I set ssd drive to No in the share's settings (after invoke the mover).

This is the screen of the top during iPhone pictures transfer (hardware is i3-7100 CPU @ 3.90GHz, 16GB RAM and 1gbps LAN)

 

 

Schermata 2021-11-17 alle 19.27.12.png

Link to comment

UPDATE:

the issue occurs only if I upload lot of files at the same time (1200 pictures inside a folder), if I upload the folder (and not the files inside it) transfer is at the max speed (6 minutes for 48GB).

If I try to transfer all the pictures in a folder with a thousands more photos the transfer is incredibly slow (8h for 48GB)

 

Link to comment
1 hour ago, Gigabyte2 said:

the issue occurs only if I upload lot of files at the same time (1200 pictures inside a folder), if I upload the folder (and not the files inside it) transfer is at the max speed (6 minutes for 48GB).

What exactly are you doing?   By this, I mean

Quote

lot of files at the same time (1200 pictures inside a folder)

How is this being done?  (Normally, when a large group of files are transferred, it is done one file at a time.  If you start two (or more) streams of files transferring simultaneously, things degrade very quickly!!!  Particularity, if you look at what is happening to only one stream.)

 

 

Quote

if I upload the folder (and not the files inside it) transfer is at the max speed (6 minutes for 48GB).

How is this different from what you did in the previous quote?  I would assume that uploading a folder would all of the contents of that folder which would include files and possibly even other folders with their contents.  (However, copying a folder and its contents assures that only one file is being moved at a time!)

 

It would be beneficial to know the OS of the other computer involved in this transfer and the name of the file manager . 

 

 

Edited by Frank1940
Link to comment

At this point, I think you know what will work well and what does NOT work very well.  I don't use any Apple products here so I can't test this scenario.  I don't even want to think as to how I would get a folder with a thousand plus SMALL files in it to see if the same problems exist in a Windows situation.  (Furthermore, I can't imagine even wanting such an monstrosity.  I have had problems locating the file I want in a folder of less than a hundred individual files...) 

 

In the back of my mind is the thought that the algorithm that Apple uses to copy individual files might not scale well to handle thousands of files.  But then maybe the algorithm that Microsoft uses does not either...

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.