Solved Private Bytes vs Working Set

Status
Not open for further replies.

Dieselman

Level 1
Thread author
Mar 26, 2011
762
Since it was brought up earlier I found a good article for all to read.

Private Bytes are a reasonable approximation of the amount of memory your executable is using and can be used to help narrow down a list of potential candidates for a memory leak; if you see the number growing and growing constantly and endlessly, you would want to check that process for a leak. This cannot, however, prove that there is or is not a leak.

http://stackoverflow.com/questions/1984186/what-is-private-bytes-virtual-bytes-working-set

I found another article also. So if you are looking for a memory leak then use Private Bytes. If you just looking for average memory usage then use Working Set.

http://support.microsoft.com/kb/2267427
 

Dieselman

Level 1
Thread author
Mar 26, 2011
762
http://blogs.msdn.com/b/ricom/archive/2005/08/01/446329.aspx

http://shsc.info/WindowsMemoryManagement

http://cybernetnews.com/cybernotes-windows-memory-usage-explained/
 
Upvote 0

bogdan

Level 1
Jan 7, 2011
1,362
Another thing to mention is that Task Manager under Windows XP shows Working Set as RAM usage, while the version of Task Manager from Windows 7 shows Private Working Set.

From CyberNotes:
The private working set is the amount of memory used by a process that cannot be shared among other processes, while working set includes the memory shared by other processes.
 
Upvote 0

Dieselman

Level 1
Thread author
Mar 26, 2011
762
Yes so rule of thumb for normal memory usage is go by "Private Working Set". When looking for a potential memory leak go by Private Bytes.
 
Upvote 0

LaserWraith

Level 1
Feb 24, 2011
497
Okay, thanks for the articles. I use the "WS Private" column in Process Explorer, which is, I guess, the best one (since I'm not searching for a memory leak).

BTW, this is a very technical article I found from one of those links: http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx

I didn't understand a lot of it. :p
 
Upvote 0

bogdan

Level 1
Jan 7, 2011
1,362
Mark is the author of Process Explorer (and all other Sysinternals tools) all his blogposts are interesting. Thanks for sharing/reminding.
 
Upvote 0
Status
Not open for further replies.

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top