[Samba] Why windows client is four times slower than linux client ?

Robert Marcano robert at marcanoonline.com
Thu Jun 16 12:32:33 UTC 2022

On 6/15/22 3:27 PM, jie wang wrote:
> Thanks the reply, I'm not copying the files to the local storage of the 
> client. There are 3 computers, samba server, windows client and linux 
> client, and copy files from windows/linux client to samba 
> server's storage. The network latency is almost same between windows 
> client -> samba server and linux client -> samba server.

Still affected by Windows reading the local files to send them to the 
share. If I wanted to test the samba server without measuring possible 
client filesystem issues, I would write a program that generates files 
on the fly, instead of reading files from the local filesystem or use a 
filesystem performance measurement tool that probably would do that.

> On Thu, Jun 16, 2022 at 3:20 AM Robert Marcano via samba 
> <samba at lists.samba.org <mailto:samba at lists.samba.org>> wrote:
>     On 6/15/22 3:11 PM, jie wang via samba wrote:
>      > Hi, all.
>      >
>      > I deploy a samba server, and copy the hadoop source code to the mount
>      > point. When I use windows client, it cost 8 minutes, and there
>     are about 1
>      > million packets. But when I use linux client, it cost 2 minutes,
>     and there
>      > are only 0.2 million packets. So it seems windows client is four
>     times
>      > slower than linux client. Windows and linux clients both use
>     samba 3.1.1,
>      > and samba server use master code. Can anyone help explain the
>     reason ?
>      > Thanks a lot.
>     Are you copying the files to the local storage of the client? If true
>     maybe you should test only reading the files and not storing them
>     locally after clearing any kine of cache. Windows filesystem layers are
>     know to be slow when working with many small files, and source code
>     tree
>     tend to be like that.
>     -- 
>     To unsubscribe from this list go to the following URL and read the
>     instructions: https://lists.samba.org/mailman/options/samba
>     <https://lists.samba.org/mailman/options/samba>

More information about the samba mailing list