Re: Still confused why working set larger than virtual memory
- From: George <George@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 12 Jan 2008 23:12:00 -0800
Thanks Ondrej,
Two more comments,
1.
Your described sample is interesting. Have you experienced any situations
when working set (counter in Perfmon) is larger than virtual memory (counter)?
2.
I think in your below case, you mentioned the file map pages are not counted
as part of the working set. How do you know that? Which tool/technique you
are using to check some specific page belongs to working set or not?
regards,
George
"Ondrej Spanel" wrote:
.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?
There is one special case with filemapping - you may have pages
allocated in a physical memory (be it RAM or page file), which have no
virtual address mapped. You can address such memory by creating a view
to it, use it, and then unmap again. To identify the location you use
the position in the file, and the memory is still committed even when
you do not have any virtual address mapped to it. Each time after you
map the view, you will get a soft page fault on first access, not the
hard one.
However, while this technique is definitely interesting, I never seen
such pages to be reported as a part of the working set (I am using
Process Explorer though, not PerfMon as you do).
(You might perhaps also find my reply to your older topic "File map
performance" of some interest)
Regards
Ondrej
- Follow-Ups:
- Re: Still confused why working set larger than virtual memory
- From: Ondrej Spanel
- Re: Still confused why working set larger than virtual memory
- References:
- Re: Still confused why working set larger than virtual memory
- From: Ondrej Spanel
- Re: Still confused why working set larger than virtual memory
- Prev by Date: Re: including .bmp in resource.h
- Next by Date: Re: unexpected exception handler
- Previous by thread: Re: Still confused why working set larger than virtual memory
- Next by thread: Re: Still confused why working set larger than virtual memory
- Index(es):
Relevant Pages
|