[Samba] Files on samba share not updated quickly enough

Günter Kukkukk linux at kukkukk.com
Wed Mar 18 00:48:31 GMT 2009


Am Dienstag, 17. März 2009 schrieb as:
> Re: [Samba] Files on samba share not updated quickly enough
> Von: 
> as <rmctodd at gmail.com>
>   An: 
> Volker.Lendecke at sernet.de
>   Kopie: 
> samba at lists.samba.org
>   Datum: 
> Gestern 21:31:19
>    
>   Spam-Status: Spamassassin Mit 0% iger Wahrscheinlichkeit Spam.
> 
> Ausführlicher Bericht:
> No, score=-3.6 required=3.8 tests=BAYES_00,DNS_FROM_RFC_POST, SPF_PASS autolearn=no version=3.1.7  
> > Have you tried "oplocks = no"?
> >
> >
> >  Volker
> >
> 
> Yes. I tried with oplocks = no option. There is no change in the
> status. I am using this script to update the latest.txt file and I've
> attached the corresponding output.
> 
> while [[ 1 ]]; do date +%H:%M:%S:%N > latest.txt; date +%H:%M:%S:%N ;
> sleep 0.07s; done
> 
> 13:11:14:513173232
> 13:11:14:588513935
> 13:11:14:663778637
> 13:11:14:739044080
> 13:11:14:814301658
> 13:11:14:889642454
> 13:11:14:964972251
> 13:11:15:040227305
> 13:11:15:115474815
> 
> The corresponding script and output on the client side is
> 
> while [[ 1 ]]; do echo `date +%H:%M:%S:%N`: `cat
> /mnt/gnode1/latest.txt` ; sleep 0.1s; done
> 
> 13:11:16:203937190: 13:11:13:005819552
> 13:11:16:310620831: 13:11:13:005819552
> 13:11:16:417328506: 13:11:14:135155742
> 13:11:16:524336505: 13:11:14:135155742
> 13:11:16:631038219: 13:11:14:135155742
> 13:11:16:737723614: 13:11:14:135155742
> 13:11:16:844418840: 13:11:14:135155742
> 13:11:16:951090321: 13:11:14:135155742
> 13:11:17:057833620: 13:11:14:135155742
> 13:11:17:164582597: 13:11:14:135155742
> 13:11:17:271157849: 13:11:14:135155742
> 13:11:17:377872676: 13:11:15:038496125
> 13:11:17:484839236: 13:11:15:038496125
> 13:11:17:591585854: 13:11:15:038496125
> 13:11:17:698156931: 13:11:15:038496125
> 13:11:17:804788559: 13:11:15:038496125
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

Cause you're saying that both the server and the client are running
Linux, I assume you're using cifs vfs on the client side to mount
the remote share.
Note that also the cifs client is doing inode data caching.
You can disable this by using the mount option "directio".

Be aware of the side-effects - see 'man mount.cifs' for
further details, also available online:
http://us6.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html

Cheers, Günter


More information about the samba mailing list