Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Se Physical Memory Size

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a mathematical application project in Visual C++ for a research at school. Sometimes the project needs to locate large memory space by "malloc()" functions. My machine has 128M memory. For some reason, the memory (fault) swap is kicked in after 26M of the memory is allocated by the system. Then it is extremely slow. I add another 128M RAM to the machine, and then it pushes the limit to 55M. But my project eventually will require 200M space (even more).

Microsoft people told me to use function "setprocessworkingsetsize" to set the physical memory size. For that, I have to install Window 2000. The function "setprocessworkingsetsize" works up to 136M. But the problem stays. When I use the memory more than 55 M (with 256M main memory), the memory swap begins just like before under Window 98.

I have more than enough main memory space. And what I really need is to set the physical memory size (or working set) to avoid the memory swap. Any suggestion?

Thanks for the attention.
 
As i can see, you push your system to the limits. The only way is to add more memory. I already got a server to develop wich took 1Gb of memory. To run the server properly, we needed to add an additional 512Mb ram (1.5 gb). The function "SetProcessWorkingSetSize" works correctly, the problem is the memory that is already allocated by Windows and it's services/drivers.

A solution may be re-design how you use memory (block usage) or add more memory !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top