Jump to content

Samba / Slow performance with small files

LL0rd

Hey Guys, 

 

currently I have a problem with my linux NAS Server. It's an linux machine running NIXOS Linux. On the server I have a ZFS pool/fs. The Server and my main machine are connected via 10GbE. When I work with Video-Footage, I have transfer speeds of about 800MByte/s from or to the server. But... on the same ZFS fs / same Samba Share I have also my documents. Part of them are in LaTeX. When I compile a TeX file into a PDF File, I also get 3-4 another Files, like a log file, and some other files. So in this directory I have about 800 Files with the size of a couple kb. Even opening the directory takes about 5-8 seconds via Samba. And compiling TeX files also takes a while. And when I tried to copy the files from the ZFS Pool to another one, I got speeds of some kb/s. Copying via shell was not a problem. 

 

Can someone help me out? How can I improve the performance on small files?

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, LL0rd said:

How can I improve the performance on small files?

Samba by its very nature simply is slow with small files. Switch to NFS or something else, if you want faster speed.

Hand, n. A singular instrument worn at the end of the human arm and commonly thrust into somebody’s pocket.

Link to comment
Share on other sites

Link to post
Share on other sites

If you need SMB and are dealing with small files you'll need to utilize SMB Direct but that requires hardware level NIC support on both the Client and Server.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×