From owner-freebsd-ports Sat Sep 15 7:58:48 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pc1-cove4-0-cust214.bir.cable.ntl.com (pc1-cove4-0-cust214.bir.cable.ntl.com [213.105.93.214]) by hub.freebsd.org (Postfix) with ESMTP id 484C537B417; Sat, 15 Sep 2001 07:58:35 -0700 (PDT) Received: from ntlworld.com (alpha.private [192.168.0.2]) (authenticated) by pc1-cove4-0-cust214.bir.cable.ntl.com (8.11.3/8.11.3) with ESMTP id f8FEwVm32703 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO); Sat, 15 Sep 2001 15:58:34 +0100 (BST) (envelope-from ianjhart@ntlworld.com) Message-ID: <3BA36C97.3EDB3FAE@ntlworld.com> Date: Sat, 15 Sep 2001 15:58:31 +0100 From: ian j hart X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: ports@FreeBSD.ORG, dwcjr@FreeBSD.ORG Subject: Re: samba oplocks (was samba PDC / kernel tuning) References: <3B9FE85A.4D33E107@ntlworld.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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