virtual memory?

G

Guest

I had had a problem with low disk space on C Drive.the virtual memory.
Setting it at a maximum of 500 MB has freed up some disk space. I would like
to know what he is a good setting as I do not want to allocate too much space
for that purpose. When I had Windows managing my virtual memory it had 1549
MB.that was a lot. Changing it created 1.42 G of free disk space.

can't someone advise guidelines on the proper settings.

Larry
 
J

Jerry

Memory tells me that Microsoft has recomended the virtual or swap file be
set to 1.5 times the amount of RAM installed.

Also, if you have more than one physical drive you could ove it to a
separate drive from the one Windows is on.

Or just buy more RAM - it is fairly cheap as are new hard drives.
 
G

Guest

Hi Larry:

You dont' give much in formation on your machine or how you use it so it is
difficult to advise on specific settings. In general, "System Managed Sized"
is recommended. If this setting is creating a critical shortage of free
space, you may want to consider backing up to external media and then
removing carefully selected files and programs which you use rarely or never.
There are other steps to take as well.

Please post back with more info.

Mark
 
R

Ron Martell

Jerry said:
Memory tells me that Microsoft has recomended the virtual or swap file be
set to 1.5 times the amount of RAM installed.

Which was one of the worst pieces of advice that Microsoft has ever
issued. Not harmful per se, but totally misleading and based solely
on the presumption that everyone has a computer with a minimal or
near-minimal amount of RAM installed.

Also, if you have more than one physical drive you could ove it to a
separate drive from the one Windows is on.

Actually with more than one physical drive the optimal configuration
is to have a swap file (page file to be more correct) on each drive.

Ron Martell Duncan B.C. Canada
--
Microsoft MVP (1997 - 2006)
On-Line Help Computer Service
http://onlinehelp.bc.ca

"Anyone who thinks that they are too small to make a difference
has never been in bed with a mosquito."
 
R

Ron Martell

Larry Jordan said:
I had had a problem with low disk space on C Drive.the virtual memory.
Setting it at a maximum of 500 MB has freed up some disk space. I would like
to know what he is a good setting as I do not want to allocate too much space
for that purpose. When I had Windows managing my virtual memory it had 1549
MB.that was a lot. Changing it created 1.42 G of free disk space.

can't someone advise guidelines on the proper settings.

Larry

Depending on how you use the computer the small page file maximum
could have an adverse effect on your overall performance.

Hard drive space is cheaper than dirt these days. Installing a second
hard drive and moving some of your data files and/or installed
applications to it is an option that you should consider.

Good luck

Ron Martell Duncan B.C. Canada
--
Microsoft MVP (1997 - 2006)
On-Line Help Computer Service
http://onlinehelp.bc.ca

"Anyone who thinks that they are too small to make a difference
has never been in bed with a mosquito."
 
G

Guest

I had seen the article below, and unfortunately the author is now deceased
otherwise I would email him.

One question I had is if there is a performance gain by having no page file
at all. The laptop I use has 2 GB of RAM, and I can never seem to use more
than about 1 GB. So I had turned off the page file.

In particular, in the article by Alex Nichol he says :

Strictly speaking Virtual Memory is always in operation and cannot be
“turned off.†What is meant by such wording is “set the system to use no page
file space at all.â€

Doing this would waste a lot of the RAM. The reason is that when programs
ask for an allocation of Virtual memory space, they may ask for a great deal
more than they ever actually bring into use — the total may easily run to
hundreds of megabytes. These addresses have to be assigned to somewhere by
the system. If there is a page file available, the system can assign them to
it — if there is not, they have to be assigned to RAM, locking it out from
any actual use.

The two questions I have about this are :

1) Does it actually "waste" RAM ? In some architectures I've seen, this is
true if you have insufficient paging space or no paging file at all.
However, from what I have observed with Windows XP, it does not. I have many
processes (Cygwin for example) that have 1/2 GB VM sizes, but resident sizes
of ~20K.

2) Is there a performance benefit of not manipulating the paging file ? In
some architectures, this avoids a disk I/O, and some internal OS manipulation
of VM paging tables.

The observation I have is that it does not appear that Windows XP is
reserving space within the paging file for executable text as Alex Nichol
states above. So what is actually in memory is text that has been faulted
in, any allocated memory that has been faulted in, and any dynamic data
(stack, etc.). I have yet to have my laptop run more than ~1.3 GB of memory
in use.

Just curious as to how the VM in XP actually works.


Frank McGee
(e-mail address removed)
 
S

Shenan Stanley

Frank said:
I had seen the article below, and unfortunately the author is now
deceased otherwise I would email him.

One question I had is if there is a performance gain by having no
page file at all. The laptop I use has 2 GB of RAM, and I can
never seem to use more than about 1 GB. So I had turned off the
page file.
No.

In particular, in the article by Alex Nichol he says :

Strictly speaking Virtual Memory is always in operation and cannot
be "turned off." What is meant by such wording is "set the system
to use no page file space at all."

Doing this would waste a lot of the RAM. The reason is that when
programs ask for an allocation of Virtual memory space, they may
ask for a great deal more than they ever actually bring into use -
the total may easily run to hundreds of megabytes. These addresses
have to be assigned to somewhere by the system. If there is a page
file available, the system can assign them to it - if there is not,
they have to be assigned to RAM, locking it out from any actual use.

The two questions I have about this are :

1) Does it actually "waste" RAM ? In some architectures I've seen,
this is true if you have insufficient paging space or no paging
file at all. However, from what I have observed with Windows XP, it
does not. I have many processes (Cygwin for example) that have 1/2
GB VM sizes, but resident sizes of ~20K.

If you gain anything by having no page file - even if you have an enormous
amount of RAM - at this point with 32bit architecture anyway - it is so
small you won't notice.
2) Is there a performance benefit of not manipulating the paging
file ? In some architectures, this avoids a disk I/O, and some
internal OS manipulation of VM paging tables.

In Windows XP - which the article was written around - I would venture a
'no'. You should either 'set it and forget it' or better yet - let Windows
XP manage it for you.
The observation I have is that it does not appear that Windows XP is
reserving space within the paging file for executable text as Alex
Nichol states above. So what is actually in memory is text that
has been faulted in, any allocated memory that has been faulted in,
and any dynamic data (stack, etc.). I have yet to have my laptop
run more than ~1.3 GB of memory in use.

Yes - so? The point is never to 'use all your memory' - it is 'to have
enough memory that you never use all your memory'. Think about it. If you
are utilizing all of the memory you have in your computer at all times -
okay, fine - but what happens when you add a new task - it has no memory to
use. In other words - just because you have memory that never gets used -
don't assume there is a problem. What you have is a balance and as long as
you have the free (unused) memory - that is *GOOD*.
Just curious as to how the VM in XP actually works.

The posts you responded to had some of the best information out there. The
problem is I believe you are worrying about something where there is no
problem. In a 32bit architecture - you can only utilize so much for
applications anyway - the rest is reserved for the OS. You should - for
best results - just allow Windows XP to manage the Virtual Memory and make
sure you have more memory than you will need. It's not like RAM is that
expensive and it is *not* a bad thing to have unused memory. Now if you had
4GB memory and never went above 768MB of used - ever - you might have wasted
that couple-hundred dollars, but it's not like that's *bad* unless you
couldn't afford it.
 

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

Similar Threads

Virtual Memory 5
Virtual Memory Annoyance 2
virtual memory low 1
Low virtual memory 4
Old Game Receives Virtual Memory Error 6
Registry error 3
Virtual memory question 2
virtual memory 1

Top