Go Back   AnandTech Forums > Software > Operating Systems

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2013
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 05-02-2005, 01:51 PM   #1
Link19
Senior Member
 
Join Date: Apr 2003
Posts: 971
Default Windows XP memory tweak to free all unused memory when you close applications

Whenever I open a bunch of applications and then close them, I notice that the amount of physical RAM available as shown in Task Manager is considerbly less than when I first boot up my system. I have 1GB of physical RAM in my system and the amount available upon bootup is approximiately 808 thousand some KB. The system cache is about 110 thousand some KB upon bootup. Whenever I leave my system on for a while without rebooting and open a bunch of applications and then close all of them, the system cache goes way up and the amount of available physical memory decreases significantly. I assume all that RAM is being used for the system cache right? The amount of available RAM I have after running my system for a while after opening and closing a bunch of applications is anywhere from 704 thousand some KB to 730 thousand some KB. The system cache ranges from 700 thousand some KB to 800 thousand some KB.

I don't want all that RAM to be used to help the system cache grow that large and I want all the RAM freed whenever I close all applications so I have 808 thousand some KB available again just like I do upon bootup. I want the system cache to stay around 110 thousand some KB to 200 thousand some KB because if the system cache is too low, your system will tax the HDD like crazy. So are there any tweaks that actually work that I can apply so this will happen? I thought the AlwaysUnloadDLL tweak is what I needed, but I have read that it is bogus and doesn't work. So, any legitimate tweaks that work?
Link19 is offline   Reply With Quote
Old 05-02-2005, 01:53 PM   #2
Crusty
Lifer
 
Crusty's Avatar
 
Join Date: Sep 2001
Location: ATX
Posts: 12,312
Default Windows XP memory tweak to free all unused memory when you close applications

There really should be no need for doing that unless you are hitting the page file significantly..... which I highly doubt.
__________________
Consequences will never be the same!

/^1?$|^(11+?)\1+$/
Crusty is offline   Reply With Quote
Old 05-02-2005, 02:01 PM   #3
Matthias99
Diamond Member
 
Join Date: Oct 2003
Posts: 8,808
Default Windows XP memory tweak to free all unused memory when you close applications

AFAIK, the RAM used for the system cache will be dynamically freed for reuse when you need it. Kicking the data back out of cache is useless, since if you open the same files again before the cache has been 'naturally' flushed, it saves having to bring the files back in from disk.

Unless I'm misunderstanding what you're asking about.
Matthias99 is offline   Reply With Quote
Old 05-02-2005, 02:11 PM   #4
Link19
Senior Member
 
Join Date: Apr 2003
Posts: 971
Default Windows XP memory tweak to free all unused memory when you close applications

Quote:
Originally posted by: Matthias99
AFAIK, the RAM used for the system cache will be dynamically freed for reuse when you need it. Kicking the data back out of cache is useless, since if you open the same files again before the cache has been 'naturally' flushed, it saves having to bring the files back in from disk.

Unless I'm misunderstanding what you're asking about.


I'm talking about why is it that your available physical RAM is still less even after you close all open applications? What I mean by that is why is it less than it was when you first booted your system before you ever opened any applications? When I close all open applications, I would expect my physical RAM available to go back to as high as it was when I first booted my system.
Link19 is offline   Reply With Quote
Old 05-02-2005, 02:52 PM   #5
Smilin
Diamond Member
 
Join Date: Mar 2002
Posts: 7,357
Default Windows XP memory tweak to free all unused memory when you close applications

Quote:
Originally posted by: Link19
I'm talking about why is it that your available physical RAM is still less even after you close all open applications? What I mean by that is why is it less than it was when you first booted your system before you ever opened any applications? When I close all open applications, I would expect my physical RAM available to go back to as high as it was when I first booted my system.
Why would you want it to be? The OS has watched you open an application then close it. What are the chances you'll open it again? If you do, it will open faster. If you don't the memory is freed immediately when needed by something else.

It's called memory managment. There is a great deal of cleverness that goes into it. A very naive view is that the more unused RAM you have the better. Unused ram is like any other unused resource: it's wasted.

Does this explain what you're seeing?

There is also a phenomenon called a memory leak in which an application requests and frees memory but each time doesn't quite return all the requested memory. Over time you'll get low and problems will happen. This is usually seen while an application is running, not after it's closed. I would guess you are NOT seeing a memory leak, but rather some healthy memory management at work.
Smilin is offline   Reply With Quote
Old 05-02-2005, 04:04 PM   #6
Link19
Senior Member
 
Join Date: Apr 2003
Posts: 971
Default Windows XP memory tweak to free all unused memory when you close applications

Quote:
Why would you want it to be? The OS has watched you open an application then close it. What are the chances you'll open it again? If you do, it will open faster. If you don't the memory is freed immediately when needed by something else.

It's called memory managment. There is a great deal of cleverness that goes into it. A very naive view is that the more unused RAM you have the better. Unused ram is like any other unused resource: it's wasted.

Does this explain what you're seeing?

There is also a phenomenon called a memory leak in which an application requests and frees memory but each time doesn't quite return all the requested memory. Over time you'll get low and problems will happen. This is usually seen while an application is running, not after it's closed. I would guess you are NOT seeing a memory leak, but rather some healthy memory management at work.
Thanks, that explains it. So, just because I see less unused RAM available, doesn't mean I really have less available to run a memory intensive game. It is just stored as cache for a bunch of programs I already opened, and if that bit is needed, it will be freed and allocated to the resource intensive game, instead of that same RAM being unused before it was allocated to the resource intensive game. AM I correct?
Link19 is offline   Reply With Quote
Old 05-02-2005, 05:44 PM   #7
Matthias99
Diamond Member
 
Join Date: Oct 2003
Posts: 8,808
Default Windows XP memory tweak to free all unused memory when you close applications

Quote:
Originally posted by: Link19
Quote:
Why would you want it to be? The OS has watched you open an application then close it. What are the chances you'll open it again? If you do, it will open faster. If you don't the memory is freed immediately when needed by something else.

It's called memory managment. There is a great deal of cleverness that goes into it. A very naive view is that the more unused RAM you have the better. Unused ram is like any other unused resource: it's wasted.

Does this explain what you're seeing?

There is also a phenomenon called a memory leak in which an application requests and frees memory but each time doesn't quite return all the requested memory. Over time you'll get low and problems will happen. This is usually seen while an application is running, not after it's closed. I would guess you are NOT seeing a memory leak, but rather some healthy memory management at work.
Thanks, that explains it. So, just because I see less unused RAM available, doesn't mean I really have less available to run a memory intensive game. It is just stored as cache for a bunch of programs I already opened, and if that bit is needed, it will be freed and allocated to the resource intensive game, instead of that same RAM being unused before it was allocated to the resource intensive game. AM I correct?
Yes. Windows just names the fields in Task Manager poorly. "Available" RAM is really going unused (not being used for anything, even cache); what measures the amount of (virtual) RAM being asked for by all your programs is "Commit Charge".
Matthias99 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:17 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.