Top

Unload.dll’s to Free Memory

March 12, 2008

Windows Explorer caches DLLs (Dynamic-Link Libraries) in memory for a period of time after the application using them has been closed. This can be an inefficient use of memory.

Find the key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer].

Create a new sub-key named ‘AlwaysUnloadDLL’ and set the default value to equal ‘1′ to disable Windows caching the DLL in memory.

Restart Windows for the change to take effect.

Allan, the author said: “I tried this after running a intense program,then watched the task manager; memory recovered it self.”

Popularity: 53% [?]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • NewsVine
  • Technorati
  • Ma.gnolia
  • blinkbits
  • BlinkList
  • De.lirio.us
  • Furl
  • IndianPad
  • Netvouz
  • Simpy
  • SphereIt
  • Spurl
  • Wists
  • YahooMyWeb
  • MisterWong
  • Slashdot
  • BlogMemes
  • Blue Dot
  • Bumpzee
  • feedmelinks
  • Google
  • Live
  • blogmarks
  • co.mments
  • eKudos
  • Scoopeo
  • Socialogs
  • Facebook
  • MyShare

Comments

2 Responses to “Unload.dll’s to Free Memory”

  1. angilina on March 19th, 2008 10:08 am

    Ever nice tweak, Thanks a lot :)

  2. Larry Miller on May 13th, 2008 6:08 am

    BAD ADVICE
    Windows does not immediately unload DLL’s for performance reasons. And it is not only DLL’s that are retained in memory, this is done with program code as well. To do so would be a violation of an important Windows design principle. This is to always find some use for as much memory as possible, even if it is of trivial value. Any use of memory s better than no use at all. Free memory is the absolute ultimate in wasted memory.

    Caching has had a long and distinguished history in computer systems and it is highly developed in XP. Windows has a complex and efficient system for reclaiming the memory used by caching when it is needed. Until this occurs there is no need to unload a DLL or otherwise free memory. Reloading a prematurely unloaded DLL will impair performance.

    Windows designers know more about memory management than you do. Let caching work for you and improve performance. Do not follow this well meaning but uninformed advice.

    Larry Miler
    Microsoft MCSA
    CompTIA Network+, A+

Got something to say?





Windows Monitor

WindowsMonitor.net is in no way affiliated with Microsoft Corp. *Links are sponsored by advertisers