UseOpportunisticLocking
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
Data type | Range | Default value |
---|---|---|
REG_DWORD |
0 | 1 |
1 |
Specifies whether the opportunistic-locking (oplock) performance enhancement is enabled. If enabled, the redirector requests an opportunistic lock on any file opened in "Deny None" mode. As a result, the server performs automatic read-ahead and write-behind caching on behalf of the redirector.
Value | Meaning |
---|---|
0 |
Disables opportunistic locking |
1 |
Enables opportunistic locking |
This entry does not exist in the registry by default. You can add it by using the registry editor Regedit.exe.
Note
- Opportunistic locks improve performance significantly. Do not change the value of this entry unless you are testing the system.