Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Why does Ram Decrease the Longer I use My PC  (Read 21762 times)

0 Members and 1 Guest are viewing this topic.

blindhelpfultech



    Beginner
  • Nadia
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Why does Ram Decrease the Longer I use My PC
« Reply #15 on: October 03, 2012, 06:48:48 PM »
that's why they call them minimum requirements, that is the bare bones to what you need to get the system working in a way that it is usable. It is also a way to make computers cheaper as I am sure you have noticed over time if you want something with optimal requirements that does a little more than the basics with the amount of space, ram and such you pay a little bit more. Example I have a 32-bit computer that does not use ram to it's full usage due to the way 32-bit systems handle ram but it also costs less than a 64-bit system with 8GB of ram, but if you want to notice a change you sometimes have to spend a little more. I have a computer that I spent $500 on and for just $300 I can more than double the specs. I was a computer user who went from a Pentium 3 at @2.3Ghz with 4GB of ram to a computer with an Intell i3 @2.7ghz to a new system with 8GB ram, 64 bit system and to top it off an intell i7 @3.2ghz. I went from basic to a little better and I noticed the change and this for sure I will notice a big change. It took me ten years to buy  the second computer, but would I ever by a Pentium 3 even if they made them again, no I would not. You get use to the faster OS and don't want to downgrade, but you spend more cash. I have been working on my spelling Alen and Patio is this better? I am also considering getting dragon, but I will start a new topic, as highjacking someone else's thread is quite rude in the forms world and yes I am sorry to those admins I did not word things clearly and some of them came across pushy and or mean to the users of the form.
Great learders know they don't know everything and that is OK to say they have no idea. Doing that they will allow them to not knowing is not a problem, it leaves you to be open minded to learn from others It is OK to ask for detail and learn from those that as we are are all new at something and have our skill set.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Why does Ram Decrease the Longer I use My PC
« Reply #16 on: October 03, 2012, 07:11:13 PM »
You're doing fine...much improved.

patio.
" Anyone who goes to a psychiatrist should have his head examined. "

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Why does Ram Decrease the Longer I use My PC
« Reply #17 on: October 03, 2012, 08:56:35 PM »
The short answer is more or less this is how programs work.

The long answer is, as expected, a bit more detailed.

First there is the OS itself; of course the OS allocates memory for all applications; applications essentially ask for blocks of memory and the OS manages when those blocks are swapped into and out of RAM. The end result is that frequently accessed bits of data stored in memory are kept in Physical RAM and those that go unused get swapped to the pagefile. When you first start an application, such as a browser, it doesn't have many data structures in memory, and a lot of it's data could still be in it's program file. For example, if you don't access certain features of the program- such as history, bookmarks, etc. The executable code related to that might not load into memory at all. And when you do use it, it will be swapped from, disk (directly from the executable).

This results in more memory usage, overall, because after that happens, that data is often not discarded. Programs can mark certain parts of their data as discardable, but most compilers only do this for resources. The end result is that while code that is entirely unused stays on disk (and therefore doesn't use RAM) once that code is executed, it needs to be loaded and sticks around thereafter.

Basically, for most programs, as you use that programs various features it will use more memory each time.

That only addresses part of the issues of memory usage, since of course Programs do have data that they manipulate, allocate, deallocate, and work with. The memory usage over time from this can depend on the memory usage patterns of the program in question, which can often rely on the technology used to create it. For example, Programs written for the Java Virtual Machine or the .NET CLR use Garbage Collection, which means that the run-time keeps track of data and deallocates it when it determines it is no longer needed. The other method is deterministic, and requires the programmer to indicate when to free and clear resources that are used. The former method can cause large spikes in memory usage as objects and data are allocated before the Garbage collection process runs and cleans up; the latter can cause leaks if data is allocated but never deallocated.

By the way, RAM Optimizers don't actually optimize RAM usage, they force a program to compact it's memory by essentially forcing as much data to the pagefile as possible.

Ironically, RAM optimizers "optimize" memory by allocating craptons of memory themselves; what ends up happening is their active allocations balloon and the kernel is forced to page the memory of other processes out to the pagefile. Then the Optimizer deallocates it's ridiculous amount of memory and declares success.

But when you start using another application, that paged out data is simply paged back in , so it really doesn't do anything overall.
I was trying to dereference Null Pointers before it was cool.

blindhelpfultech



    Beginner
  • Nadia
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Why does Ram Decrease the Longer I use My PC
« Reply #18 on: October 03, 2012, 09:12:54 PM »
patio mam/sir,
It does make a diffrence when I proof read things and really make sure things come out right in regards to things that might be broken, can you please check your pm in regards to my fourm settings as it might be more of me than a problem. I like the qote of one of the admins about something, I might ask for consent to use it in my sig.
Great learders know they don't know everything and that is OK to say they have no idea. Doing that they will allow them to not knowing is not a problem, it leaves you to be open minded to learn from others It is OK to ask for detail and learn from those that as we are are all new at something and have our skill set.

TechnoGeek

  • Guest
Re: Why does Ram Decrease the Longer I use My PC
« Reply #19 on: October 03, 2012, 09:17:51 PM »
(...)
But when you start using another application, that paged out data is simply paged back in , so it really doesn't do anything overall.

Nothing, other than unnecessary excess read/writes to the hard drive, which can (being disk I/O) slow things down considerably and can theoretically reduce the life cycle of an SSD drive.

I once tested this effect by using Sysinternals RAMMap. I forget the wording of the option -- flush working sets or something similar -- but it forces all pages to dump to disk. I noticed an immediate slowdown, and every program I returned to then had to wait for the memory to load from disk. These 'optimization' techniques certainly do free physical RAM, but at the cost of a lot of speed, exactly what many of them pretend to solve.

shagger1

  • Guest
Re: Why does Ram Decrease the Longer I use My PC
« Reply #20 on: October 04, 2012, 10:00:49 AM »
TechnoGeek
the program I mentioned on the first page of this post does not slow down my pc one bit,that is why I use it-try it and you will see,yes I have used others that slow my system down but not cleanmem...
Rod

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Why does Ram Decrease the Longer I use My PC
« Reply #21 on: October 04, 2012, 03:35:46 PM »
the program I mentioned on the first page of this post does not slow down my pc one bit,
I just downloaded it and disassembled it as well as running it. Nothing about it makes me think it works differently in any significant way from something like RAMpage. Aside from it's idea of "being installed" being that it has to be in the windows System folder.


Written in VB6.
Although I wasn't able to really find a whole lot of information, the main routine appears to be designed to do a crapton with Strings, then it uses GetObject("winmgmts:\\.\root\cimv2") and then proceeds to run a 'Select * from Win32_Process where ProcessID = "' query on that.

Then it doesn't appear to actually do anything within the loop, instead it just logs a bunch of information to a string which is subsequently destroyed.

It seems to use ntSetInformationProcess with the ProcessQuotaLimits flag. This means it changes one, some, or all of the Quota flags of a process, which are  PagedPoolLimit, NonPagedPoolLimit, MinimumWorkingSetSize, MaximumWorkingSetSize,PagefileLimit, TimeLimit. Translation: people who say it doesn't deal with the process working set are either stupid or lying.



Quote
yes I have used others that slow my system down but not cleanmem...
Cleanmem does. It works exactly the same as every other tool that does this. It doesn't use magic technology or some mystical different technique. It is exactly the same thing written by somebody (In VB6 no less) with special skills in weaving bull.
I was trying to dereference Null Pointers before it was cool.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Why does Ram Decrease the Longer I use My PC
« Reply #22 on: October 04, 2012, 03:48:26 PM »
Quote
It is exactly the same thing written by somebody (In VB6 no less) with special skills in weaving bull.

                 ;D ;D       ;)
" Anyone who goes to a psychiatrist should have his head examined. "

TechnoGeek

  • Guest
Re: Why does Ram Decrease the Longer I use My PC
« Reply #23 on: October 04, 2012, 04:33:15 PM »
In VB6!? Just another good reason not to use it ::)

shagger1

  • Guest
Re: Why does Ram Decrease the Longer I use My PC
« Reply #24 on: October 04, 2012, 07:56:15 PM »
You are entitled to your opinion but works for me On XP.after an hour or so my ram drops to about 269megs available and when I kick in the program I am up to 420megs free with no adverse effects,I am not a programmer so I trust what you say but been using it for almost a year and my PC flys lke an eagle so.........I am happy as a clam!! I got tired of running low on ram and am to poor to buy more so my solution is fixed.<grin> In the past I have tried many other programs and this works. PS I dont think it is cool to disassemble a program when the licence says not to,you may take that as you wish.
Rod

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Why does Ram Decrease the Longer I use My PC
« Reply #25 on: October 04, 2012, 08:33:11 PM »
It's not illegal if your not doing it to reverse engineer a product for sale...

BC did nothing illegal...
" Anyone who goes to a psychiatrist should have his head examined. "

shagger1

  • Guest
Re: Why does Ram Decrease the Longer I use My PC
« Reply #26 on: October 04, 2012, 08:43:39 PM »
I did not say he did anything illegal just said it was not cool....I should have never mentioned that program,geez!
Rod

smc1979



    Newbie

    • Experience: Beginner
    • OS: Windows XP
    Re: Why does Ram Decrease the Longer I use My PC
    « Reply #27 on: October 04, 2012, 08:48:17 PM »
    Ah more people bashing my program :-)

    Quote
    In VB6!? Just another good reason not to use it ::)
    And in case your wondering it is made in VB6 because I like the size of the run times 1.3 mb vs the insane size of .net, It is my programming of choice nothing more.

    Quote
    The short answer is more or less this is how programs work.

    The long answer is, as expected, a bit more detailed.

    First there is the OS itself; of course the OS allocates memory for all applications; applications essentially ask for blocks of memory and the OS manages when those blocks are swapped into and out of RAM. The end result is that frequently accessed bits of data stored in memory are kept in Physical RAM and those that go unused get swapped to the pagefile. When you first start an application, such as a browser, it doesn't have many data structures in memory, and a lot of it's data could still be in it's program file. For example, if you don't access certain features of the program- such as history, bookmarks, etc. The executable code related to that might not load into memory at all. And when you do use it, it will be swapped from, disk (directly from the executable).

    This results in more memory usage, overall, because after that happens, that data is often not discarded. Programs can mark certain parts of their data as discardable, but most compilers only do this for resources. The end result is that while code that is entirely unused stays on disk (and therefore doesn't use RAM) once that code is executed, it needs to be loaded and sticks around thereafter.

    Basically, for most programs, as you use that programs various features it will use more memory each time.

    That only addresses part of the issues of memory usage, since of course Programs do have data that they manipulate, allocate, deallocate, and work with. The memory usage over time from this can depend on the memory usage patterns of the program in question, which can often rely on the technology used to create it. For example, Programs written for the Java Virtual Machine or the .NET CLR use Garbage Collection, which means that the run-time keeps track of data and deallocates it when it determines it is no longer needed. The other method is deterministic, and requires the programmer to indicate when to free and clear resources that are used. The former method can cause large spikes in memory usage as objects and data are allocated before the Garbage collection process runs and cleans up; the latter can cause leaks if data is allocated but never deallocated.

    By the way, RAM Optimizers don't actually optimize RAM usage, they force a program to compact it's memory by essentially forcing as much data to the pagefile as possible.

    Ironically, RAM optimizers "optimize" memory by allocating craptons of memory themselves; what ends up happening is their active allocations balloon and the kernel is forced to page the memory of other processes out to the pagefile. Then the Optimizer deallocates it's ridiculous amount of memory and declares success.

    But when you start using another application, that paged out data is simply paged back in , so it really doesn't do anything overall.

    Again someone going off about the page file  ;D

    Has anyone read this yet?
    http://www.pcwintech.com/about-cleanmem

    I only responded because shagger1 is a good user of my forums, so I thought I would just chime in, I wont be getting into any fights over my program. You don't like it then don't use it.

    If you haven't even tried it or put it under any test then please don't comment on it till you do, but once you put it under tests and having something to complain about then I am all ears.

    Now back to my movie with my wife and kids. Night!

    Shane

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Why does Ram Decrease the Longer I use My PC
    « Reply #28 on: October 04, 2012, 10:31:29 PM »
    You are entitled to your opinion
    I agree, we are all entitled to our own opinions. But like the opinion that Maggots spontaneously appeared in rotting meat was proven to not be cogent with reality so too is an opinion that this- or any other "memory conservation" tool works merely the result of placebo and confirmation bias.


    Quote
    after an hour or so my ram drops to about 269megs available and when I kick in the program I am up to 420megs free with no adverse effects


    Quote
    I got tired of running low on ram
    Running low on RAM means nothing. Running low on Free RAM also means nothing How much free memory you have only has a impact on performance if it causes a lot of swapping, which will only occur if you are frequently using data that isn't paged in physical memory. Since these programs work by essentially forcing every program to page out data out of physical memory with the goal of making the amount of free memory bigger (which affects performance negatively).


    Quote
    and am to poor to buy more so my solution is fixed.
    I ran Windows XP with 96MB of memory for over 3 years, so while I currently have 8GB it's not like I've never dealt with Limited memory. The solution is not found in snake oil software but rather in diligent computing habits. For example, Firefox was out of the question, and for some software packages the later versions were as well; Many options had to be disabled (things like Luna  themes, for example) in the interest of saving as much memory as possible, not using more than one application at a time, etc.

    Most important was that when using a machine that had limited RAM, I had to limit myself to software that took that into account. Firefox does not meet that requirement, nor would chrome or pretty much any common desktop application in use today. The problem is not that you or I had too little memory (since 96MB was considered gobs at one point) but that the software we typically use is designed to consume memory like a SUV guzzles gasoline- with little regard for the environment and with far more style than utility.

    Quote
    PS I dont think it is cool to disassemble a program when the licence says not to,you may take that as you wish.
    There is no license attached to the program, therefore the only license attached to it is the implicit license of fair use and default literary copyright. Even if it was, Dissassembly is covered Under the Canadian Copyright Act 30.6.

    Ah more people bashing my program :-)
    I wasn't bashing it. I was saying that all memory "optimizer" perform an unnecessary task and are distributed people that either do this and are intentionally deluding people or don't and are spreading their own delusion around. Facts are what I, personally, work with, and unfortunately ethereal concepts and opinions do not sway that.

    Quote
    And in case your wondering it is made in VB6 because I like the size of the run times 1.3 mb vs the insane size of .net, It is my programming of choice nothing more.
    It could probably have been created in VBScript, at least the core "cleaner" portion.

    Quote
    Again someone going off about the page file 
    This hardly refutes anything I said. This is analogous to if somebody tried to say that Cookies didn't contain flour, and I said "Cookies contain flour" and the response was "yet again someone going off about the page file". (It also reminds me of the Reagan vs. Carter debate where the former said "There you go again" as a response to an otherwise articulate argument.)

    Quote
    Has anyone read this yet?
    http://www.pcwintech.com/about-cleanmem
    I just did.

    Quote
    CleanMem doesn't work magic on your system. The best thing you could do is get more memory for your system! The goal of CleanMem is to help keep windows from needing to rely heavily on the page file. Which is located on your hard drive.
    And yet, what the program actually does flies directly in the face of this. You cannot simply cull a processes memory usage; the broadcast messages are deprecated (WM_COMPACTING, for example) and typically have no effect at all. Unless you are actually going through every process and somehow figuring out where programs are no longer using data (which is an intractable problem) and then deallocating those blocks of memory (which would require process injection). All I could gather was mostly from the WMI query strings acquirable from SysInternals "String" tool, (which is what leads me to the conclusion that much of the base functionality could be done with VBScript or JScript through WMI); though the Monitor thingamajig

    Quote
    I only responded because shagger1 is a good user of my forums, so I thought I would just chime in, I wont be getting into any fights over my program. You don't like it then don't use it.
    This sort of reads like a care salesman who's best customer is being told that the rust on the bottom of the used care they are trying to sell does not actually make the car go faster, saying "if you don't like driving cars with rust on them, don't". That probably isn't the intent here,(I would certainly hope it isn't) but this isn't about personal preference; either these programs help performance, do nothing, or impede it. Any one program cannot do more than one of these things. This sort of goes into my next paragraph too.

    Quote
    If you haven't even tried it or put it under any test then please don't comment on it till you do, but once you put it under tests and having something to complain about then I am all ears.
    I did, But I didn't want to image post at the time. More importantly they weren't really that methodical. I'll try to come up with some sort of test that attempts to be more or less impartial, and, most importantly, is reproducible, since it's otherwise useless. This will make a good blog post, since I could test other programs of the same cabre. I'll probably test this one first, since it has relevance particularly to this thread, but I'm curious how a program I used to use when I thought it actually mattered, RAMpage, fares as well.

    I'm trying to think of what specifically needs to be covered here. First, and most obvious, is memory statistics, which can be captured with Process Explorer. In order to "heavy" up the machine, I imagine it might be ideal to run a few programs and do something in them that pulls in some of their latent pages from disk (eg code in their executable). As explained above this is what usually increases memory use over time. The method to do this will need to be well documented, any relevant macros provided, etcetera. Once the machine is "loaded" we will test the speed of things at that point; I guess that could be more macros, perhaps some sort of browser test and maybe running a benchmark using Fraps or something of that sort. Possibly even run some programs that find the anagrams in a dictionary since I'm currently in the process of blogging about that implementation in a bunch of languages and cross-over posts are never a bad thing.

    After that, we run the optimizer program being tested. Then we grab the memory statistics immediately afterward, and do the same speed tests. Keep track of the results and then reveal.

    Hopefully this doesn't turn into that ill-fated idea where I was going to test Registry cleaners but then sort of forgot about it for a year and a half.
    I was trying to dereference Null Pointers before it was cool.

    smc1979



      Newbie

      • Experience: Beginner
      • OS: Windows XP
      Re: Why does Ram Decrease the Longer I use My PC
      « Reply #29 on: October 04, 2012, 10:50:06 PM »
      You had fun typing that didnt you? lol

      Ok lets cover a few things, then it ends here as I wont be dragged into another fight over this and another person who is dead set in their view. After this post I wont be posting again.

      Quote
      There is no license attached to the program, therefore the only license attached to it is the implicit license of fair use and default literary copyright. Even if it was, Dissassembly is covered Under the Canadian Copyright Act 30.6.

      I dont care is it is covered. I simply dont care if someone takes apart my program. Enjoy, have fun. But do it a little better. You are seeing API's and and some WMI calls and getting it completely wrong on why they are there and what they are used for.

      Quote
      This hardly refutes anything I said. This is analogous to if somebody tried to say that Cookies didn't contain flour, and I said "Cookies contain flour" and the response was "yet again someone going off about the page file". (It also reminds me of the Reagan vs. Carter debate where the former said "There you go again" as a response to an otherwise articulate argument.)

      You said you read the about page, sounds like you read it a little to fast. CleanMem doesn't fill the memory like the old crap clears did. It doesn't change any programs working set or change any program or inject anything in any way.

      The program uses WMI for simple process info for the log file. Cleanmem simply calls Windows to cleanup any unused memory from a process. Windows does all the work, not cleanmem. Windows moves the memory into the system cache, which is STILL in memory, NOT the page file. A process will have back what it needs instantly. Any memory not called back will be left in the system cache for a short period before it is released.

      I have no desire to try and change your mind, in fact I know that is impossible. I was notified of these posts simply for the fact of the bashing of my program without any proper tests and the bashing of the fact that I used VB6. Sorry if I am a *censored* good programmer in VB6 and it still works fine. Guess it isnt up to your standards.

      So instead of trying to change your minds here I will just let it go.

      After all, 2 million machines using it and people who tested it giving it great reviews I am sure I wont lose sleep over more people not trying it shooting it down.

      CleanMem has been out for years now and I had to do this fight so many times. Each and every single time it was with people set in their ways, calling snake oil without even testing it.

      For the last time CleanMem doesn't do anything to the process, it has Windows do it. Why do you think it works so well? Wait you don't know, you didn't give it a try.

      Snake oil I say!!!!

      Oh well. Cant win them all  ;)

      Take care all of you. I'm out  ;D

      Shane