Quote: Originally Posted by yonatan
I need a certain program to run as fast as possible, but the problem is that it has to access the hard disk sometimes, and it slows the program's performance.
Is it possible to load the entire program to the RAM, so that the access time will be minimal??
My computer specs: AMD Phenom 2 Quad-Core 3.4 Ghz
4 Gb of RAM
Windows 7 64-bit
Windows memory management is going to page to disk only when necessary. You could turn off the swap file but that would not be advisable.
The whole point of an O/S (particularly an advanced one) is to abstract the system so your application doesn't have to do memory management on its own. With 4GB of main memory I doubt you're going to even have to worry about this. If you run the task manager and look at the performance tab you'll discover that you probably have half your RAM free most of the time as it is. The system isn't going to swap your program to hard disk unless it's pretty seriously overloaded and has to begin thrashing.
Any disk access you might "see" is probably necessary - the application probably has database files it has do deal with and you're not going to get those to load in RAM.
Don't try to micromanage your system - let the O/S do its job. There's little as an end-user you're going to do to improve an application's performance. That's the developer's job.