Thứ Ba, 5 tháng 7, 2016

RAM Defrag tool part 1


pacaveli420

Does anyone know of a RAM defrag tool that works in windows 7?
yes I'm aware that an actual defrag of RAM does not improve access performance and that rebooting will clear the RAM, etc etc.
I want it because usually a ram defrag can recover unused memory.
or if someone knows an alternate solution to accomplishing the same thing....
basically after windows has been running for quite a while there seems to be a lot of RAM that is not available....but not in use either.
for example, right now, I only have about 1.2GB out of 6GB free
this is not because I have ~5GB worth of memory being dedicated to open applications and windows.
I could restart...open up the same applications and only be using like 2GB vs the current ~5GB

back in XP days I would use system mechanic's ram defrag and it'd work fairly well. I don't believe they have it in their software any longer though. any ideas?



stormy13

Those ram/memory optimizers are nothing but pure snake-oil. As good an article about it as any,

The Truth About Windows Memory O

Do yourself and Windows a favor, let Windows manage it.

pacaveli420

yeah none of that is really news to me. I still appear to have ram 'in use' that's actually not though
so 'letting windows manage it' is not really the best solution in this situation

stormy13

Where are you looking that it is showing it "in use"?

pacaveli420

task manager / memory usage

stormy13

Post a screen shot. Also hit the Start button and type in resmon and hit enter and post a screen shot of that as well.

pacaveli420

Task Manager:

Resource Monitor:

Dwarf

Something doesn't look right here. This is what mine shows:

-capture.png

Have you disabled your virtual memory (paging file)?

stormy13

Up time 35 days? Let's have one of resmon after a restart. And even after 35 days it still shouldn't look like that unless you're running something that has a massive memory leak.

Mine after 3 days of up time,

-resmon.png

And that is with playing several different games, converting a few movies, general usage, etc.

Guest

Quote�� Quote: Originally Posted by pacaveli420 View Post
yeah none of that is really news to me. I still appear to have ram 'in use' that's actually not though
so 'letting windows manage it' is not really the best solution in this situation
win 7 uses paged memory differently than XP, and it may seem like there is a leak but there isnt.

By rebooting you are just making the page file rebuild itself again.

pacaveli420

Quote:
Something doesn't look right here. This is what mine shows
mine 'looks' fine. I see nothing that yours has that mine doesn't
except I have a triple core and 2GB more ram

I haven't disabled my page file...and that's not really relevant. this is about the physical ram
Quote:
Up time 35 days?
awesome right?
and I know a restart will trash the ram and it'll look a lot different
that was one of my first points.
I just want a tool that allows recovery of any ram that's no longer actually in use...as obviously I'm not using ~5GB of ram...but yet windows / my pc seems to show that I am
I'm not sure if this is due to programs not properly clearing out the ram when they are closed or what



stormy13

Or instead of looking for a band-aid you could try and figure out which program is causing the problem and check for updates or an alternative.

If you want to try and figure out what is causing it start with this,

Process Explorer

provides more info than Windows own tools.

pacaveli420

what if it's something I can't replace, or it's multiple applications, or just windows itself?
I keep most of my stuff up to date if possible. I know firefox sometimes has some leak issues...but I don't know if that's the same as it not removing memory it has allocated for itself. and I'm not giving up my firefox =)

I don't think that software will be of any use. it's only going to tell me about currently opened processed....dlls they have loaded and so forth.

pacaveli420

for anyone else that this may be helpful too:
it seems the main program responsible for over allocating all my RAM was the windows indexer
I rebooted and decided to kill some processes prior to see if any of them were the culprits
upon killing it my RAM use dropped about 1.5GB - 2GB even though task manager reported it as using only 100MB or so
this was undoubtedly related to me rebuilding the index database earlier that day (I guess indexing ~2million items takes a good chunk of RAM =P)
it'd still be nice to have a RAM defrag / scrubber for situations where (closed or open) applications unnecessarily still have allocated space though. so if anyone knows of anything, let me know

Layback Bear

It looks to me you just have to many things running at the same time. Winamp, several browsers, ect. Your ram and Windows 7 looks like it is working properly you just have a lot of things open all at one time.

Johnson

Quote�� Quote: Originally Posted by pacaveli420 View Post
so if anyone knows of anything, let me know
CleanMem v.1.5.1 | PcWinTech.com

If the problem is that processes are holding on to RAM, this works quite well.

pacaveli420

thnx for the reply Johnson, will check that out!

Greg S

Quote�� Quote: Originally Posted by Johnson View Post
Quote�� Quote: Originally Posted by pacaveli420 View Post
so if anyone knows of anything, let me know
CleanMem v.1.5.1 | PcWinTech.com

If the problem is that processes are holding on to RAM, this works quite well.
For full benefit, Right click and select Run as administrator.

MilesAhead

Quote�� Quote: Originally Posted by pacaveli420 View Post
thnx for the reply Johnson, will check that out!
This program was mentioned on another board. Apparently it works by enumerating running process and calling EmptyWorkingSet() API call on each process.

A better solution may be to set Superfetch to cache only boot files by setting
EnablePrefetcher and EnableSuperfetch registry keys to 2.

See this link and my comment at the bottom:

Change SuperFetch to Only Cache System Boot Files in Vista - How-To Geek

Vertex

Well if there are still a lot of free RAM space, let Windows take care of it. If you feel you are getting a little bit low on free memory, close any programs that are not in use or consuming a lot of resources. Doing a quick Goggle search will make a lot of results.

I have used RAM cleaners. Apparently, if you have cleared too much RAM, your PC might hang for a while.

pacaveli420

My original issue was something (a program...I found it had been the index service) had left memory allocated but was no longer actually using it. it was not because I 'had too many programs open' or etc
I appreciate the replies but some of you seem to have missed the point.
I always keep my startup clean of BS and have numerous services disabled that I don't need, etc.

Quote:
I have used RAM cleaners. Apparently, if you have cleared too much RAM, your PC might hang for a while.
yeah I've used ones that have done the same thing. this one doesn't seem to have that problem. it's quite instant and I really haven't noticed any performance degradation after using it. honestly...if anything....stuff runs better. but that might just be some placebo.


Quote:
Apparently it works by enumerating running process and calling EmptyWorkingSet() API call on each process.
I guess that's a bit outta my IT scope....cuz it doesn't mean much to me =P
superfetch is there for a reason though, I'd like to leave it alone. since I open pretty much the same programs all the time it's probably being beneficial to me



madtownidiot

Ram cleaners are completely useless in windows 7

Greg S

Quote�� Quote: Originally Posted by madtownidiot View Post
Ram cleaners are completely useless in windows 7
Define Ram Cleaner. CleanMem as pointed out by MilesAhead uses an API that Win 7 uses itself for the same purpose. Does that also make Windows 7 useless? CleanMem just allows you to use what Win 7 is already doing except Win 7 in my opinion doesn't do it in a timely or thorough enough manner.

Wishmaster

Perhaps I am missing something here but ...

If you have a application that truly has a memory leak and causing problems you need to isolate the culprit and either remove it, or update/patch that app.

Things like this just mask the issue and fix nothing. The memory leak will still be there.
All you will do by using apps like this, as well as disabling services to "tweak' the system to run better is break it, and make things worse in the long run.

If you leave all the services set as Win7 has them, and don't worry about RAM use, the system will be far more responsive and smoother running than if you try to optimize it.
It tweaks itself.



As far as RAM use:

When you run a program and close it, It doesnt always get dumped from memory, just moved to standby.

That way, if you decide to use it later, (amoung everything else 7 thinks you might use) its already loaded in memory and ready to go. It simply changes it to in use status.

It will dump things out of memory you are not currently using whenever a application or game requests that space if needed.


I guess I've never understood why anyone would want to stop the OS from using what RAM it has available to it, to its full extent.

You have have it, why let it set empty when the OS can make use of it?

By stopping it from doing so, or manually cleaning it out constantly is just crippling the system.


I know there will be those who completely disagree, but thats my 2 cents.

kronckew

i agree with wishmaster. fix the cause not the symptoms. fix the leak. disable windows indexing if needed.

and one sure fire method to ensure you always have half your memory free is to open the case, remove half of your memory boards & lock them in a safe. they'll always be free then. free memory is memory that is not being used. useless.

as it's up to you, if you insist on persuing this, try 'process lasso' from bitsum, in it's current beta incarnation it does allow you to set memory and cpu% limits on a process which if exceeded will shutdown or restart the process. it also allows you to trim (manually or on a schedule) the memory of all, or of individual processes and they even tell you it's NOT RECCOMMENDED. it also adjusts prioritys of processes that are hogging the cpu...they have a freeware version if you are tight, i've got a lifetime license myself.

Layback Bear

The reason I stated there might be to many things running is OP post #7. It shows winamp 582 kb, Firefox 578 kb, 4 chrome open 198000 kb, Search inderer 117000 kb and of course we can't see it all. If the rest of the list is like this would suggest to me there are a lot of things open and using up the ram. Now if the OP wants or needs all this running at the same time stick more ram in your computer. Your ram is working properly, you are just using it all.

MilesAhead

Quote�� Quote: Originally Posted by pacaveli420 View Post
...

Quote:
Apparently it works by enumerating running process and calling EmptyWorkingSet() API call on each process.
I guess that's a bit outta my IT scope....cuz it doesn't mean much to me =P
superfetch is there for a reason though, I'd like to leave it alone. since I open pretty much the same programs all the time it's probably being beneficial to me
What it means is, the OS allocates memory for a process to use called a Working Set. Say the app doesn't need the average amount of memory given since it's not going to do much, but it's going to sit in the tray in case you hit a hotkey. It can call EmptyWorkingSet() to tell Windows to take the memory back.

This memory utility is just doing that. If the program does need the memory it will call functions to get some from the OS. So you can be giving it up just to turn around and ask for it back. It may be ok to use it on some apps. Guess that's why it has a list to control the apps you use it on or exclude some apps or whatever.

Afa Superfetch, if you don't want to change the setting, I'd still advise deleting the stats so it doesn't cache the program with the memory leak. Open an admin command prompt. Change to C:\Windows\Prefetch. and do
delete *.*

It will calculate new stats from there. Contrary to popular believe it doesn't take like 5 years to figure out what programs you use a lot. When I delete the stats for my boot files, I get one slow boot then it's back in business.

pacaveli420

these best describe my feelings about this thread:
once again I'll reiterate....the problem was / is NOT a program with a memory leak
it was because windows index service had memory allocated for it that it was no longer using
the reason it had so much allocated is because it just ran through ~2 million files rebuilding the index
somehow windows (or indexing itself) decided because of this that it still needed a bunch of ram allocated
thnx for the info MilesAhead, that all seems to make sense!
yeah. the apps that need it will just ask for it again, but the apps that really don't need it and have a bunch allocated....it'll solve that issue. which is exactly what I was wanting.

-Layback Bear
I have pretty much the same things open now as I did then and I have ~2.5GB of free ram (this is without doing anything with the cleanmem). I did NOT have too many things open. also you have kb confused with MB for the FF and winamp use.

craney5

Do you have to use a page file in windows 7? Its just my machine never really uses more than 2.5gb of my 4gb of ram, the annoying thing tho i noticed that my machine does use virtual memory at times even tho my RAM is not fully used? How do you turn off or change the page file size that you set for your HD?

Layback Bear

pacaveli420 could please post your resmon again, I like learning things.
Firefox 578.040 KB.

pacaveli420


not 578.040 KB
578,040 KB

craney5 you can shut off page file in system properties
run sysdm.cpl
advanced
performance settings
advanced
change
uncheck the auto option at the top and you can shut it off
generally 7 is smart enough to use ram and page file when necessary though
I shut off paging in XP because it wasn't....but I've left it alone on 7



Layback Bear

It appears that you have made a good improvement, glad to see that. After using it that way for a while let us know the ups and downs.

pacaveli420

that is with no changes...that's why I said it's without the cleanmem
the only change was I rebooted, which cleared the indexing issue

usually after I run cleanmem it'll drop my ram use down to about 2.5-3GB

MilesAhead

Quote�� Quote: Originally Posted by pacaveli420 View Post
that is with no changes...that's why I said it's without the cleanmem
the only change was I rebooted, which cleared the indexing issue

usually after I run cleanmem it'll drop my ram use down to about 2.5-3GB
Superfetch set to only cache boot files:

Name:  tm.png  Views: 99  Size:  54.2 KB

craney5

Quote�� Quote: Originally Posted by pacaveli420 View Post

not 578.040 KB
578,040 KB

craney5 you can shut off page file in system properties
run sysdm.cpl
advanced
performance settings
advanced
change
uncheck the auto option at the top and you can shut it off
generally 7 is smart enough to use ram and page file when necessary though
I shut off paging in XP because it wasn't....but I've left it alone on 7

Thanks for that mate, When you set your own page file size in windows is there a "general rule of thumb" to how big this page file should be compared to how much RAM you have installed?

Thanks again

pacaveli420

Quote�� Quote: Originally Posted by MilesAhead View Post
Superfetch set to only cache boot files:

Attachment 103716
interesting. is that just with windows running? or with your usual stuff open?
as someone else was saying though....free ram is kinda useless.
and I never really run out (except when something leaks a bunch or indexing allocates 2GB to itself =P)

Quote�� Quote: Originally Posted by craney5 View Post
Thanks for that mate, When you set your own page file size in windows is there a "general rule of thumb" to how big this page file should be compared to how much RAM you have installed?

Thanks again
my general rule of thumb is to let windows (if win 7) manage it. that way it can increase it if larger is needed =P. windows currently has mine set to 6GB right now, matching my ram. in older days a rule I heard a lot was 1.5x as much ram as you have....but that's kinda a stupid rule. if you had a PC with only 128MB you'd need to have a bigger page file to offset that. otherwise you couldn't open much. you'll want it to be a decent size....but not be taking up too much space on your hdd (if you have limited space).

MilesAhead

Quote�� Quote: Originally Posted by pacaveli420 View Post
Quote�� Quote: Originally Posted by MilesAhead View Post
Superfetch set to only cache boot files:

Attachment 103716
interesting. is that just with windows running? or with your usual stuff open?
as someone else was saying though....free ram is kinda useless.
and I never really run out (except when something leaks a bunch or indexing allocates 2GB to itself =P)
The point is not the free ram so much as Superfetch will run my HD gathering stats to try to predict what I'm going to do. It will not do so in any useful fashion that's worth the trade-off of running my HD incessantly. By caching only boot files, one slow boot does the stat taking, I get rapid boots, and my HD doesn't run on. As a side effect I happen to get free ram. If you just have to reign in an unruly program, then the thread has been solved and I see no reason why you plow on.

=========================================
edit: I used this setting originally because Vista ran my HD on so badly. Since I originally posted this I have changed Superfetch setting back to default and use a defragged page file. Seems to run smooth. And if any apps just have to have a page file, well it's there. W7 handles it much better than Vista.
=================================================

Quote�� Quote: Originally Posted by craney5 View Post
Thanks for that mate, When you set your own page file size in windows is there a "general rule of thumb" to how big this page file should be compared to how much RAM you have installed?

Thanks again
What works is what works for you. There is no "one answer." That's why the number is adjustable in the first place. If one number worked way better than any other, they'd just hard wire it in the code like Avagadro's constant.

Layback Bear

OP #1 post. Does anyone know of a RAM defrag tool that works in windows 7? My answer is, no I do not.

josefa0701

Memory Defragmenter - CNET Download.com

this one works in win7(all flavours) if you change the compatibilty to windows xp sp3 and run as administrator

JAFuser

I play an online game that has problems crashing because it has "memory leak".
No, they probably won't ever fix it... so am looking for a work around.
A ram clearing program was suggested by another player.

I found 2 programs at CNET downloads that say part of what they do is clean the RAM
(and are Win 7 compatible)
Advanced System Optimizer
and
System Mechanic Free
and the above mentioned
CleanMem

has anyone tried them?
I am wondering if they can be used while the game is open?

thx

MilesAhead

Just for grins I installed and messed around with CleanMem. My memory usage looked just about the way it does anyway. Many of my task tray hotkey apps I call EmptyWorkingSet() to return unneeded memory to the system. I noticed after running it using the mini-monitor where you could manually trigger it, my copies of chrome.exe in memory went from 25-35 MB each in Task Manager to a couple of MB. But after a few seconds/minutes the usage was right back up there.

I found with chromium it's better to use --renderer-process-limit=n switch to keep the number of instances from going wild.

The long of it and short of it, didn't do any harm, didn't really do any good as my system is tuned to only park a couple hundred MB in the page file. My typical peak page file usage is about 225 MB. With CleanMem it actually went up to about 330 MB. Inconsequential. But on my system there seems no point in running it. It may help more on systems with only 1 GB ram.



Carbon6

Mem cleaners? in 2012? I thought they (should) have died with Geocities...lol
Waste of time.

Không có nhận xét nào:

Đăng nhận xét