Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCP & UDP! Pin
Jon Sagara2-Dec-01 13:53
Jon Sagara2-Dec-01 13:53 
GeneralRe: Basic UDP Connection Pin
Jon Sagara2-Dec-01 10:50
Jon Sagara2-Dec-01 10:50 
GeneralRetrieving dialog box values Pin
2-Dec-01 7:24
suss2-Dec-01 7:24 
GeneralRe: Retrieving dialog box values Pin
Igor Sukhov2-Dec-01 12:48
Igor Sukhov2-Dec-01 12:48 
Generaltoolbar buttons problem Pin
2-Dec-01 6:09
suss2-Dec-01 6:09 
GeneralRe: toolbar buttons problem Pin
Igor Sukhov2-Dec-01 6:11
Igor Sukhov2-Dec-01 6:11 
GeneralRe: toolbar buttons problem Pin
2-Dec-01 15:27
suss2-Dec-01 15:27 
GeneralSetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 6:05
John M. Drescher2-Dec-01 6:05 
I have an application that needs 2GB + of virtual memory and when the memory load goes over a certain point the system starts thrashing and continues to do so for over 10 minutes. I have worked hard to optimize the application by the use of memory mapped files and other optimization techniques. The problem would be solved if I could reduce the size of the working set of my main process and all its child processes when then memory load goes over a certain point. My issue is that when you call SetProcessWorkingSetSize on a background process Win2k will minimize the working set size regardless of the parameters you pass. The problem is that is definitely not what I want to happen. The background processes hold image data I don’t want to be fully paged out. I just want the process to trim the working set by say 10%. Is this possible? One idea to get around this problem is to issue a VirtualLock on the percentage of image data that I need to keep in the process working set then set the working set then issue a VirtualUnlock. Do you think this would work? Can you issue a VirtualLock on a memory mapped region?

Thanks in Advance,
John M. Drescher
Hardware and Data Specialist / Programmer III
University of Pittsburgh Radiology Department
http://www.geocities.com/SiliconValley/Haven/1654/
jdrescher@geocities.com



GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
Gert Boddaert2-Dec-01 7:36
Gert Boddaert2-Dec-01 7:36 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 8:07
John M. Drescher2-Dec-01 8:07 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
Tim Smith2-Dec-01 8:37
Tim Smith2-Dec-01 8:37 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 17:01
John M. Drescher2-Dec-01 17:01 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher3-Dec-01 6:21
John M. Drescher3-Dec-01 6:21 
Generalproblem with socket Pin
Fumiseki2-Dec-01 4:59
Fumiseki2-Dec-01 4:59 
GeneralRe: problem with socket Pin
markkuk3-Dec-01 1:52
markkuk3-Dec-01 1:52 
GeneralChanging bitmap of single toolbar button Pin
Erik Hammar2-Dec-01 2:06
Erik Hammar2-Dec-01 2:06 
GeneralRe: Changing bitmap of single toolbar button Pin
Steve L.2-Dec-01 5:15
Steve L.2-Dec-01 5:15 
QuestionHow to get rid of Visual Studio's automatic debugging? Pin
1-Dec-01 23:30
suss1-Dec-01 23:30 
AnswerRe: How to get rid of Visual Studio's automatic debugging? Pin
Michael P Butler2-Dec-01 1:32
Michael P Butler2-Dec-01 1:32 
GeneralError Starting Program Pin
SixString1-Dec-01 18:02
SixString1-Dec-01 18:02 
GeneralRe: Error Starting Program Pin
Michael P Butler2-Dec-01 1:39
Michael P Butler2-Dec-01 1:39 
GeneralDefine controller in VC 7 Pin
mazy1-Dec-01 17:52
mazy1-Dec-01 17:52 
GeneralSTL to: Cin, Cout, ifstream & ofstream Pin
valikac1-Dec-01 16:32
valikac1-Dec-01 16:32 
GeneralRe: STL to: Cin, Cout, ifstream & ofstream Pin
Michael P Butler2-Dec-01 1:42
Michael P Butler2-Dec-01 1:42 
GeneralRe: STL to: Cin, Cout, ifstream & ofstream Pin
Igor Sukhov2-Dec-01 6:05
Igor Sukhov2-Dec-01 6:05 

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.