Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Alexander 'Leo' Bergolth
On 03/04/2009 06:35 PM, Volker Lendecke wrote: > On Wed, Mar 04, 2009 at 06:21:27PM +0100, Alexander 'Leo' Bergolth wrote: >> The file isn't owned by the user that accesses it, so I guess the >> CAP_LEASE capability should be necessary. But shouldn't strace show a >> call to capset(2) between those

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Volker Lendecke
On Wed, Mar 04, 2009 at 06:21:27PM +0100, Alexander 'Leo' Bergolth wrote: > The file isn't owned by the user that accesses it, so I guess the > CAP_LEASE capability should be necessary. But shouldn't strace show a > call to capset(2) between those two F_SETLEASE fcntl calls (0x400)? There is code

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Alexander 'Leo' Bergolth
On 03/04/2009 04:16 PM, Volker Lendecke wrote: > On Wed, Mar 04, 2009 at 03:58:20PM +0100, Alexander 'Leo' Bergolth wrote: >> Here's the log for the unbuffered session: >> http://leo.kloburg.at/tmp/samba/log.gf2.gz > > That's the key: > > [2009/03/04 15:51:48, 3] smbd/oplock_linux.c:linux_set_

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Volker Lendecke
On Wed, Mar 04, 2009 at 03:58:20PM +0100, Alexander 'Leo' Bergolth wrote: > Here's the log for the unbuffered session: > http://leo.kloburg.at/tmp/samba/log.gf2.gz That's the key: [2009/03/04 15:51:48, 3] smbd/oplock_linux.c:linux_set_kernel_oplock(138) linux_set_kernel_oplock: Refused oploc

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Alexander 'Leo' Bergolth
On 03/04/2009 03:10 PM, Volker Lendecke wrote: > On Wed, Mar 04, 2009 at 02:50:59PM +0100, Alexander 'Leo' Bergolth wrote: >> My test case was just reading the firefox LICENSE file, which isn't in >> use by any other user. I can reproduce this behavior with arbitrary >> other files. > > Ah, sorry,

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Adam Tauno Williams
> Unfortunately I cannot put the server in debug 10 mode now because there > are some clients connected... There is a handly trick for dealing with this: use include files. At the end of the globals section put a: include = /etc/samba/smb.conf.%m Then create a file like: /etc/samba/smb.conf.PC

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Alexander 'Leo' Bergolth
On 03/04/2009 03:10 PM, Volker Lendecke wrote: > On Wed, Mar 04, 2009 at 02:50:59PM +0100, Alexander 'Leo' Bergolth wrote: >> My test case was just reading the firefox LICENSE file, which isn't in >> use by any other user. I can reproduce this behavior with arbitrary >> other files. > > Ah, sorry,

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Volker Lendecke
On Wed, Mar 04, 2009 at 02:50:59PM +0100, Alexander 'Leo' Bergolth wrote: > My test case was just reading the firefox LICENSE file, which isn't in > use by any other user. I can reproduce this behavior with arbitrary > other files. Ah, sorry, missed that part. Please send your smb.conf file and a

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Volker Lendecke
On Wed, Mar 04, 2009 at 02:50:59PM +0100, Alexander 'Leo' Bergolth wrote: > http://leo.kloburg.at/tmp/samba/abergolth-unbuffered.pcap > http://leo.kloburg.at/tmp/samba/smbadmin-buffered.pcap The key pieces are frame 704 in the buffered and frame 14 in the unbuffered case. Assuming in both cases th

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Alexander 'Leo' Bergolth
On 03/04/2009 02:16 PM, Volker Lendecke wrote: > On Wed, Mar 04, 2009 at 01:56:26PM +0100, Alexander 'Leo' Bergolth wrote: >> I'm experiencing strange performance problems after upgrading to samba >> 3.2.8 from 3.0.30. >> >> For all users except smbadmin (who has administrative rights), read >> per

Re: [Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Volker Lendecke
On Wed, Mar 04, 2009 at 01:56:26PM +0100, Alexander 'Leo' Bergolth wrote: > I'm experiencing strange performance problems after upgrading to samba > 3.2.8 from 3.0.30. > > For all users except smbadmin (who has administrative rights), read > performance is _very_ bad. Looking at the read-requests

[Samba] performance problem with 3.2.8: unbuffered reads for some users

2009-03-04 Thread Alexander 'Leo' Bergolth
Hi! I'm experiencing strange performance problems after upgrading to samba 3.2.8 from 3.0.30. For all users except smbadmin (who has administrative rights), read performance is _very_ bad. Looking at the read-requests using filemon and wireshark, I found out that for those users, every read is ha