[comp.databases] Locking errors

caanders@sactoh0.UUCP (Chris A. Anderson) (03/31/89)

I'm having a nasty problem with locking using C-ISAM (v. 1.20)
on a Plexus P-95 (SysV.2 K1.7 k80 m68).

Specifically, we're getting a errno=34 when a program attempts to
open a file.  In <sys/errno.h>, this is doubly defined: as ERANGE,
and as EDEADLK.  Informix thinks that EDEADLK is the most probable
definition for errno=34 in this case. Lock table overflow seems to
be the most likely reason to get EDEADLK... in <sys/params.h>, NFLOCK
is defined as 100.  We've confirmed by testing that lock table over-
flow is what the problem is.

How do we change NFLOCK? To relink the kernel we'd need some source
from Plexus (this may be difficult :-) ).  Is there any other way?
If we did redefine NFLOCK, what other side-effects could we run 
into?  Any help would be appreciated!

Thanks in advance.

Chris
--
Chris Anderson				email: ...!pacbell!sactoh0!utgard!chris
QMA, Inc.					   or: ...!csusac!fenris
--------------------------------------------------------------------

jfh@rpp386.Dallas.TX.US (John F. Haugh II) (04/03/89)

In article <792@sactoh0.UUCP> caanders@sactoh0.UUCP (Chris A. Anderson) writes:
>How do we change NFLOCK? To relink the kernel we'd need some source
>from Plexus (this may be difficult :-) ).  Is there any other way?
>If we did redefine NFLOCK, what other side-effects could we run 
>into?  Any help would be appreciated!

Oh Boy ...

Edit the file /usr/src/uts/m68/cf/conf.c and locate the line
containing '#define NFLOCK' and change that number to your
favorite value.  I think Plexus does something with NPROC.
Try doubling whatever value they provide.

You will have to relink your kernel next.  There should be
a shell script in /usr/src/uts/:mkuts, or something like that.
Execute that shell script and then go looking for the output.

You don't need anything more than conf.c [ or c.c ] to
regenerate most of your kernels.
-- 
John F. Haugh II                        +-Quote of the Week:-------------------
VoiceNet: (214) 250-3311   Data: -6272  | "Do not drink and bake"
InterNet: jfh@rpp386.Dallas.TX.US       |         -- Arnold Swartzenegger
UucpNet : <backbone>!killer!rpp386!jfh  +--------------------------------------