Forum Home
Press F1
 
Thread ID: 35408 2003-07-11 13:29:00 Swap Files / Partition Annanz (3044) Press F1
Post ID Timestamp Content User
158979 2003-07-11 13:29:00 Reading about swap files pcworld.co.nz

It says it should be twice as large as your ram. I've got 1 gig of ram. Should make my swap file partition 2 Gigs???
Annanz (3044)
158980 2003-07-11 13:58:00 Hopefully the above link will work now (pcworld.co.nz) Annanz (3044)
158981 2003-07-11 14:04:00 Chances are that with 1 GB of RAM, you will seldom use the swap file so performance gains may be hard to see.

Unless you do a lot of multi-tasking of large applications....
godfather (25)
158982 2003-07-11 14:57:00 Also if you do video editing etc. 512mb should be fine really. PoWa (203)
158983 2003-07-12 00:38:00 its an old pc "urban legand". i don't know why they printed that, they certainly know better than that.

go check how much swap file you are useing then set minimum swap file to slightly larger than that. that will stop windows resizing it (make it smaller) while leaving it free to grow if you suddenly use a huge memory hogging program.
tweak'e (174)
158984 2003-08-08 23:59:00 I use 400 min and 400 max on another HDD drive so the swap file doesnt change with 98SE and 512 megs of sd 133 ram kiwibeat (304)
158985 2003-08-09 00:41:00 kwibeat you'd be better setting the minimum at 400 and the maximum as variable, while your running 512 ram, which means you won't use the hard disk much, there still might be that time when you need more than 400MB roofus (483)
158986 2003-08-09 03:13:00 400 megs is fine for most things had it at 600 but never really needed it I have had about 20 windows open at one stage
I also use cacheman as well .
set min max at the same means that the HDD isnt constantly being adjusted by windows
kiwibeat (304)
158987 2003-08-09 06:00:00 I think you've mis interpretated how the min and max works.

If you set the page file at a min of 400 then the windows isn't going to be swapping and changing the size of it, if you were to be using more than 400 at a cetain time windows could expand it to suit its needs, then when its finished it would revert back to the original 400.

However the way you proposes sets it at one size and it can't grow, which would result in a crash if it was potentially breached.
Your right having 20 windows open isn't going to blow it, but that time you decided to manipulate an image or audio, you might just need a pagefile of 401MB :-)
roofus (483)
158988 2003-08-09 06:05:00 For [insert words] sake!

I would've thought IDG would do some research first.

Firstly, creating a separate partition to store your swapfile (and nothing else) does not speed up your system, it slows it down. While the swapfile will be less fragmented, the time needed for the drive head to move across partitions beats the benefits of this.

You should partition your drive so the OS and swapfile are located on the first partition - the one closest to the edge of the drives, so access time is quicker. Further partitions should be located further in according to how often they will be accessed - for example, a backup partition should go last, and documents, files, etc somewhere in the middle.

Furthermore, swapfile space should be approximately 1.5x the amount of RAM you have. So, if you had 512MB of RAM, you would want to set the maximum swapfile size to 768MB. What goes into the swapfile eventually winds up back in the RAM, so setting a large swapfile means you'll be trying to put in more data than the RAM can handle - slowing down your system.

Also, on larger HDDs, you shouldn't leave the cluster size at 4K - make it 64, because larger clusters can be accessed faster, but don't go too large. Thirdparty tools may not work with larger cluster sizes, however, and they are only really necessary when you are storing large files (such as doing movie editing, or backing up CDs).

Perhaps you would like to force Windows to defrag your drives properly - a registry tweak is in need. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\FileSystem. Create a DWORD value called ContigFileAllocSize and set the value to 512 (decimal).

Also, while NTFS has it's benefits, it is better to make the OS/swapfile partition NTFS and the rest FAT32 - as FAT32 is faster in general.

Most people never use the NTFS last accessed filestamp, so perhaps you'd like to remove that, too. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\FileSystem. DWORD value named 'NtfsDisableLastAccessUpdate', and value to 1 (hexadecimal). Remember to reboot after making registry modifications.

I'll say a large thanks to APC for those tips.
agent (30)
1 2