none
How to reclaim RAM without reboot?

    Question

  • Hi,

    I normally would need to have lots of different applications opening at the same time, each with multiple documents. Although by using batch file I could automatically load some of them on startup, there are still many with specific settings that have to be done manually. Therefore, it is timely expensive for me to re-open restart regularly such as on a daily basis.

    My machine is 32-bit which and have already installed the maximum 4GB RAM. After running Windows 7 (Home Premium) for an extended period of time, say, 3 days, I would usually found that most of the physical RAM spaces are consumed. However, if I open resource monitor and sum the

    1. Private
    2. Private + Sharable = working set

    I found both are much smaller than the amount of “used memory” as shown in Task ManagerPerformance, even after subtracting the some 700MB RAM consumed by the Windows system itself.


    Even if close all the opening applications, I would still found a large memory consumption despite the fact that there are no running applications other than the Windows system itself. I would normally have over 1.8G RAM used after closing all applications without reboot as revealed by Task Manager Performance, but after reboot this figure is only 0.9GB.  So who have consumed the additional 1.8G – 0.9G = 0.9G RAM?


    I know that it is not an easy job to write C/C++ programs that perfectly releases allocated all memory upon exit, so there are many “garbage” spaces wasted after a certain amount of time. And for the large applications I usually run, most of them are written in C/C++. So is this additional 0.9G “used memory” due to garbage spaces?


    In addition, is there any tool/utility that can clear the memory so that wasted spaces like this can be released without reboot? I actually believe it would be a major improvement of the Windows OS, but is it possible to do with some tool?



    Bob

    Sunday, April 01, 2012 7:09 AM

Answers

  • due to the complexity of windows, its memory manager has to work hard to keep up

    worse I tend to hibernate my machine all the time which aggravates the situation

    eventually windows destabilizes and its time to reboot

    I am a developer and I can tell you windows is so complex that it takes a huge team of people to maintain it


    Windows MVP 2010-11, XP, Vista, 7. Expanding into Windows Server 2008 R2, SQL Server, SharePoint, Cloud, Virtualization etc. etc.

    Hardcore Games, Legendary is the only Way to Play

    Developer | Windows IT | Chess | Economics | Vegan Advocate | PC Reviews

    • Marked as answer by Bob Sun Monday, April 02, 2012 11:33 AM
    Monday, April 02, 2012 2:08 AM

All replies

  • windows does that job for you.
     
    memory is meant to be used.
    when windows needs some, it finds ways of getting it.
    using the hard drive for a cache.
     "Bob Sun" wrote in message
    news:adda0532-3357-4d21-9304-6c2c10199bfc@communitybridge.codeplex.com...
    > Hi,
    >
    > I normally would need to have lots of different applications opening at
    > the same time, each with multiple documents. Although by using batch file
    > I could automatically load some of them on startup, there are still many
    > with specific settings that have to be done manually. Therefore, it is
    > timely expensive for me to re-open restart regularly such as on a daily
    > basis.
    >
    >
    > My machine is 32-bit which and have already installed the maximum 4GB RAM.
    > After running Windows 7 (Home Premium) for an extended period of time,
    > say, 3 days, I would usually found that most of the physical RAM spaces
    > are consumed. However, if I open resource monitor and sum the
    >
    >  1.. ∑Private
    >  2.. ∑Private + ∑Sharable = ∑working set
    > I found both are much smaller than the amount of “used memory” as
    > shown in Task Manager≫ Performance, even after subtracting the some
    > 700MB RAM consumed by the Windows system itself.
    >
    >
    >
    > Even if close all the opening applications, I would still found a large
    > memory consumption despite the fact that there are no running applications
    > other than the Windows system itself. I would normally have over 1.8G RAM
    > used after closing all applications without reboot as revealed by Task
    > Manager≫ Performance, but after reboot this figure is only 0.9GB.  So
    > who have consumed the additional 1.8G – 0.9G = 0.9G RAM?
    >
    >
    >
    > I know that it is not an easy job to write C/C++ programs that perfectly
    > releases allocated all memory upon exit, so there are many “garbage”
    > spaces wasted after a certain amount of time. And for the large
    > applications I usually run, most of them are written in C/C++. So is this
    > additional 0.9G “used memory” due to garbage spaces?
    >
    >
    >
    > In addition, is there any tool/utility that can clear the memory so that
    > wasted spaces like this can be released without reboot? I actually believe
    > it would be a major improvement of the Windows OS, but is it possible to
    > do with some tool?
    >
    >
    >
    >
    > Bob
    >
     
    Sunday, April 01, 2012 11:21 AM
  • due to the complexity of windows, its memory manager has to work hard to keep up

    worse I tend to hibernate my machine all the time which aggravates the situation

    eventually windows destabilizes and its time to reboot

    I am a developer and I can tell you windows is so complex that it takes a huge team of people to maintain it


    Windows MVP 2010-11, XP, Vista, 7. Expanding into Windows Server 2008 R2, SQL Server, SharePoint, Cloud, Virtualization etc. etc.

    Hardcore Games, Legendary is the only Way to Play

    Developer | Windows IT | Chess | Economics | Vegan Advocate | PC Reviews

    • Marked as answer by Bob Sun Monday, April 02, 2012 11:33 AM
    Monday, April 02, 2012 2:08 AM
  • Mikeyhsd and Vegan,

    I got the answers. Thanks very much.

    Bob

    Monday, April 02, 2012 11:34 AM