help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] private bytes as vsize in w32.c system_process_attributes()


From: Eli Zaretskii
Subject: Re: [h-e-w] private bytes as vsize in w32.c system_process_attributes()
Date: Fri, 26 Oct 2012 09:27:30 +0200

> From: Mike Small <address@hidden>
> Date: Thu, 25 Oct 2012 16:39:05 -0400
> 
> I tried proced in emacs 23.3 under Windows XP and saw something I
> thought was unusual in its process information. Certain applications
> display with a significantly smaller VSize than RSS. I believe this is
> because system_process_attributes() in w32.c uses the PrivateUsage field
> from the PROCESS_MEMORY_COUNTERS_EX structure returned by
> get_process_memory_info(). PrivateUsage excludes memory shareable with
> other processes, say because it's from loaded dll segments. The following page
> suggests using 
> MEMORYSTATUSEX.ullTotalVirtual - MEMORYSTATUSEX.ullAvailVirtual 
> from GlobalMemoryStatusEx() for virtual size (see the Virtual Bytes row):
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa965225%28v=vs.85%29.aspx#process_memory_performance_information
> 
> Is the current choice intentional?

Yes, it is.  The intent is to display the VM signature of that
specific process.  Bloating the number just because it maps in many
system DLLs doesn't seem like a good idea, especially since the RSS
column already tells you how much of the footprint is actually
resident.

The VSize column was designed to show the same value as "Mem Usage" in
the Task Manager.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]