force net application and his objects to be in memory (and not in page file/hd)

  • Thread starter Thread starter tony
  • Start date Start date
T

tony

hi.

how can i force a process /objects / to be always in memory and not in page
files in the hd.

is there a way to do that in programming ?
 
Dear Tony,

The .Net framework manages memory for you so that you can focus on the business need you are trying to solve. In my experience it does it pretty well what are your system specs?

-Calvin Luttrell
ProjectThunder.com, Inc.
nothing is impossible
 
its modem/telephony app.
its the app is not active for 1-2 hours, when call arrives it takes 4-5
second to answer the call cause you hear all the page file load to RAM.


is there a way to force object/app to be in the RAM ?
 
Add a worker thread that will do some (usefull?) work repeatedly; thus
keeping your application *awake*.

You can also put a external scheduled program to make the awaking calls.

S. L.
 
You should also check for the possibility of another program gobbling up al
the available memory.

For example, if you don't set limits and unless the databases are very
small, SQL-Server will finish by eating all available physical memory to
fill its buffers. By putting a limit on the quantity of memory it can use,
it is possible that your application will be kept by Windows in memory
instead of beeing swapped out.

S. L.
 
hi.

the thing is ,if i go to the task manager ,in the
performence tab , i see this info :

Phyisical Memory(K)
Total - 523764
Available -202852
System Cache - 233920

mean that i have free ram.


any more ideas will be nice to hear.
have a nice day.
 
If you have free physical ram, then your application won't be swapped out to
the virtual memory file. However, many things can gobble up memory, for
example an anti-virus scan or the hard disk defragmentation. This will
cause Windows to fill its file memory buffers.

S. L.
 
Back
Top