Date: Sat, 15 Sep 2001 15:58:31 +0100 From: ian j hart <ianjhart@ntlworld.com> To: ports@FreeBSD.ORG, dwcjr@FreeBSD.ORG Subject: Re: samba oplocks (was samba PDC / kernel tuning) Message-ID: <3BA36C97.3EDB3FAE@ntlworld.com> References: <3B9FE85A.4D33E107@ntlworld.com>
next in thread | previous in thread | raw e-mail | index | archive | help
ian j hart wrote: > > [cc: maintainer] > > FreeBSD 4.4-RC with NIS > Samba 2.2.2a_1 (and _2) as PDC > Win95B +IE4.02 +DUN1.3 +Y2KDHCP +IE5.5SP2 clients > > Got the server running okay. Now I'm getting > "no response received to oplock break request..." > [mostly the logon.bat file] > > Some of the daemons which suffer this peg the CPU at 98%, > which causes all the other processes to slow down. I've had > network/system loads of 20+. Race? > > This goes away if I disable oplocks (no really), but > this causes some clients to fail to load the logon.bat > file. This is a major problem as all the shares load > via 'net use'. > > I can reproduce this with as few as 8 clients when they > are logged on in very quick succession. With normal network > load many (25%) of the clients will lock solid. > > Giving each user a separate logon.bat helps but doesn't > cure, as I cannot do this with all the shared files! > Since this is a read-only share (except admin) I don't see > how it can block at all. Then again file locking is akin to > black magic as far as I'm concerned. > > I note that kernel oplocks are on by default. > > Would it be worth trying an earlier version of samba? In > which case, which one. Bearing in mind I need PDC support > for Win95 (only). > > I've tried bandwidth limiting (2Mb/s) but this didn't help. > > Since I've had some limited success today I've obtained > a repreve on installing NT. However if I cannot fix this > by Friday that's what I'll be doing at the weekend. > > TIA > > -- > ian j hart Right - a combination of %U.bat files and the two no oplock settings seems to work. Or at least my test is no longer good enough. I've just done two 100% okay runs of the eight machines and one run of 24 (using 8 accounts). If nothing else this is keeping me fit :) There is obviously some lock negotiation going on as some of the scripts paused. BUT, they all ran the script, and they all finished in a not unreasonable time. File locking doesn't work 100%, so I avoid locking by using separate bat files. Not ideal. I guess a race condition in the making/breaking of locks is a possibility if the number of users is high enough. Now I have to wait for some real loading to test this. Next highest load period (100) is Tuesday 1.30 local time. Everything ran okay all day Friday, so I got my repreve :) -- ian j hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA36C97.3EDB3FAE>