Freezes when cleaning memory?
Sayrix opened this issue · 15 comments
Hello when the software is cleaning my memory, my pc is completely freezing for ~2 minutes and then I receive the notification that my memory was cleaned, I am on Windows 11 and I use the latest version of the software, If you need any more informations or logs say it to me
Two minutes to optimize everything, and how much memory did you recover?
The application uses Windows functions to clean the memory. The optimization speed will depend on your computer's hardware. For example, Windows uses your hard drive for paging. If you have an SSD instead of an HDD, this time reduces significantly.
You can try selecting memory areas individually and see which one is taking longer to optimize. Based on the cost time X benefit of recovered memory, you decide which memory area to optimize. Does it make sense?
If you want to dig deeper into memory analysis. I recommend this tool: RAMMap
Maybe not 2 mins something like between 1 and 2 mins and I save ~10% memory and I have 16GB of ram but the problem is not that it takes time it's that it makes my pc lagging when cleaning the memory and btw I setup my swap on my HDD to don't f*** my ssd wearout
That might be your issue. I know SSD is expensive, but it's faster. Try switching back the swap to SSD to see if the optimization changes by chance. Don't forget to restart the Windows after. As I said, select one memory area by time and run some tests. Also, open the task manager and check if the disk or CPU utilization reaches 100%. That will tell what hardware component is lagging your pc. Feel free to post some results. 👍
I'll add optimization stats to the Log (Total and each memory area duration). That will help get a better idea of what is happening.
I've just looked and when I clean my memory my hdd is at 100% and my windows lags, and when my hdd is below 100% my windows no longer lags but how can I make it so that it no longer lags, perhaps limit disk usage when cleaning?
I can't afford to use my ssd for swap, it'll really kill it and I wouldn't recommend it to anyone if it's a ssd where your windows and lots of other things are also present, but if it's a dedicated ssd for swap, why not
I understand hardware might be expensive, but it's made to be used. For example, it's similar to buying a new car a keep it in the garage because you want to save tires.
The app only calls Windows native memory functions. Unfortunately, I can not control how Windows will use your computer resources to run these functions.
My PC takes 3 seconds to run the optimization for all areas. So, it is hard for me to replicate your scenario.
I am interested to know if you use the SSD to swap; the Windows won't freeze. Can you run this test?
Also, can you try a different priority process? Change the WinMemoryCleaner.exe process priority to low, and let's see if Windows will allocate fewer resources. Or even high/real-time to see if it speeds up the freeze time.
Here is an article about how to change a process priority: https://winaero.com/change-process-priority-windows-10/amp/
Windows might limit the use of resources if the process has low priority. Let me know if it works, and I'll implement some workaround.
Ok, i'll try
Please, run this build and let me know if something has changed about the freezing.
WinMemoryCleaner.zip
CHANGES
- I set the app process and threads to low priority.
- The log now shows the elapsed time for each memory area.
Well, 10.6 seconds is far from 2 minutes. Setting the priority to low doesn't reduce it. It should increase the time.
Clean Modified Page List is taking 8 seconds for you. It flushes memory from the modified page list, writing unsaved data to disk and moving the pages to the standby list. You are having a bottleneck in disk usage.
You can click on the tab "General"; it will provide a better view format, as seen in my image.
Please keep using it, and just let me know. Could you give me more details about your software/hardware changes? How about the freezing? How is your disk usage? Did you switch to SSD?
Yeah, it seems to be better, i still use my hdd btw
Nice.
Does it still freeze?
A little bit but less
Improved in version 2.5