It is currently May 27th, 2020, 3:49 am

Rainmeter Ability Question - Yes=Try, No = Done

Help with creating, editing & fixing problems with skins
User avatar
Mor3bane
Posts: 834
Joined: May 7th, 2016, 7:32 am

Rainmeter Ability Question - Yes=Try, No = Done

Post by Mor3bane »

Hello,

I was wondering if there was a way to empty the Swap Memory cache with a Rainmeter Function, like everyone likes to do with the Recycle Bin?

If so, what would that look like?

Thanks.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it
User avatar
jsmorley
Developer
Posts: 20650
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Rainmeter Ability Question - Yes=Try, No = Done

Post by jsmorley »

I know of no command-line way to do that, and in fact, I would strongly recommend against it in any case.

Windows 10 is fully capable of clearing memory caches and buffers when necessary or desirable, and it will do a far better job than even the most expert user. There is no benefit in attempting to do so manually and this will in fact impair performance. Having stuff that Windows wants or needs load from crazy fast memory or even carefully managed physical page caching is way, way faster than having to go back and find it on disk.

This is the kind of thing those entirely pointless "memory tuneup" utilities that pollute the internet claim to do. They are at the very best a placebo, at the worst will really slow things down. Never run them.

Let Windows 10 manage your memory. It knows what it is doing. As far as Windows is concerned, "unused memory" is just stupid and pointless. Windows is going to use all the memory it can to make your PC run faster and more efficiently. It knows when it needs to give back some to prioritize things, and you really never need to worry about it. Windows 10 has done an enormous amount of work on memory management, and it is insanely clever.

So ok, you didn't ask "should I?" but "how do I?". The answer to that is I don't know. Sorry.
User avatar
Mor3bane
Posts: 834
Joined: May 7th, 2016, 7:32 am

Re: Rainmeter Ability Question - Yes=Try, No = Done

Post by Mor3bane »

Thanks js

That is as I suspected, just thought I'd ask here.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it