HighTechTalks DotNet Forums  

Private Bytes vs Virtual Bytes

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Private Bytes vs Virtual Bytes in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Prasanna Padmanabhan
 
Posts: n/a

Default Private Bytes vs Virtual Bytes - 02-14-2007 , 02:07 PM






Can someone explain to me in detail the difference between thse two
counters?

From what I understand, private bytes does not include any shared memory
(eg: shared dlls b/w 2 processes). But what about virtual bytes? Is Virtual
bytes the same as Private bytes + <DLLs in this proceeses virtual address
space that are shared by other processes>?

Also, in one instance (for the explorer.exe process on my machine) I found
Private bytes to be more than Virtual bytes. Can someone explain the
reasons?

Thanks
Prasanna



Reply With Quote
  #2  
Old   
Shaun C McDonnell
 
Posts: n/a

Default Re: Private Bytes vs Virtual Bytes - 02-14-2007 , 02:27 PM






Prasanna,

This article should help you:

http://msdn2.microsoft.com/en-us/library/ms972959.aspx

Let me know if you have anymore questions.

Shaun McDonnell

"Prasanna Padmanabhan" <prasannap (AT) citrixnospamtolerated (DOT) com> wrote in
message news:u3biTtGUHHA.5100 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
Can someone explain to me in detail the difference between thse two
counters?

From what I understand, private bytes does not include any shared memory
(eg: shared dlls b/w 2 processes). But what about virtual bytes? Is
Virtual bytes the same as Private bytes + <DLLs in this proceeses virtual
address space that are shared by other processes>?

Also, in one instance (for the explorer.exe process on my machine) I found
Private bytes to be more than Virtual bytes. Can someone explain the
reasons?

Thanks
Prasanna


Reply With Quote
  #3  
Old   
Prasanna Padmanabhan
 
Posts: n/a

Default Re: Private Bytes vs Virtual Bytes - 02-15-2007 , 09:21 AM



Thats I did actually read that article. I should have mentioned in my first
post.

I am not looking particularly at .NET apps, but general unmanaged apps.

So for example, I don't see that the Virtual Buyes is more than Private
bytes for 600 MB.In fact, Private bytes is more. Is private bytes a
constituent of virtual bytes?


"Shaun C McDonnell" <sm-nospammmmmers (AT) eisoft (DOT) com> wrote

Quote:
Prasanna,

This article should help you:

http://msdn2.microsoft.com/en-us/library/ms972959.aspx

Let me know if you have anymore questions.

Shaun McDonnell

"Prasanna Padmanabhan" <prasannap (AT) citrixnospamtolerated (DOT) com> wrote in
message news:u3biTtGUHHA.5100 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Can someone explain to me in detail the difference between thse two
counters?

From what I understand, private bytes does not include any shared memory
(eg: shared dlls b/w 2 processes). But what about virtual bytes? Is
Virtual bytes the same as Private bytes + <DLLs in this proceeses virtual
address space that are shared by other processes>?

Also, in one instance (for the explorer.exe process on my machine) I
found Private bytes to be more than Virtual bytes. Can someone explain
the reasons?

Thanks
Prasanna




Reply With Quote
  #4  
Old   
Harald Ums \(2179630\)
 
Posts: n/a

Default Re: Private Bytes vs Virtual Bytes - 02-24-2007 , 04:53 AM



Private bytes are that part of the memory that is not shared between
processes typically that data your process can write to.

- read only data like executable code and constant strings can be shared
between process and are usally not part of the private bytes
- read/write data is not sharable and so is part of the private bytes. For a
managed application this includes the manged heaps


vadump and pview are good tools when you want to experiment ...


"Prasanna Padmanabhan" <prasannap (AT) citrixnospamtolerated (DOT) com> wrote in
message news:eS5lfyQUHHA.3980 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Thats I did actually read that article. I should have mentioned in my
first post.

I am not looking particularly at .NET apps, but general unmanaged apps.

So for example, I don't see that the Virtual Buyes is more than Private
bytes for 600 MB.In fact, Private bytes is more. Is private bytes a
constituent of virtual bytes?


"Shaun C McDonnell" <sm-nospammmmmers (AT) eisoft (DOT) com> wrote in message
news:10FFA59D-1AD8-4A18-9AF9-C6834F290E0D (AT) microsoft (DOT) com...
Prasanna,

This article should help you:

http://msdn2.microsoft.com/en-us/library/ms972959.aspx

Let me know if you have anymore questions.

Shaun McDonnell

"Prasanna Padmanabhan" <prasannap (AT) citrixnospamtolerated (DOT) com> wrote in
message news:u3biTtGUHHA.5100 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Can someone explain to me in detail the difference between thse two
counters?

From what I understand, private bytes does not include any shared memory
(eg: shared dlls b/w 2 processes). But what about virtual bytes? Is
Virtual bytes the same as Private bytes + <DLLs in this proceeses
virtual address space that are shared by other processes>?

Also, in one instance (for the explorer.exe process on my machine) I
found Private bytes to be more than Virtual bytes. Can someone explain
the reasons?

Thanks
Prasanna





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.