I have been monitoring my minifilter and fltmgr to check for memory leaks
using Driver Verifier. I fixed a couple in my filter and it is now showing
CurrentPagedPoolAllocations: 0 and CurrentNonPagedPoolAllocations: 0 as it’s
normal state.
Fltmgr, however, seems to be continually growing its memory usage.
Is it just caching filenames or is it something to be concerned about?
Are there limits that it will grow until and then start recycling memory?
Using the Windbg extension !verifier shows many pool entries of the form:
834baec8 0x00000134 FMfn bb5aad0d
I have been through all of my Fltxxx routine calls and released any
resources returned by the filter manager when I have finished with them.
I am running on WXP SP2 checked build.
These are the outputs from the driver verifier before and after some filter
activity.
C:\Documents and Settings\Administrator>verifier /query
23/08/2005, 10:21:25
Level: 000000BB
RaiseIrqls: 3609
AcquireSpinLocks: 0
SynchronizeExecutions: 0
AllocationsAttempted: 1717
AllocationsSucceeded: 1717
AllocationsSucceededSpecialPool: 1717
AllocationsWithNoTag: 0
AllocationsFailed: 0
AllocationsFailedDeliberately: 0
Trims: 0
UnTrackedPool: 0
Verified drivers:
Name: fltmgr.sys, loads: 1, unloads: 0
CurrentPagedPoolAllocations: 169
CurrentNonPagedPoolAllocations: 30
PeakPagedPoolAllocations: 169
PeakNonPagedPoolAllocations: 33
PagedPoolUsageInBytes: 51256
NonPagedPoolUsageInBytes: 27168
PeakPagedPoolUsageInBytes: 51256
PeakNonPagedPoolUsageInBytes: 27932
Name: filefilterdriver.sys, loads: 2, unloads: 1
CurrentPagedPoolAllocations: 0
CurrentNonPagedPoolAllocations: 0
PeakPagedPoolAllocations: 4
PeakNonPagedPoolAllocations: 6
PagedPoolUsageInBytes: 0
NonPagedPoolUsageInBytes: 0
PeakPagedPoolUsageInBytes: 1440
PeakNonPagedPoolUsageInBytes: 24836
C:\Documents and Settings\Administrator>
23/08/2005, 10:23:22
Level: 000000BB
RaiseIrqls: 3672
AcquireSpinLocks: 0
SynchronizeExecutions: 0
AllocationsAttempted: 1725
AllocationsSucceeded: 1725
AllocationsSucceededSpecialPool: 1725
AllocationsWithNoTag: 0
AllocationsFailed: 0
AllocationsFailedDeliberately: 0
Trims: 0
UnTrackedPool: 0
Verified drivers:
Name: fltmgr.sys, loads: 1, unloads: 0
CurrentPagedPoolAllocations: 173
CurrentNonPagedPoolAllocations: 29
PeakPagedPoolAllocations: 173
PeakNonPagedPoolAllocations: 33
PagedPoolUsageInBytes: 52488
NonPagedPoolUsageInBytes: 26916
PeakPagedPoolUsageInBytes: 52488
PeakNonPagedPoolUsageInBytes: 27932
Name: filefilterdriver.sys, loads: 2, unloads: 1
CurrentPagedPoolAllocations: 0
CurrentNonPagedPoolAllocations: 0
PeakPagedPoolAllocations: 4
PeakNonPagedPoolAllocations: 6
PagedPoolUsageInBytes: 0
NonPagedPoolUsageInBytes: 0
PeakPagedPoolUsageInBytes: 1440
PeakNonPagedPoolUsageInBytes: 24836
C:\Documents and Settings\Administrator>
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************