Defrag Tools: #48 - WPT - Memory Analysis - Pool

Download

Right click “Save as…”

In this episode of Defrag Tools, Andrew Richards, Chad Beeder and Larry Larsen continue walking you through the Windows Performance Toolkit (WPT). This is part 1 of 3 episodes on memory usage/leaks. Example xPerf scripts.

Resources:
Defrag Tools: #6 - RAMMap
Defrag Tools: #22 - WinDbg - Memory Kernel Mode
Pushing the Limits of Windows: Paged and Nonpaged Pool
Sysinternals RAMMap
Sysinternals LiveKd
Windows Internals Book - NotMyFault

Timeline:
[00:00] - Paged and Nonpaged Pool
[03:10] - RAMMap
[06:23] - LiveKd - !poolused 2
[08:22] - xperf -on PROC_THREAD+LOADER+POOL -stackwalk ...
[09:00] - NotMyFault
[09:55] - WPA
[10:50] - Type - Allocated Inside (AI) & Outside (AO), Freed Inside (FI) & Outside (FO)
[14:33] - Summary

Example: "xperf - Collect Pool.cmd"

@echo off
echo Press a key when ready to start...
pause

echo .
echo ...Capturing...
echo .

xperf -on PROC_THREAD+LOADER+POOL -stackwalk PoolAlloc+PoolFree+PoolAllocSession+PoolFreeSession -BufferSize 1024 -MinBuffers 256 -MaxBuffers 256 -MaxFile 256 -FileMode Circular

echo Press a key when you want to stop...
pause
echo .
echo ...Stopping...
echo .

xperf -stop -d pool.etl

Tags:

Follow the Discussion

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.