Hello: 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. My machine configuration is Linux Ubuntu 8.04 with samba 3.0.28a. The smb.conf file is as follows. [global] workgroup = SENTIENT interfaces = xx.xx.xx.xx hosts allow = ALL encrypt passwords = true [ramdisk] path = /fs/ram0 public = yes valid users = sentient read only = yes create mask = 0444 directory mask = 0444 My priority is to share some data (15-30MB) from one machine so that it is readable from one other machine. The data is read-only and only one machine is going to access this share at a time. I am not even sure if samba is the best (I tried NFS but it also has similar problems). I would be grateful if anybody with experience can suggest alternatives. Thanks, Aravind.
Volker Lendecke
2009-Mar-17 19:45 UTC
[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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20090317/a484750e/attachment.bin
Reasonably Related Threads
- International Workshop on Management of Big Data Systems (MBDS 2012) - Deadline is near
- International Workshop on Management of Big Data Systems (MBDS 2012) - Deadline is near
- Dovecot Ldap Problem
- Re: Libvirt supported qemu-ga commands
- ''uninitialized constant'' error