Re: [Samba] Files on samba share not updated quickly enough
Am Dienstag, 17. März 2009 schrieb as: > Re: [Samba] Files on samba share not updated quickly enough > Von: > as > An: > volker.lende...@sernet.de > Kopie: > samba@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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Files on samba share not updated quickly enough
> 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
Re: [Samba] Files on samba share not updated quickly enough
On Tue, Mar 17, 2009 at 11:46:37AM -0700, as wrote: > I have set up a samba share between 2 linux machines, where the server > updates a file (latest.txt, 200bytes) at 15 Hz. My problem is that the > client does not get the latest version of this file latest.txt when it > reads this file every 100ms or so. It seems to be updating the file > once a second. For instance, when I check for the contents of the file > latest.txt every 100ms, the same contents are printed for 10 checks > although the actual file has changed almost every time I check it. It > seems to be a cache problem (I really don't need cache - I would like > to turn it off if it is not a problem, but I don't know how to do it. > Any help will be appreciated. Have you tried "oplocks = no"? Volker pgptv4QaVepdO.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba