Re: [Samba] Old application very slow
Volker Lendecke schreef: On Fri, Oct 23, 2009 at 09:43:05AM +0200, Koenraad Lelong wrote: Now that I think of it, I don't see any files opened with oplocks ! All my locking options are default. Why are there no oplocks ? Once more than one app opens a file r/w, or the same app opens a file twice, all oplocks are gone. Volker Hi, I was confused a while. I though no oplocks = "unsafe". But then I realised that only that "fake oplocks" is unsafe. The fact that other files are not oplocked means the files are not cached by the user, so "safe". Thanks for all your replies. Koenraad Lelong. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
On Fri, Oct 23, 2009 at 09:43:05AM +0200, Koenraad Lelong wrote: > Now that I think of it, I don't see any files opened with oplocks ! All > my locking options are default. Why are there no oplocks ? Once more than one app opens a file r/w, or the same app opens a file twice, all oplocks are gone. Volker signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
Volker Lendecke schreef: On Thu, Oct 22, 2009 at 04:27:52PM +0200, Koenraad Lelong wrote: Koenraad Lelong schreef: Hi, I think I have a (temporary ?) solution : if I enable "fake oplocks" the application works fast. Since I was thinking of giving that application and it's database-files it's own share I think it will work. I don't like to give the other shares those fake oplocks. Comments ? If you guarantee that only one user will ever use that db simultaneously, you're probably fine. If you have multi-user access, "fake oplocks" will make the application eat your data. Volker Hi Volker, I know that, that's why I will give it a share of it's own. That application is "write one/read many". Is there an explanation for the fact that when I run the application in dosemu on a linuxbox, the files are opened with an exclusive lock, while under "regular Windows", the files are opened without locks ? And that's on the same share. Now that I think of it, I don't see any files opened with oplocks ! All my locking options are default. Why are there no oplocks ? Regards, Koenraad. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
On Thu, Oct 22, 2009 at 04:27:52PM +0200, Koenraad Lelong wrote: > Koenraad Lelong schreef: >> Koenraad Lelong schreef: > >>> Hi, >>> Thanks for your suggestions, but it didn't help. >>> >>> I'm setting up another samba-server to test. >>> In the mean time I tried the application on a linux-box with dosemu >>> (it is a DOS application). The linux-box is connected to the >>> samba-server with samba client-software. >>> Guess what : it's running like it should : very responsive. >>> >>> What's this telling me ? >> > Hi, > > I think I have a (temporary ?) solution : if I enable "fake oplocks" the > application works fast. Since I was thinking of giving that application > and it's database-files it's own share I think it will work. > I don't like to give the other shares those fake oplocks. > > Comments ? If you guarantee that only one user will ever use that db simultaneously, you're probably fine. If you have multi-user access, "fake oplocks" will make the application eat your data. Volker signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
Koenraad Lelong schreef: Koenraad Lelong schreef: Hi, Thanks for your suggestions, but it didn't help. I'm setting up another samba-server to test. In the mean time I tried the application on a linux-box with dosemu (it is a DOS application). The linux-box is connected to the samba-server with samba client-software. Guess what : it's running like it should : very responsive. What's this telling me ? Hi, I think I have a (temporary ?) solution : if I enable "fake oplocks" the application works fast. Since I was thinking of giving that application and it's database-files it's own share I think it will work. I don't like to give the other shares those fake oplocks. Comments ? Regards, Koenraad Lelong. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
Koenraad Lelong schreef: Johan Hendriks schreef: A long shot, interfaces = 192.168.0.0/20, lo bind interfaces only = Yes try to set interfaces to just the interface name and the ipadres. Maybe it is a network problem. Hi, Thanks for your suggestions, but it didn't help. I'm setting up another samba-server to test. In the mean time I tried the application on a linux-box with dosemu (it is a DOS application). The linux-box is connected to the samba-server with samba client-software. Guess what : it's running like it should : very responsive. What's this telling me ? Hi, I was looking at the samba-status with swat. When I run the application with dosemu (i.e. fast respone), the database-files are opened with an exclusive oplock. When I run the app in Windows, there is no (none) oplock. Does this ring any bells ? P.S. is it possible there's a bug in swat ? The headers of Open Files are not all OK, and the user-id is not "reverse resolved". Or is it Webmin that does this ? Regards, Koenraad Lelong. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
Johan Hendriks schreef: A long shot, interfaces = 192.168.0.0/20, lo bind interfaces only = Yes try to set interfaces to just the interface name and the ipadres. Maybe it is a network problem. Hi, Thanks for your suggestions, but it didn't help. I'm setting up another samba-server to test. In the mean time I tried the application on a linux-box with dosemu (it is a DOS application). The linux-box is connected to the samba-server with samba client-software. Guess what : it's running like it should : very responsive. What's this telling me ? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
>Adam Williams schreef: >> you might try adding: >> >> socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 >> SO_SNDBUF=65536 SO_KEEPALIVE READ_SIZE=65536 >> >>use mmap = No >>use sendfile = Yes >>blocking locks = No >>read raw = no >>write raw = no >> >> kernel oplocks = no >>oplocks = yes >>level2 oplocks = yes >> >> >Thanks for your responses. >I tried some of those suggestions, others are recommended not to modify >in the documentations. But no improvement in speed. >I also dissolved the bond between two NIC's I had, with no solution. >Anyone has other suggestions ? >Regards, >Koenraad Lelong. A long shot, interfaces = 192.168.0.0/20, lo bind interfaces only = Yes try to set interfaces to just the interface name and the ipadres. Maybe it is a network problem. Regards, Johan No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: 270.14.24/2449 - Release Date: 10/20/09 18:42:00 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
Adam Williams schreef: you might try adding: socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 SO_KEEPALIVE READ_SIZE=65536 use mmap = No use sendfile = Yes blocking locks = No read raw = no write raw = no kernel oplocks = no oplocks = yes level2 oplocks = yes Thanks for your responses. I tried some of those suggestions, others are recommended not to modify in the documentations. But no improvement in speed. I also dissolved the bond between two NIC's I had, with no solution. Anyone has other suggestions ? Regards, Koenraad Lelong. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
2009/10/19 Koenraad Lelong : > Hi, > This weekend I migrated a samba-server to new hardware and software : I'm > running samba 3.2.7-11.3.2 on Opensuse 11.1. > Everything works fine I believe except for an old DOS-application, written > in Clipper. It's too slow to be usable. I tried to debug this but I'm stuck. > I put the loglevel to 10, but I can't see anything wrong. > I first added to veto oplock files : *.dbf/*.ntx/, no effect. [...] Isn't that supposed to be "*.ndx"? I have no idea if it will make a difference, though. -- Michael Wood -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Old application very slow
you might try adding: socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 SO_KEEPALIVE READ_SIZE=65536 use mmap = No use sendfile = Yes blocking locks = No read raw = no write raw = no kernel oplocks = no oplocks = yes level2 oplocks = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba