john-peterson / windows

0 stars 0 forks source link

Memory accounting #2

Open john-peterson opened 11 years ago

john-peterson commented 11 years ago

Memory accounting

Post location

This post is at https://github.com/mirror/windows/issues/2 rather than at http://forum.sysinternals.com/topic29265_post139306.html because of the reason in the topic "Post location"

Problem

How is process affiliation determined for non-"Process Private" memory? with the goal of determining

Process         11 951 592 K
Process Private 11 951 592 K

Files           5 897 644 K
Mapped File     2 808 204 K
Metafile        3 089 440 K

What process?   15 578 816 K

Memory

systeminfo | find "Memory"
Total Physical Memory:     32 645 MB
Available Physical Memory: 2 358 MB
Virtual Memory: Max Size:  35 643 MB
Virtual Memory: Available: 3 863 MB
Virtual Memory: In Use:    31 780 MB

GUI text from RamMap from `sysexp.exe`
Usage            Total            Active           Standby          Modified         Modified no write Transition     Zeroed            Free        Bad
Process Private  11 951 592 K     11 941 980 K     2 792 K          6 820 K                                                                                               
Mapped File      2 808 204 K      1 708 716 K      1 086 176 K      13 312 K                                                                                              
Shareable        5 607 248 K      5 591 412 K      2 144 K          13 692 K                                                                                              
Page Table       112 916 K        112 856 K        60 K                                                                                                                   
Paged Pool       6 215 028 K      6 203 588 K      11 288 K         152 K                                                                                                 
Nonpaged Pool    3 315 680 K      3 315 672 K                                                         8 K                                                                 
System PTE       61 816 K         61 816 K                                                                                                                                
Session Private  168 344 K        168 344 K                                                                                                                               
Metafile         3 089 440 K      3 080 300 K      9 128 K                           12 K                                                                                 
AWE                                                                                                                                                                       
Driver Locked    56 416 K         56 416 K                                                                                                                                
Kernel Stack     36 360 K         34 476 K         4 K              1 880 K                                                                                               
Unused           5 008 K                                                                                               3 220 K          1 788 K                           
Large Page                                                                                                                                                                
Total            33 428 052 K     32 275 576 K     1 111 592 K      35 856 K         12 K             8 K              3 220 K          1 788 K                          

uptime
13:36:04 up 19 days, 13:46,  0 users,  load average: 0.00, 0.00, 0.00

System

ver
Microsoft Windows [Version 6.1.7601]
john-peterson commented 10 years ago

RAMMap and Process Explorer text output

Problem

How is memory information in the same presentation as "RAMMap" and "Process Explorer" written to text from the command line?

Why doesn't "RAMMap" and "Process Explorer" have the option to write its information to text?