I agree with dcdon and like the links, btw.
Some basic things about pagefiles I've found after many years of NTx, Win2x, etc.
1 - minimum and maximum should be the same size
2 - pagefile usage is based on computer usage. If you run lots of apps at the same time, you'll need a bigger pagefile than maybe a secretary who only emails and does documents.
3 - if you can defrag your pagefile into one contiguous space, it increaes performance a bit. Ok, that's what I see, but others who don't so what my servers do may not see the increase.
4 - if you have one HDD, DO NOT make a special partition for the pagefile. Simply make a single one and defrag. The system doesn't have to go between two completely different areas of the hard disk to handle it.
5 - TaskMan has Commit Charge which shows the total of memory plus pagefile. If after running all your apps, the value of Peak approaches Limit, think about increasing pagefile size.
6 - Below is a script I wrote to display pagefile information
====================================================
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colPageFiles = objWMIService.ExecQuery ("Select * from Win32_PageFileUsage")
For each objPageFile in colPageFiles
wscript.echo "------------------------------------------------------------"
Wscript.Echo "AllocatedBaseSize : "& vbTab & objPageFile.AllocatedBaseSize
Wscript.Echo "CurrentUsage : "& vbTab & objPageFile.CurrentUsage
Wscript.Echo "Description : "& vbTab & objPageFile.Description
Wscript.Echo "InstallDate : "& vbTab & objPageFile.InstallDate
Wscript.Echo "Name : "& vbTab & objPageFile.Name
Wscript.Echo "PeakUsage : "& vbTab & objPageFile.PeakUsage
wscript.echo ""
Next
wscript.echo ""
Set colPageFiles = objWMIService.ExecQuery ("Select * from Win32_PageFile")
For each objPageFile in colPageFiles
wscript.echo "------------------------------------------------------------"
Wscript.Echo "Name : " & vbTab & objPageFile.Name
'Wscript.Echo "CreationDate : " & vbTab & objPageFile.CreationDate
'Wscript.Echo "Description : " & vbTab & objPageFile.Description
'Wscript.Echo "Drive : " & vbTab & objPageFile.Drive
'Wscript.Echo "FileName : " & vbTab & objPageFile.FileName
'Wscript.Echo "FileSize : " & vbTab & objPageFile.FileSize
Wscript.Echo "InitialSize : " & vbTab & objPageFile.InitialSize
'Wscript.Echo "InstallDate : " & vbTab & objPageFile.InstallDate
Wscript.Echo "MaximumSize : " & vbTab & objPageFile.MaximumSize
'Wscript.Echo "Path : " & vbTab & objPageFile.Path
wscript.echo ""
Next
wscript.echo
wscript.quit()
=============================================
Cut and paste between the double-dash lines and place it in Notepad. Save as a .VBS
Run with the command CSCRIPT.EXE filename.vbs
Hope this helps.
--
Mark-Allen Perry
ALPHA Systems, Switzerland
mark-allen AT mvps DOT org
Bit puzzled on this one...
I had to reformat my PC and while doing so I set up a partition specifically
for virtual memory of 1.5gb and set the swap file on this partition to be
initial size 4 and maximum of 1480. At present this is 4mb
I have 512mb memory installed.
I also set up the c:\ partition pagefile as 4-766 (recommended)
At present this is 11mb
When logging on I now get a message saying that I am low on virtual memory.
Where have I gone wrong and how can I get the system to use the pagefile on
the
specified partition?
thanks