How can I force an app to be completely hold in physical memory ?

J

Jason Stacy

I upgraded the physical memory of my notebook from 1 GB to 2 GB.
Now there should be enough memory to hold certain apps completely in physical memory.
Unfortunately I have to notice that 60% of the physical memory is still available.
Furthermore well known apps (like JBoss app server, graphic edit programs, programming IDEs,...)
are as slow as ever - always accompanied with lots of hard disc working (obvisously swapping in and out
space frames).

How can I force e.g. application mysample.exe (and its depending DLLs) in physical memory ?

Or - alternatively - how can I force WinXP to use memory as much as possible ?

J.
 
S

singletracker

You are seeing disk I/O issues. If you are not using a 7200 RPM HD
with a big cache like 8G you are going to see this. It might help if
you defrag your disk. Also it might be very simple just to buy one of
the newer, fast USB2 or firewire external drive and put your apps out
there - less competition with the system disk as well.

To force pages to remain wired in memory would need to be done at a
code level, not a configurable thing unless the app designer gives you
that kind of option.

Or you could search for "virtual hard drive" - there are commercial
products that allow you to place disk files on a hard drive that is
really resident in memory. Not sure you would have enough RAM to
solve your problem but perhaps. Also I'd be reluctant to use
something like this for data files unless you understand the write-
through delay issues (some may be configurable) and can live with
that. (a badly timed blue screen can severely corrupt data)
 
M

Mike S.

I upgraded the physical memory of my notebook from 1 GB to 2 GB.
Now there should be enough memory to hold certain apps completely in
physical memory.
Unfortunately I have to notice that 60% of the physical memory is still
available.
Furthermore well known apps (like JBoss app server, graphic edit
programs, programming IDEs,...)
are as slow as ever - always accompanied with lots of hard disc working
(obvisously swapping in and out
space frames).

How can I force e.g. application mysample.exe (and its depending DLLs)
in physical memory ?

Or - alternatively - how can I force WinXP to use memory as much as possible ?

Disable the page file from the Control Panel (system, performance, virtual
memory).
 
B

Bill in Co.

Mike said:
Disable the page file from the Control Panel (system, performance, virtual
memory).

But if he does that, what happens if an app needs more memory? A system
crash?
 
A

Arno Wagner

In comp.sys.ibm.pc.hardware.storage Jason Stacy said:
I upgraded the physical memory of my notebook from 1 GB to 2 GB.

Now there should be enough memory to hold certain apps completely in
physical memory. Unfortunately I have to notice that 60% of the
physical memory is still available. Furthermore well known apps
(like JBoss app server, graphic edit programs, programming IDEs,...)
are as slow as ever - always accompanied with lots of hard disc
working (obvisously swapping in and out space frames).
How can I force e.g. application mysample.exe (and its depending
DLLs) in physical memory ?

You cannot. The decision is done by the OS.
Or - alternatively - how can I force WinXP to use memory as much as
possible ?

There are some tweaks possible, e.g. the buffer-cache settings.
You can tewak these so that less memory will be used for buffering.
If I remember correctly that would be the "desktop" setting.

There is also something else you can do: Create a RAM-disk and
put the swap file on it. I know this sounds completelty demented,
but due to historic reasons, it can actually help. I have no idea
how to do this automatically on Windows, though.

The third option would be to disable swapping completely or set
a very small swapfile. Linux, e.g., runs well without without
swap on a desktop system. No idea about Windows.

Arno
 
B

Bruce Chambers

Jason said:
I upgraded the physical memory of my notebook from 1 GB to 2 GB.
Now there should be enough memory to hold certain apps completely in physical memory.
Unfortunately I have to notice that 60% of the physical memory is still available.
Furthermore well known apps (like JBoss app server, graphic edit programs, programming IDEs,...)
are as slow as ever - always accompanied with lots of hard disc working (obvisously swapping in and out
space frames).

How can I force e.g. application mysample.exe (and its depending DLLs) in physical memory ?

Contact the program's developer and ask them to rewrite the application
to suit your needs.




--

Bruce Chambers

Help us help you:


http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
A

Andrew E.

Some pcs run better with less ram....However to "fix" youre problem(s),
go to run,type:regedit In regedit,expand:HKEY_LOCAL_MACHINE,system,
currentcontrolset,sessionmgr,open memorymanagement.Locate:DisablePaging
Executive,L.click on it,go to edit,modify,change from 0 to 1,close out
regedit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top