Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
Upcoming OSR Seminars | ||
---|---|---|
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead! | ||
Internals & Software Drivers | 19-23 June 2023 | Live, Online |
Writing WDF Drivers | 10-14 July 2023 | Live, Online |
Kernel Debugging | 16-20 October 2023 | Live, Online |
Developing Minifilters | 13-17 November 2023 | Live, Online |
Comments
> is there any way to get total size of allocated memory from a app crash dump?
> I know !heap can return details for specific heap, but is there a way to display total size directly?
I'm not sure "total size of allocated memory" has any meaning. What are
you hoping to do with this information? Are you looking for kernel-mode
memory, or user-mode memory for one process, or for all processes?
--
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
It is about user mode memory, I want to know this because I occasionally see memory allocation failure when analyzing user uploaded dumps, I want to confirm if it is really caused by memory leak.
Regards
Herb
—
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
@op you can use !vm with 0x10 flag which might provide what you are looking for
Pid ImageName Commit SharedCommit Debt
8c0 firefox.exe 147972 Kb 0 Kb 0 Kb
af0 firefox.exe 69472 Kb 0 Kb 0 Kb
f40 firefox.exe 65856 Kb 0 Kb 0 Kb
500 AvastSvc.exe 64144 Kb 0 Kb 0 Kb
384 svchost.exe 63872 Kb 0 Kb 0 Kb
ea4 firefox.exe 43980 Kb 0 Kb 0 Kb
ce4 firefox.exe 43564 Kb 0 Kb 0 Kb
d6c explorer.exe 40400 Kb 0 Kb 0 Kb
!process pid 7 results below for process d6c explorer.exe
kd> !process 0d6c 7
Searching for Process with Cid == d6c
PROCESS 8658f518 SessionId: 1 Cid: 0d6c Peb: 7ffdf000 ParentCid: 0d5c
DirBase: 7e235440 ObjectTable: cac07978 HandleCount: 796.
Image: explorer.exe
VadRoot 8522e180 Vads 463 Clone 0 Private 8001. Modified 8118. Locked 0.
DeviceMap c9c11910
Token ca7e17f8
ElapsedTime 05:10:56.310
UserTime 00:00:10.904
KernelTime 00:00:17.550
QuotaPoolUsage[PagedPool] 444756
QuotaPoolUsage[NonPagedPool] 35340
Working Set Sizes (now,min,max) (11134, 50, 345) (44536KB, 200KB, 1380KB)
PeakWorkingSetSize 15292
VirtualSize 253 Mb
PeakVirtualSize 311 Mb
PageFaultCount 90501
MemoryPriority BACKGROUND
BasePriority 8
CommitCharge 10100
THREAD 851d3d48 Cid 0d6c.0d70 Teb: 7ffde000 Win32Thread:
ffb96788 WAIT: (WrUserRequest) UserMode Non-Alertable
85316218 SynchronizationEvent
Not impersonating
DeviceMap c9c11910
On 3/6/18, Tim Roberts <[email protected]> <[email protected]> wrote:
> The information in !process <pid> 7 should show you memory statistics like
> this.
> —
> Tim Roberts, [email protected]
> Providenza & Boekelheide, Inc.
>
>
> ---
> WINDBG is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software
> drivers!
> Details at <http://www.osr.com/seminars>
>
> To unsubscribe, visit the List Server section of OSR Online at
> <http://www.osronline.com/page.cfm?name=ListServer>
>