PcWinTech.com Forums

Tools & Programs By PcWinTech.com => (Program) CleanMem => Topic started by: robertboyl on September 29, 2013, 06:00:49 AM

Title: clean file cache safe?
Post by: robertboyl on September 29, 2013, 06:00:49 AM
Hi, everyone

Loving cleanmem. Our win 2012 server running a mail server with 8 GB ram as near 7 GB usage, but no apparent reason, just cache. With cleanmem it goes to 5,5 GB RAM used and with clean file cache it frees up a lot of RAM, only 2 GB used.

Questions:

1) Although I saw no harm at all cleaning file cache, is it always safe to keep cleaning file cache every 5 min or I imagine safer to get the pro version and do that only when file cache reaches a certain limit, correct?

2) Other idea I had was to clean file cache but run cleanmem in taskmgr just once per day.

Thanks!
Title: Re: clean file cache safe?
Post by: Willy2 on September 29, 2013, 12:11:43 PM
When you've got so much free memory then it's certainly a good idea to increase the amount of memory for the file cache and only clean when above a certain limit. That increases the speed of the system. Less need for disk I/O.

I personally would leave the interval at 15 or 30 minutes. But this also depends on how fast the memory gets filled.
Title: Re: clean file cache safe?
Post by: Willy2 on September 30, 2013, 08:12:37 AM
Windows keeps track which files the system/user frequently uses and "pre-loads" them (with a very low priority) in the free part of the memory called "Standby Memory". That makes switching between programs (much) faster and therefore overall performance better. So, reducing memory usage as much as possible allows the "Standby memory" to grow as much as possible and therefore increases performance. (again, less need for disk I/O).

http://www.zdnet.com/blog/bott/windows-7-memory-usage-whats-the-best-way-to-measure/1786

Title: Re: clean file cache safe?
Post by: Shane on September 30, 2013, 11:35:45 AM
When there is a ton of drive access, such as on my system and doing a backup, my system would go to a crawl. My file cache was through the roof. And opening anything was as slow as a snail because Windows was seeing if the file was in the cache or not. Once I cleared the file cache things went back to normal without a reboot.

So keeping the file cache under control can actually hep keep the speed up :-)

Shane
Title: Re: clean file cache safe?
Post by: robertboyl on September 30, 2013, 03:01:52 PM
Thanks everyone for fast replies. And where do I increase the file cache Willy mentioned?

Its a mail server so tons of very small files. Not sure if I let it do its cache (Windows eats up all ram!), if it would improve my mail server performance, as I see some of you say cleaning it constantly also helps. And the mail server has its own method of acessing the files, so not sure if that cache would really be used by it?

Perhaps Ill just change the task to run cleanmem with file cache clean not every 5 min, rather every 30 min as Willy mentioned? or even longer if I have ram available, I can experiment like every hour, etc. Or get the pro version and inform it to only recycle if memor reaches a certain limit.

Right now set to every 5 min it doesnt seem to affect performance, at least nothing noticeable downloading mail, accessing webmail, etc.

Thanks!
Title: Re: clean file cache safe?
Post by: Willy2 on September 30, 2013, 07:55:52 PM
1. Filecache: Buy a license key for $5, then you can use the Advanced Monitor (AM). That allows you to finetune above which size the filecache is collapsed and how often CM will perform a check on the filecache size. The AM also gives you more memory cleaning options. These extra options work independent from the "regular" cleaning.
2. I would reduce memory usage of other processes as much as possible say every 15 (or whatever you like best) minutes. Simply select "all processes" in the CM settings wizard. (open the "Mini monitor" window, select "Menu", "Start cleanmem settings wizard" and select whatever you like.)

I have excluded four programs from the memory cleaning process because it slows those programs down when these programs have to rebuild the info that's lost during memory cleaning.

It's simply a matter of "trial & error" what works best and what YOU like best. See also what "Task Manager" & "Performance Monitor" say.
Title: Re: clean file cache safe?
Post by: robertboyl on October 01, 2013, 06:05:19 PM
Thanks a lot, Willy.

Sorry but if you can give just some basic pointers on how to do this analysis. What should I look for in taskmgr, perfmon?

Its a mail server, so the processes are smtp.exe, pop, webmail.exe, etc... And it also runs Windows Search which surely might be the big guy involved in a lot of memory consumption as it indexes an entire mail store with hundreds of gigs constantly. Maybe excluding it will improve performance?

I changed the schedule to every 30 min instead of 15 and not run at startup. But it was fine at 15 min, I really didnt notice any slow down.

Thank you.
Title: Re: clean file cache safe?
Post by: Willy2 on October 02, 2013, 07:46:50 AM
- Task Manager tells you which processes/programs consume the most memory. Perhaps you want to curtail those processes more often (Advanced Monitor).
- Performance Monitor (is this the right english word ??? I am from Holland) tells you how large the "Standby Memory" (SM) has become. Can be large !!! On my Win 7 system with 8 GB, (thanks to CM) memory usage is kept below ~ 2 GB but including SM memory usage always exceeds 4 GB, regularly approaches 6GB but very rarely approaches 8GB.
- Do you regularly search for individual files/e-mail messages ? If not then you can disable the Service WSearch.

Again a matter of "trial & error" and what do YOU like best ? It's your system.
Title: Re: clean file cache safe?
Post by: Shane on October 02, 2013, 11:50:37 AM
CleanMem and the CleanMem Mini monitor are separate form each other. So if you enable the file cache in cleanmem it will clean out every time cleanmem is ran from the task scheduler.

If you want more control than that then the pro version of the mini monitor can do it. You have to have the min monitor running and disable the file cache in cleanmem. Then in the advanced monitor you can tell it to clean the file cache after it reaches a certain size :wink:

Shane
Title: Re: clean file cache safe?
Post by: robertboyl on October 02, 2013, 03:36:25 PM
Last question :) with pro version, can I check which processes are generating file cache? or I check taskmgr/monitor for I/Os...? how can I do that?
Title: Re: clean file cache safe?
Post by: Shane on October 02, 2013, 03:39:58 PM
Nope, there is no way to pull that info, Windows only gives me an API to pull the file cache amount :wink:

Shane
Title: Re: clean file cache safe?
Post by: robertboyl on October 03, 2013, 09:48:44 PM
I see, but then how to know which process is generating the file cache and remove the processing (cleanup done by cleanmem) for them?  :undecided:
Title: Re: clean file cache safe?
Post by: Shane on October 03, 2013, 10:12:49 PM
It doesnt, the file cache is just one setting :-)

Here you will like this

http://technet.microsoft.com/en-us/sysinternals/bb897561.aspx

Shane
Title: Re: clean file cache safe?
Post by: Willy2 on October 04, 2013, 05:53:45 AM
Oooops. The name is "Resource Monitor",  not "Performance Monitor".

See:
http://www.zdnet.com/blog/bott/windows-7-memory-usage-whats-the-best-way-to-measure/1786
Title: Re: clean file cache safe?
Post by: robertboyl on October 05, 2013, 09:31:57 AM
Thanks a lot, Willy, great material.
Title: Re: clean file cache safe?
Post by: AtlBo on October 19, 2013, 05:37:21 PM
Hello everyone.  First post

One question about the "cache".  Does "cache" in the context of CleanMem's cache cleaning feature refer to the page file on the hard drive?  I believe this PC has L1, L2, and L3 on the motherboard/processor and then there is the page file on the HD if I am correct...

I am aware of the performance setting in Windows XP (SP3) for adjusting the amount of virtual memory.  I have always understood this as space for the page file.

Thanks
Title: Re: clean file cache safe?
Post by: Willy2 on October 20, 2013, 12:29:22 AM
No. Cleanmem only curtails usage of the main memory.
Title: Re: clean file cache safe?
Post by: AtlBo on October 20, 2013, 10:19:52 PM
That's interesting Willy2, thanks.

I developed the impression that the idea behind CleanMem was to curtail the PCs reliance on slower hard drive based virtual memory/page file data by trimming references to the page file that could be found in main memory.

Thanks for clearing things up for me...
Title: Re: clean file cache safe?
Post by: Willy2 on October 21, 2013, 09:08:13 AM
Yes & No. Reducing memory usage means that Windows can postpone or even eliminate moving a (large) chunk of data from the memory to the page file on disk. And disk I/O is, in comparison with moving info in the main memory, (very) slow. So, in that regard, using Cleanmem increases overall performance.
Title: Re: clean file cache safe?
Post by: Shane on October 21, 2013, 10:22:42 AM
Willy2 answered that one for you :-)

The trick with CleanMem is to keep the Memory cleaned up so Windows wont move things to the page file, which when your memory can move GB's a sec and your HD can only do MB's you can see why it slows things down when it uses the page file.

The bottleneck of performance on every computer is the hard drive. The less you need to use it the faster the system is :-)

This is why SSD drives are making systems so much faster as they are over 10x faster than current HD's. But are till leaps behind the speed of memory.

Shane