Home > Windows Systems Management Tips > Windows Hardware Strategies > Freeware reclaims unused memory for a process
WinComputing Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS HARDWARE STRATEGIES

Freeware reclaims unused memory for a process


Serdar Yegulalp, Contributor
08.17.2005
Rating: -3.61- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Please let us know how useful you find this tip by rating it below. Do you have a useful Windows tip, timesaver or workaround to share? Submit it to our monthly tip contest and you could win a prize!


Programmer Vincent Fatica has written a command-line tool called WORKSET.EXE. When supplied with the process ID (PID) of a running program in 32-bit Windows, it forces Windows to minimize the working set, or allocated physical memory, dedicated to that particular process. You can get the PID of a particular process through the Task Manager or through the command-line function TASKLIST (available only in Windows Server 2003 and Windows XP).

WORKSET.EXE's value is twofold. One, it can tell you how aggressive a given application is at staking out system memory. Some applications are more aggressive than others are simply because they are built that way. If you are choosing among several applications and want to pick the most efficient one with memory (perhaps because you're running several instances of it at once on a server), WORKSET.EXE is one way to determine how much of a margin between needed RAM and allocated RAM a given app uses. It can also be used as a way to test one's own custom applications for this kind of bloat, if you're trying to write something that's as conservative as possible about using memory.

Two, you can in theory use it as a way to pre-emptively free up memory from other programs before launching a big application. However, I should point out that WORKSET.EXE is not really intended to be used as a memory optimization tool. Various applications in the past have claimed to compress or optimize memory use when, in fact, all they did was second-guess the way Windows's own memory manager worked, which created more problems than it solved.

A commonly observed behavior of Windows is that applications often seem to spawn huge memory footprints. It's not really a malfunction, but simply a product of the way memory is allocated: If a system has a great deal of available RAM, a running program typically expands its working set size to make use of as much of that memory as possible, so the program doesn't page out needed memory to disk. When another program is launched, the memory manager makes as much room as is needed to deal with the new application.

That said, at the very least, the program shows how some applications may be far more memory-hungry than others -- even when their functionality doesn't really demand it.


Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!


Rate this Tip
To rate tips, you must be a member of SearchWinComputing.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Windows Desktop Strategies
User Account Control in Windows Vista: Blessing or curse?
Using Vista's overhauled Windows Task Scheduler
Creating a custom control panel in Windows Vista
Microsoft's Windows Task Manager: What's new in Vista?
Migrating to Windows Vista: Should you go with 64-bit?
Vista tools provide Windows error reporting for the enterprise
Workarounds for Windows Vista compatibility issues
Combine application virtualization with streaming
Free tools bring enterprise compatibility testing to Windows Vista
Regaining lost functionality in the Windows XP Recovery Console

Windows Hardware Strategies
Vista's hybrid hard drive support boosts laptop performance
Making sense of Vista's Windows Experience Index
Virtualization and 64-bit: A match made in Windows heaven
Establishing multiple hardware profiles in Windows XP
Troubleshooting IEEE 1394 bus devices for Windows machines
More tips for troubleshooting Windows XP Device Manager error codes
The last resort for troubleshooting hardware resource conflicts
Troubleshooting Windows XP Device Manager error codes continued
Troubleshooting Windows XP Device Manager error codes
How to use the g4u network-based hard disk cloning utility

Windows Systems Management and Administration
Tips for Windows domain controller optimization
Quick hits: Troubleshooting service account failure, batch job execution
Case Study: Troubleshooting Windows service dependency failures
Troubleshooting common Windows service failures
How to format NTFS: More tricks to improve file system performance
Key enhancements to SCCM give admins more control over assets, licensing
Windows scripting secrets for disk quota management
Optimizing NTFS file system performance
The new Microsoft System Center: What happened to SMS and MOM?
TeraCopy beefs up Windows file copy operations

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts