I want to share my feedback about SMB client (/disk add type=smb ...) and about working with large amount of files.
After connecting a new SMB share with about 50 files, a file tree is loaded pretty quickly, all files are visible in WinBox, but then RouterOS starts doing something weird. It creates a huge load on a network and eats a lot of traffic from SMB server. Within about 30 minutes it has downloaded about 4.5 GB of traffic from the server. And this never stops until you dismount your SMB disk. What the hell is it doing? (TILE, 7.18beta4)
On the Dude graph it looks like this:
.
SMB_traffic.png
--------------------------------------------------------------------------------------------------------------------------------------------------
Regarding woking with large amount of files, I often hear that you are improving the behavior for this scenario. But it will never work normally with large amount of files in current implementation. The reason is simple: RouterOS scans a
whole file structure completely. If you have 10K files, 100K files, it will uselessly scan all these thousands of files, creating an unneeded load on network and server. And this process will begin over and over again after each reboot.
To work with large amount of files, file management mechanism should be
completely revised:
1. RouterOS should never scan a whole file structure, only content of root directories on the disks.
2. In WinBox, 'File List' should be replaced by 'File Browser' with ability to navigate between directories like it's done in any OS.
3. CLI file commands should also change their behavior. If you type
/file print, it should show the contents of root directory only. If you need to show the contents of some subdirectory, you may specify it in 'where' parameter like
/file print where name~"subdir/". Sometimes, it may required to show the contents including subdirecories, in such case an additional parameter could be added, like
"/file print include-subdirs" for example.
In Linux there is an
'ls' command, so it shouldn't be a problem to translate file commands into
'ls' command accordingly.
It may sound wild for those who get used to current behavior, but without this, any adequate behavior with large amount of files is impossible.
--------------------------------------------------------------------------------------------------------------------------------------------------
P.S. It's still unclear if SMB client feature is incuded in ROSE-storage package, because it works even without this package.
You do not have the required permissions to view the files attached to this post.