The Explorer: Real-World Answers About Virtual Memory - InformationWeek
Software // Enterprise Applications
02:59 PM
Fred Langa
Fred Langa

The Explorer: Real-World Answers About Virtual Memory

Can't Reset Memory?
In a normally-installed and properly-operating copy of Windows, you can manually set the virtual memory as you wish. If you are unable to set or retain manual virtual memory settings, it suggests you either have a nonstandard copy of Windows or that something's broken or improperly installed. Your best bet is to back up your data and start over with a fresh copy of windows so it will be properly installed and operating.

One exception to this is with the upgrade to Win98SE: When you upgrade, Win98SE will at first ignore any manual settings you'd previously set up (under your previous version of Windows) and will revert to "let windows manage my virtual memory settings." This is not a bug; it's a design choice (by Microsoft) based on the premise that Windows can do a better job of managing virtual memory than you can. (See the KnowledgeBase Articles Q231991 and Q128327.) For people who want to get the absolute most out of their PCs, I believe that's a poor assumption.

In any case, although it initially sets itself up to manage your virtual memory, Win98SE will let you choose to manage your virtual memory on your own after the first full boot.

But if you can't adjust or retain manual settings for virtual memory, then something's wrong, and you should consider a clean reinstall to eliminate whatever's causing the problem.

How Much Virtual Memory?
There's no hard-and-fast rule, and I welcome your input on this, as always. (And I look forward to a great debate!) Here's what I do:

An old rule of thumb suggested that you should set the minimum virtual memory to about 2.5 times your amount of RAM. When PCs had 8 or 16 or 24MB of RAM, this made sense. But with large amounts of RAM, it begins to get a little silly. For example, my newest PC came with 128MB or RAM: there's no way Windows needs 320MB of swap file space.

So, I use the old rule of thumb for systems with up to 32MB or less of RAM. For systems with more than 32MB and up to 64MB, inclusive, I'll set the minimum size to twice the amount of RAM. For larger system, I'll set the minimum swap file size to equal the amount of RAM. In all systems, especially those with more modest amounts of RAM, if there's plenty of disk space, I may fudge the swap file numbers upwards a bit on the premise that (1) too much swap space is better than not enough and (2) I might as well use all that hard drive real estate for something!

Note that in all cases, I'm setting only the minimum size: the swap file still can grow, if needed. (And if you notice a lot of disk activity as you work, simply bump up the size of the swap file a bit.) But with a reasonable minimum swap files size, you can help eliminate at least most of the unnecessary disk-thrashing that can happen with dynamic or too-small swap files.

OK, what are your swap file secrets? What tips can you share? What optimization tricks do you know? And just what is the perfect size for a swap file, anyway? Join in the discussion!

To discuss this column with other readers, please visit Fred Langa's forum on the Listening Post.

To find out more about Fred Langa, please visit his page on the Listening Post.

2 of 2
Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
How Enterprises Are Attacking the IT Security Enterprise
How Enterprises Are Attacking the IT Security Enterprise
To learn more about what organizations are doing to tackle attacks and threats we surveyed a group of 300 IT and infosec professionals to find out what their biggest IT security challenges are and what they're doing to defend against today's threats. Download the report to see what they're saying.
Register for InformationWeek Newsletters
White Papers
Current Issue
2017 State of the Cloud Report
As the use of public cloud becomes a given, IT leaders must navigate the transition and advocate for management tools or architectures that allow them to realize the benefits they seek. Download this report to explore the issues and how to best leverage the cloud moving forward.
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on for the week of November 6, 2016. We'll be talking with the editors and correspondents who brought you the top stories of the week to get the "story behind the story."
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.
Flash Poll