I have to drop_caches for Samba speedup

Kernels & Hardware, configuring network, installing services

I have to drop_caches for Samba speedup

Postby Lenry » 2017-07-13 12:46

Greetings,

So I have a Debian file server that serves at a small office. Many collegaues work directly from the server via Samba (as they use Windows). Recently (most probably around the time Debian switched to Linux kernel 4.x, but I'm not sure) Samba gets to be more and more slow, file copying speeds as low as 5-700kByte/s instead of the usual 30-50MByte/s.
After some googling I found that
Code: Select all
# echo 3 | tee /proc/sys/vm/drop_caches
helps, but it's not a solution, just a first aid, but I have no idea where to start, what to look at solving the problem.
The problem appear to occur more and more often, in the beginning it was enough if I dropped caches every night, now I have a cron job that runs every 30 mins, so something is really weird.

Coincidentally not only Samba slows down after some time, but apt-get update's Reading package lists... is also gets very slow.

Code: Select all
lenry@RenderServer ~ $ uname -a
Linux RenderServer 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) i686 GNU/Linux
lenry@RenderServer ~ $ free -m
              total        used        free      shared  buff/cache   available
Mem:          15903         321       14320          97        1261       14315
Swap:             0           0           0
root@RenderServer /home/lenry # smbd -V
Version 4.5.8-Debian


Sorry for the lame subject...
Lenry
 
Posts: 3
Joined: 2015-04-27 22:29

Return to System configuration

Who is online

Users browsing this forum: xtrips and 7 guests

fashionable