Memory Optimizers - A load of old cobblers

Discussion in 'other software & services' started by markymoo, Oct 2, 2008.

Thread Status:
Not open for further replies.
  1. markymoo

    markymoo Registered Member

    Joined:
    Sep 25, 2007
    Posts:
    1,212
    Location:
    England
    Clean, Defrag and Boost your RAM With SnakeOil Memory Optimizer

    Just take a quick look at any download site, and you'll find hundreds of products that claim to "optimize RAM to make your computer run faster". Give me a break! Almost all of these products do the same things: they call a Windows API function that forces applications to write out their memory to the pagefile, or they allocate and then deallocate a ton of memory quickly so that Windows will be forced to page everything else.

    Both of the techniques make it appear that you've suddenly freed up memory, when in reality all you've done is trade in your blazing fast RAM for a much slower hard drive. Once you have to switch back to an application that has been moved to the pagefile, it'll be so slow you'll be likely to go all Office Space on your machine.

    Windows expert Mark Russinovich agrees:

    At best, RAM optimizers have no effect, and at worst, they seriously degrade performance.
     
  2. ruinebabine

    ruinebabine Registered Member

    Joined:
    Aug 6, 2007
    Posts:
    1,097
    Location:
    QC
    Old story, and I mostly agree with it all
    ...until I gave a fair try to CleanMem , it does make a difference on oldish hardware. I started it manually, at need (with a hotkey).
     
  3. Sully

    Sully Registered Member

    Joined:
    Dec 23, 2005
    Posts:
    3,719
    lol, back when a p120 with 32mb ram was a smokin fast system using w95, I used a ram scrubber that really did work wonders. Of couse with only a 635mb hdd, you had to zip everything to not run out of hdd space too.

    Thankfully those days are long gone.

    Sul.
     
  4. Arup

    Arup Guest

    O&O Clever Cache Pro is a bit different from this approach and on machines with heavy load and less memory, it does help to an extent.
     
  5. ruinebabine

    ruinebabine Registered Member

    Joined:
    Aug 6, 2007
    Posts:
    1,097
    Location:
    QC
    >from CleanMem' author (just to stir the same pot a little more):

    PLEASE READ: [October 1rst, 2008]
    "Ok for once and for all I am going to explain in detail how Cleanmem works, why it works and how it can & can not make a difference in your system.

    Every now and then as I go across the net I find forums and pages talking about Cleanmem, and to be honest I am truly surprised to see the people throwing fits about the program being a memory cleaner and how if it is a memory cleaner it must not work! Yet they never even try it. Then when I come across pages like on Raymond.CC blog who actually took the time to try it and test it makes me feel like my work is appreciated by my fellow geeks & techs as he took the time to try it, he didn't judge before hand. Yet reading comments on his site you will find people shocked it works and others saying it cant work and they didn't try it.

    I also get emails of people asking me how it works, and so I decided to make this section to explain how Cleanmem works. So now any questions should be answered and all the people out there who don't even bother testing the program will have no room to talk. Its amazing how a free program I originally made for my customers has been such a headache and a pleasure at the same time. You've got to love the internet.

    So now lets start with how Cleanmem works. Cleanmem is very small as it doesn't need to do much. First off Cleanmem doesn't clean the memory from the processes itself! It asks Windows to do that. When the program starts up it grabs a list of running processes. It then grabs the ID of each process and calls the Windows API EmptyWorkingSet for each processes, Cleanmem of course checks the ignore list and skips those processes. Then Windows cleans the process, and once all the processes have been cleaned Cleanmem closes itself.

    Well that's the part that seems to freak some people out, if the memory is being cleaned then the process itself will suffer! the memory will be pushed to the hard drive! the world will end! And guess what they are wrong. So let me explain why. The API call only removes memory no longer being used by the process. It doesn't touch memory in use. Here is an example from a visual basic programming stand point.

    Dim I as long

    I = 20000

    Done. Now 'I' has been set as a long number, it has now taken a spot in memory. It then loads the 20000 into memory. At the end of the call the memory is no longer used but still being taken up by the program because I didn't clean it up! A lot of programs do this, they take memory but don't always cleanup after themselves. Well the API is like a little house cleaning. It removes all safe unused memory. When the process runs the function again the memory is then taken again without any difference in performance to the program because it would do it anyways, it wont reuse the old memory, this is why you see program climb and climb in memory usage as you use them. So why let all the unused memory just sit there?

    Here is an example, I loaded of my Age Of Conan game, it was using about 600mb of memory, when I run my Cleanmem the memory only lowers to about 500mb, and the game doesn't miss a hit, why? because that 500mb of memory was currently being used and windows didn't touch it, only the memory left over was removed, which isn't going to touch the games performance since the memory wasn't in use. This is also why the page file doesn't grow, cause no memory is being moved away from the process.

    Will you see performance increase? Yes if a lot of your memory is being eaten up, plus keeping the processes cleaner adds a small performance increase when dealing with memory. But if you have a butt load of memory like I do you wont see amazing increases in performance, but if your running low on memory it makes a big difference.

    If you have a lot of memory why use Cleanmem? Well I use it cause I like my system running tight and clean. Just because my system has a lot of memory doesn't mean I want things sucking it all up if it isn't even using it. That's why I made Cleanmem sort of a set it and forget it. I never need to worry about a program having memory leaks or not cleaning up after itself.

    So what I did with Cleanmem was take a built in Windows API and made it easy and automatic to keep no longer used memory free. The program is free, the setup is easy and life is good. So if for some reason you don't want to use Cleanmem, that's fine. I'm not trying to push a free program on people, I could care less if someone doesn't want to use it. But for those of you that do use it I'm glad you find it useful and I'm here if you have any questions or needs.

    A quick note on the API call itself. This is the same API used by Microsoft in its empty.exe in the Windows 2003 Resource kit. This is also the same api that all .Net programs use by default when you minimize them and their memory lowers. So now instead of being just for .Net, Cleanmem lets you use it on all your programs.

    I hope this answers all questions and helps people understand once and for all about Cleanmem.

    Take care!
    Shane
    ---------------------------------------------------------------------------------------------------------------------------

    ---------------------------------------------------------------------------------------------------------------------------
    Personal note ( 09-26-2008 ): The debate on whether memory cleaners are fake, make the system worse, and anything else you can think of still rages on. But its getting really old that people keep shooting down Cleanmem and they haven't even tried it! The program is free, if you want to know if it works, then just try it! The program pushes nothing to your page file and doesn't slow the system down at all. Other memory cleaners use a trick of using up all the memory in the system forcing windows to release some of the memory from the processes and move it to the page file. My program doesn't do that, it uses a windows API.

    I actually read this statement from a forum where people where going off about things they have no clue about.

    Quote: "(( CleanMem uses EmptyWorkingSet(), which is the same as the SetProcessWorkingSetSize false-trick.
    Basically useless; all processes will have their working sets trimmed, which very likely means flushing stuff to your pagefile. Including the apps you are currently using, which will then have to re-read their stuff back from the pagefile. ))"

    But the truth is,

    http://msdn.microsoft.com/en-us/library/ms682606(VS.85).aspx
    EmptyWorkingSet Function
    Removes as many pages as possible from the working set of the specified process.

    http://msdn.microsoft.com/en-us/library/ms686234(VS.85).aspx
    SetProcessWorkingSetSize Function
    Sets the minimum and maximum working set sizes for the specified process.

    SetProcessWorkingSetSize does force memory to the page file because it limits how much memory the process can have.
    EmptyWorkingSet is a cleanup api from Microsoft that doesn’t limit anything it simply removed the unused.

    This is the same API call Microsoft uses in its memory cleanup program in its resource kit. So if you have any doubts then just try the program out and make your judgment from actually using the program and not by a stereo type set by crap programs and the people burned by them.
    -Shane"
     
    Last edited: Oct 2, 2008
  6. norky

    norky Registered Member

    Joined:
    May 1, 2004
    Posts:
    172
    Location:
    Lithia, FL
    I'll take Mark's word on this one.
     
  7. markymoo

    markymoo Registered Member

    Joined:
    Sep 25, 2007
    Posts:
    1,212
    Location:
    England
    It's similar to the reg cleaners debate.
     
Loading...
Thread Status:
Not open for further replies.