Opportunistic File Locking

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

If I set the value data for "EnableOpLocks" to 0 on a
2000 server machine, will i also need to add the
key "EnableOpLocks" and set the value data on the
workstation as well.

My understanding is: When using Opportunistic file
locking on the server, it is recommended to use it on the
stations as well so the server doesn't have to handle all
the requests; so in return if the server doesn't have
Op_Locks enabled then I shouldn't have to worry about the
stations.

If someone could please reply and let me know if this is
correct i would really appreciate it.

Thanks
 
Hi, Ryan -

You realize disabling opportunistic locking is liable to
cause a performance hit on the server, right?

That said, it's also my understanding that OpLock
settings must match. Please note that the registry
locations are not the same for servers and workstations.

For servers the keys have to be created in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanma
nServer\Parameters

and for workstations they'd be in

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lanma
nWorkstation\Parameters

OpLocks are enabled by default in both servers and
workstations. The appropriate registry kepys will need
to be created to disable opportunistic locking.

hth -
 
Back
Top