Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Swap File Size

Posted on 2000-03-09
Medium Priority
Last Modified: 2013-12-28
I have a user who is enthusiastic about performance, and wants to optimize his swap file size to make the system faster/more responsive.

The system in question is your typical "power user box" PIII400+, 256mb running NT4.  The user runs apps like AutoCAD (often with many and/or very large drawings), and some accessory SQL stuff.  It's connected to a mixed network <nt/novell> and all data is kept on the servers.

A goal of this station is to have it tweaked "for the quarter mile", by which I mean that this station is used more for finite intense usage periods with many large cad files and sql stuff going on at once, rather than an "email, minsweeper, and writing letters" station.

The current ideas I've listened to and bring here for your consideration are:
Make the swap file a fixed size (setting the min/max to the same value).
Make the swap file incredibly large - say... 1 or 2 gig

Question by:rburns
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 2600754
yes, you should make the swap size constant.

yes, maybe 1GB. It depends on who you speak to and what you do with the machine, but you generally go 2 or 3 times the size of your RAM.

also, put the page file on its own partition (FAT16, as it is fastest but will not be C2 compliant or secure) at the end of the disk, this will ensure the best (in my opinion) access to the swap file.

If you don't want to do the last option, choose to use a defragmenter that defragments the page file (Diskeeper is what I use). This should also speed up the access.

Of course, now that memory has dropped to its lowest prices since last May, another 256MB would also be good for the machine (providing it can take it) as you said that the machine will be used heavily.

What graphics card have you got? if, as you said you are doing alot of CAD, would a better graphics card with more memory and more processing power help.

Another step further...upgrade the hard disk to SCSI, depending on what you get, it can increase disk data throughput by 3 times. (This will mean a reinstall of Windows, or use of disk cloning software).

All things to think about when getting a fast machine that will be used heavily. Hope this helps and perhaps get someother 'experts' opinions as to speed it up.
LVL 23

Accepted Solution

Tim Holman earned 150 total points
ID: 2600774
1gig swap file ?
You're having a laugh !
M$ recommend 268Mb for this configuration, for what it's worth !
The best way to get an efficient, optimum page would be to monitor swapfile size over a week or so, and set the new swapfile size to be the biggest you've ever seen it.
To be honest, original swapfile size is not really going to affect performance, especially on an NTFS drive.
You need to look at hardware - get faster memory, a bigger processor, a faster hard drive, as NT tunes itself reasonably well to make the most of the hardware its sat on.


Expert Comment

ID: 2600778
Forgot to say, out of the above, we make the page file constant, set it to a value relevent to our system (~500MB) and wherever possible put the page file only on a FAT16 drive, whenever we set up machines to send out to clients.
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.


Expert Comment

ID: 2601170
The ideal is not bad in theory, it's all depends what is the maximum size the Swap file has been use? Remember file system always reading the Whole file at once, if the file is too large, it take times to complete reading it.

Talk about performance, how about implement SCSI with multiple HD as Strip Set or with Parity, place the Swap file there and sure things go fast with 256MB Ram

Another cheaper coption is get an extra HD, only place the Swap file there, it help on performance too.

Expert Comment

ID: 2603066
Swap space isn't where you'll speed up the box.  Generally, speaking about the SQL portion of his tasks at least, you don't actually want the machine to use the swap.  Yes, the swap should be sized right so you don't run out of swap space when it's handling loads but if his computer is actually using most of the swap that you set up for him you want to look further into his setup and apps to see what you can do to get them to run more efficiently.  Heavy largescale swap usage is indicative of gross ineffeciency somewhere.

I set swap min and max to the same number, for servers it's 2 X RAM plus 12 and for workstations 1.5 X RAM.  If the server is a SQL 7 server running English querying, make that 3 X RAM.

Does he have more than one drive?  You'll get better performance if you place your OS files on one physical disk and your programs on another physical disk. For a bigger step up, the programs could be installed on a RAID 5 array.  I just built out a system today with databases on RAID 5 array, OS on RAID 1 and a seperate physical disk with the swap on it.  That tripled the speed right there and I haven't even begun to tweak SQL.

There's a lot online at the Microsoft Technet site to assist with performance boosts.

Side note to AdamWoodland - why is FAT 16 faster?

Expert Comment

ID: 2603810
No idea, that's what I have read from a couple of sources on the web (I'll try to remember one for another post), I also have been told this information from a couple of experienced engineers here at work at different times.

Thats how my machine is set up along with other people in the groups. It is also how we set up machines for use by customers (might be FAT32 thinking about it, but definately FAT).

I'l try and find the supporting information sometime.

Expert Comment

ID: 2605146
You can maximize performance of swap to locate swap files on different disks conneceted to different interfaces.

Set minimum as 256MB (recommended size for your configuration). Set maximum that big as your disk space allow. If your FS is NTFS then size of paging file increase automatically as needed.

Optimal way proposed by Tim Holman: " monitor swapfile size over a week or so, and set the new swapfile size to be the biggest you've ever seen it."

Not good idea use power station as SQL Server. Server must be server, powerstation must be powerstation.

Author Comment

ID: 2605374
I've set of the performance monitor to show the 'redline' of the swapfile - going to let this user run for a couple days and see what happens.  Thanks for the advice as always.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question