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
[Samba] Old application very slow
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. I didn't have oplocks off, but now I disabled them, with no effect. I moved all files to another share (from Data to Applic) with no effect. Am I right that if I wait long enough (few minutes) the modified config is read without interupting the services ? I hope someone can point me in the right direction. Koenraad Lelong. This is the important part of my config : [global] workgroup = MYDOMAIN server string = Samba on %L interfaces = 192.168.0.0/20, lo bind interfaces only = Yes passdb backend = tdbsam pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*Password* %n\n *Re-enter*new*password*%n\n *Password*changed* username map = /etc/samba/smbusers unix password sync = Yes lanman auth = Yes client lanman auth = Yes client plaintext auth = Yes log level = 10 syslog = 0 log file = /var/log/samba/%m max log size = 50 smb ports = 139 name resolve order = wins bcast hosts time server = Yes printcap name = CUPS mangle prefix = 5 add user script = /usr/sbin/useradd -m -s /bin/false '%u' delete user script = /usr/sbin/userdel -r '%u' add group script = /usr/sbin/groupadd '%g' && getent group '%g'|awk -F: '{print $3}' delete group script = /usr/sbin/groupdel '%g' add user to group script = /usr/sbin/groupmod -A '%u' '%g' delete user from group script = /usr/sbin/groupmod -R '%u' '%g' set primary group script = /usr/sbin/usermod -g '%g' '%u' add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false '%u' shutdown script = /var/lib/samba/scripts/shutdown.sh abort shutdown script = /sbin /shutdown -c logon script = scripts\%U.bat logon drive = F: logon home = \\lace2\%U domain logons = Yes os level = 65 preferred master = Yes domain master = Yes wins support = Yes ldap ssl = no utmp = Yes create mask = 0664 force create mode = 0660 directory mask = 0777 force directory mode = 0770 map acl inherit = Yes cups options = Raw printer name = LJ4050 veto files = /*.eml/*.nws/*.{*}/Thumbs.db/ veto oplock files = /*.doc/*.xls/*.mdb/*.dbf/*.ntx/ oplocks = No level2 oplocks = No [homes] comment = Home Directories valid users = %S read only = No browseable = No [printers] comment = SMB Print Spool path = /var/spool/samba guest ok = Yes printable = Yes printer name = use client driver = Yes browseable = No [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon admin users = Koenraad write list = root guest ok = Yes browseable = No locking = No [profiles] comment = Profile Share path = /var/lib/samba/profiles read only = No profile acls = Yes [Data] comment = Data schijf path = /net/Data read only = No acl group control = Yes dos filemode = Yes [Applic] comment = Applicatie schijf path = /net/Applic read only = No This is part of a logfile of the PC I'm using : [2009/10/19 14:45:28, 5] smbd/uid.c:change_to_root_user(337) change_to_root_user: now uid=(0,0) gid=(0,0) [2009/10/19 14:45:28, 10] lib/util_sock.c:read_smb_length_return_keepalive(1118) got smb length of 45 [2009/10/19 14:45:28, 6] smbd/process.c:process_smb(1547) got message type 0x0 of len 0x2d [2009/10/19 14:45:28, 3] smbd/process.c:process_smb(1550) Transaction 516199 of length 49 (0 toread) [2009/10/19 14:45:28, 5] lib/util.c:show_msg(647) [2009/10/19 14:45:28, 5] lib/util.c:show_msg(657) size=45 smb_com=0xa smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=32768 smb_tid=6 smb_pid=4842 smb_uid=104 smb_mid=1666 smt_wct=5 smb_vwv[ 0]= 6473 (0x1949) smb_vwv[ 1]= 12 (0xC) smb_vwv[ 2]=0 (0x0) smb_vwv[ 3]=0 (0x0) smb_vwv[ 4]= 12 (0xC) smb_bcc=0 [2009/10/19 14:45:28, 3] smbd/process.c:switch_message(1361) switch message SMBread (pid 28121) conn 0xb80b3780 [2009/10/19 14:45:28, 3] smbd/sec_ctx.c:set_sec_ctx(324) setting sec ctx (1007, 1003) - sec_ctx_stack_ndx = 0 [2009/10/19 14:45:28, 5] auth/token_util.c:debug_nt_user_token(472) NT user token of user S-1-5-21-177555115-702490737-1861429907-1