Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what about Serial Port ? Pin
CPallini12-Jan-08 2:44
mveCPallini12-Jan-08 2:44 
QuestionDeclare, define a varibale in a windows form application Pin
Manfr3d11-Jan-08 4:50
Manfr3d11-Jan-08 4:50 
QuestionRe: Declare, define a varibale in a windows form application Pin
David Crow11-Jan-08 5:00
David Crow11-Jan-08 5:00 
GeneralRe: Declare, define a varibale in a windows form application Pin
Matthew Faithfull11-Jan-08 5:01
Matthew Faithfull11-Jan-08 5:01 
QuestionRe: Declare, define a varibale in a windows form application Pin
Hamid_RT11-Jan-08 5:17
Hamid_RT11-Jan-08 5:17 
GeneralRe: Declare, define a varibale in a windows form application Pin
Manfr3d12-Jan-08 1:44
Manfr3d12-Jan-08 1:44 
GeneralRe: Declare, define a varibale in a windows form application Pin
Hamid_RT12-Jan-08 7:38
Hamid_RT12-Jan-08 7:38 
GeneralStill confused why working set larger than virtual memory Pin
George_George11-Jan-08 3:35
George_George11-Jan-08 3:35 
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
GeneralRe: Still confused why working set larger than virtual memory Pin
Matthew Faithfull11-Jan-08 4:59
Matthew Faithfull11-Jan-08 4:59 
GeneralRe: Still confused why working set larger than virtual memory Pin
CPallini11-Jan-08 5:07
mveCPallini11-Jan-08 5:07 
GeneralRe: Still confused why working set larger than virtual memory Pin
George_George12-Jan-08 3:44
George_George12-Jan-08 3:44 
GeneralRe: Still confused why working set larger than virtual memory [modified] Pin
CPallini12-Jan-08 4:26
mveCPallini12-Jan-08 4:26 
GeneralRe: Still confused why working set larger than virtual memory Pin
George_George12-Jan-08 3:48
George_George12-Jan-08 3:48 
QuestionRe: Still confused why working set larger than virtual memory Pin
David Crow11-Jan-08 5:02
David Crow11-Jan-08 5:02 
GeneralRe: Still confused why working set larger than virtual memory Pin
George_George12-Jan-08 3:44
George_George12-Jan-08 3:44 
General[Message Deleted] Pin
Le@rner11-Jan-08 1:03
Le@rner11-Jan-08 1:03 
GeneralRe: problem in binary file reading? PinPopular
toxcct11-Jan-08 1:11
toxcct11-Jan-08 1:11 
GeneralRe: problem in binary file reading? Pin
Maximilien11-Jan-08 1:13
Maximilien11-Jan-08 1:13 
GeneralRe: problem in binary file reading? Pin
toxcct11-Jan-08 1:53
toxcct11-Jan-08 1:53 
GeneralRe: problem in binary file reading? Pin
CPallini11-Jan-08 2:08
mveCPallini11-Jan-08 2:08 
GeneralRe: problem in binary file reading? Pin
toxcct11-Jan-08 2:11
toxcct11-Jan-08 2:11 
GeneralRe: problem in binary file reading? Pin
toxcct11-Jan-08 3:51
toxcct11-Jan-08 3:51 
GeneralRe: problem in binary file reading? Pin
CPallini11-Jan-08 4:04
mveCPallini11-Jan-08 4:04 
GeneralRe: problem in binary file reading? Pin
toxcct11-Jan-08 4:09
toxcct11-Jan-08 4:09 
GeneralRe: problem in binary file reading? Pin
Justin Perez11-Jan-08 4:12
Justin Perez11-Jan-08 4:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.