| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"George2" |
| Date: |
11 Jan 2008 08:39:04 AM |
| Object: |
Still confused why working set larger than virtual memory |
Hello everyone,
Sorry that this question is related to another question I posted some
time before because I have some new findings and self-analysis.
My question is why sometimes from perfmon on Windows, working set
larger than virtual memory? I think virtual memory is the total size
of memory (committed, reserved, shared, private) and working set is
just the RAM touched by current process currently. Virtual memory
should always larger than working set...
But, I write a simple program to show working set is larger than
virtual memory from perfmon. The program is simple, just open a couple
of memory map files and read from beginning to the end.
The only reason I could think of why working set sometimes is larger
than virtual memory is, the OS memory management component may not
reclaim some RAM consumed by current process even if the current
process does not use the RAM. And keeping such RAM could improve
performance if the process will use it in the future. But this point
makes me confused because I think if it is true, such RAM does not
have related virtual memory address, how could the current process
utilize or even address (re-use to avoid hard page fault) it in the
future?
thanks in advance,
George
.
|
|
| User: "Victor Bazarov" |
|
| Title: Re: Still confused why working set larger than virtual memory |
11 Jan 2008 09:06:48 AM |
|
|
George2 wrote:
Sorry that this question is related to another question I posted some
time before because I have some new findings and self-analysis.
Please, before going any further, do some self-analysis on the matter
of posting to the right newsgroup.
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.
|
|
|
|
| User: "=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=" |
|
| Title: Re: Still confused why working set larger than virtual memory |
11 Jan 2008 11:46:04 AM |
|
|
On 2008-01-11 15:39, George2 wrote:
Hello everyone,
Sorry that this question is related to another question I posted some
time before because I have some new findings and self-analysis.
For two days in a row you have posted more or less the same question,
and for two days in a row you have been told that this is not the right
group to ask in. If you still can not understand that this is not the
right group to ask in I doubt that you can understand why your working
set is larger than the virtual memory either.
--
Erik Wikström
.
|
|
|
|

|
Related Articles |
|
|