Virtual Memory Management Lock Trace

Virtual Memory Management implements a logging function that records successful attempts to lock and unlock memory pages.

Memory locking and unlocking is implemented by the Memory Management routines: VMLockMem and VMUnlock. This routine is available directly to all kernel components and indirectly to device drivers through:

and to file system drivers through:

The VM lock trace is activated by setting bit 0 of the VM log flag double-word to 1. The flag double word is located at symbol: _VMLogFlags. Since no function is currently assigned to the other bit positions so the lock log may be effectively turned on by setting the byte a _VMLogFlags to 0xff as in the following example:

e _vmlogflags
%fff0127c  00.
ff
##g
L base fff32  size 2 flags 1  hob 16 hptda 3b9 ret fff3e551
L base 15e0  size 1 flags 4  hob 4a4 hptda 91 ret fff5a93c
L base 3f  size 1 flags 4  hob 188 hptda 91 ret fff5a93c
U base 15e0  size 1 flags 4  hob 4a4 hptda 91 ret fff5a983
U base 3f  size 1 flags 4  hob 188 hptda 91 ret fff5a983
L base 15e0  size 1 flags 4  hob 4a4 hptda 91 ret fff5a93c
L base 3f  size 1 flags 4  hob 188 hptda 91 ret fff5a93c
U base 15e0  size 1 flags 4  hob 4a4 hptda 91 ret fff5a983
U base 3f  size 1 flags 4  hob 188 hptda 91 ret fff5a983
L base fff35  size 3 flags 1  hob 16 hptda 4a4 ret fff3e551
L base fe79c  size 4 flags 0  hob 3 hptda 380 ret fff49ec6
U base fe79c  size 4 flags 0  hob 3 hptda 380 ret fff3d173


The fields displayed in each lock trace entry are formatted from the constituent parts of the corresponding lock handle. They are defined as follows:

L

U base size flags hob hptda ret

Related information on memory locking may be found under the description of the Kernel Debugger .MO command.

The latest versions of OS/2 2.11 and OS/2 3.0 have implmented a new Kernel Debugger command that facilitates an alternative method for analysing memory locking problems. See the Kernel Debugger .MK command command for details.


[Back: Forcing a System Dump from the Kernel Debugger]
[Next: Virtual Memory Management System Heap Validation]