dave holbon
OSNN Veteran Addict
- Joined
- 26 May 2002
- Messages
- 1,014
It’s always interesting to view people’s conception about the swap file in XP as even the most experienced personnel keep getting it wrong, well nearly.
Microsoft quote: -
In a default Windows XP installation, Windows creates the page file in the root folder on the same drive that holds the Windows system files. The size of the page file is determined by the amount of RAM in your system: By default, the minimum size is 1.5 times the amount of physical RAM on your system, and the maximum size is 3 times that value. You can see the page file in a Windows Explorer window if you configure Windows to show hidden and system files; look for Pagefile.sys in the root of your system drive.
Lets look at the two most extreme examples: -
1. 4 gig ram on an Intel 3Ghz CPU.
This would install XP with a swap file of approx (6gig min to 12gig max) swap file.
2. 68meg on an AMD 500Mhz,
This would install XP with a swap file of approx (111meg to 204meg) swap file.
Both are clearly completely (in)correct but are reversed in practice since service pack one (nothing new here then) as the amount of memory a computer actually uses is not a fixed algorithm (unknown).
a. XP/NT/2000 cannot operate stably without a swap file, any swap file.
b. You cannot completely remove the swap file, even though you have the option and think you have/can.
c. Never move the swap file from the root directory or when XP crashes you will be left with nothing. Only system managers with the correct training can do this.
d. XP always uses system ram first and only when this is exhausted does it revert to the hard drive (swap file). This is always true.
e. You can’t optimise the swap file unless you are an XP expert with the correct training. Having said this if you have 4gig of memory and a smallish hard drive setting it to it’s minimum setting which I determine to be about 500meg should suffice. But you will be taking a risk; it’s a question of resources.
Remember that XP/NT/2000 are Unix based not DOS so you need to reconcile that the kernel relies on the swap file as part of the operating system which DOS could not comprehend until Windows 3.1 was released.
Microsoft quote: -
In a default Windows XP installation, Windows creates the page file in the root folder on the same drive that holds the Windows system files. The size of the page file is determined by the amount of RAM in your system: By default, the minimum size is 1.5 times the amount of physical RAM on your system, and the maximum size is 3 times that value. You can see the page file in a Windows Explorer window if you configure Windows to show hidden and system files; look for Pagefile.sys in the root of your system drive.
Lets look at the two most extreme examples: -
1. 4 gig ram on an Intel 3Ghz CPU.
This would install XP with a swap file of approx (6gig min to 12gig max) swap file.
2. 68meg on an AMD 500Mhz,
This would install XP with a swap file of approx (111meg to 204meg) swap file.
Both are clearly completely (in)correct but are reversed in practice since service pack one (nothing new here then) as the amount of memory a computer actually uses is not a fixed algorithm (unknown).
a. XP/NT/2000 cannot operate stably without a swap file, any swap file.
b. You cannot completely remove the swap file, even though you have the option and think you have/can.
c. Never move the swap file from the root directory or when XP crashes you will be left with nothing. Only system managers with the correct training can do this.
d. XP always uses system ram first and only when this is exhausted does it revert to the hard drive (swap file). This is always true.
e. You can’t optimise the swap file unless you are an XP expert with the correct training. Having said this if you have 4gig of memory and a smallish hard drive setting it to it’s minimum setting which I determine to be about 500meg should suffice. But you will be taking a risk; it’s a question of resources.
Remember that XP/NT/2000 are Unix based not DOS so you need to reconcile that the kernel relies on the swap file as part of the operating system which DOS could not comprehend until Windows 3.1 was released.