SmartTrim PR Draft

Started by Jeremy Collake, December 31, 2014, 03:01:18 AM

Previous topic - Next topic

Jeremy Collake

See at:
http://bitsum.com/smarttrim/

Legacy link about virtual memory cleaner scams:
https://bitsum.com/virtual_memory_facts_and_memory_optimizer_scams.php

Feedback? Corrections? I am still proof-reading and refining.

Can't wait to get back to code, which I'll be doing after I'm done with this. I've found if I'm gong to sell a product, it's helpful to describe it well!
Software Engineer. Bitsum LLC.

BenYeeHua

Yes, what's wrong with the Image?
It is showing another half B for Modified and Standby. :P
---
QuoteWe know users want control over their PCs.
Not sure my English is bad or..
Should not it is "We know users want more control over their PCs"? :)
---
Hmm, not sure did you also want to saying about this, and also provide a workaround that clean the system cache for Windows Vista x64 user?
http://support.microsoft.com/kb/976618
http://blogs.technet.com/b/markrussinovich/archive/2008/07/21/3092070.aspx
http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx
http://www.alex-ionescu.com/?p=51

Also this got a good image to showing how's Memory management works after Windows Vista. :)
http://blogs.msdn.com/b/tims/archive/2010/10/29/pdc10-mysteries-of-windows-memory-management-revealed-part-two.aspx
---
QuoteApplications page themselves out all the time

Many applications today page themselves out when they are minimized, or when parts of them go inactive. They do this to reduce their effective RAM footprint. Therefore, for many processes, additional paging out makes little difference. For most all processes, over the long-term, the same amount of RAM is probably consumed regardless of whether it is forcefully paged out or not. After all, over time, the pages it uses are paged in, and the pages it doesn't use are paged out.
This, are there any good ways to stop them doing this?

Because some software like to use this way for showing they has a much smaller memory usage, but the facts is when I open their software from Tray Icon, it always lag because it need to read the data from Page File/Swap with a bad way...

So far I know you can do is to block their API call, but this is beyond my knowledge... :P

TR;DR:Some software like to paged their cached data into Page File, then it will lag when I open the GUI to use them, anyways good ways to stop them keep doing this? :)

edkiefer

I am little confused with the differances you post for task manager verse resource meter .
""Is your RAM NOT completely and fully utilized already? If not, you're good. (see the Windows Resource Monitor, or subtract the 'cached' RAM from the 'free' RAM in the Windows Task Manager)""
Why subtract in task manager, for me in Win7 it matches resource monitor both have same free value and cached = modified+standby , both have same cached values .I think it is Available- cached = real free .
Bitsum QA Engineer

Jeremy Collake

When I wrote that, I think I was still using the XP Task Manager. Not sure, but I'll clean it up.

Yes, 'more' control is better than control ;).

We'll talk about caches and what effect this has on them in time, I do need to mention that.

Thanks guys, I'll review these comments and continue refinement of this PR.
Software Engineer. Bitsum LLC.

Jeremy Collake

#4
@Ben, that is a good image!

Software Engineer. Bitsum LLC.

BenYeeHua

Yup, but then you need to explain about Zero Page then, just kidding. :D

Anyways, Modified Page = Data that has been TRIM from working set, and waiting for writing to Page File after it reach 100-200MB, if I am right. :)

Jeremy Collake

Yea, that's part of the problem here.

I can only go so deep before I would lose the audience. I mean, most engineers don't understand the workings of the Windows virtual memory subsystem from top to bottom.

SO, the idea here is to present an accurate overview - mostly dispelling why classic RAM optimizers are such bunk, and why SmartTrim might be useful.

The legacy article, like many legacy articles, was terribly written - i need to rewrite it. Focus on SmartTrim page, let's see if we can describe this in a handful of paragraphs.
Software Engineer. Bitsum LLC.

BenYeeHua

Yup, too deep then people will be scare away. :)

Anyways, something you may interesting, the cost.
http://randomascii.wordpress.com/2014/12/10/hidden-costs-of-memory-allocation/

Jeremy Collake

Added

SmartTrim

So what does SmartTrim do differently? Well, it acts conservatively and with sophisticated selectivity. It doesn't force everything out of memory all at once. It politely asks memory hogging background processes to release their working sets. It has many other criteria built in, such as never trimming the application you're actively engaged with. This, and more, make it the first truly intelligent RAM optimization algorithm ever conceived - and it's about time! I mean, all we're doing here is not being dumb about RAM optimization.

  • Conservative
  • Selective
  • Throttled paging
  • User-controlled

Software Engineer. Bitsum LLC.

BenYeeHua

Quotesuch as never trimming the application you're actively engaged with
Hmm...
This,  what's time it will be TRIM after the foreground process become background process when I just click ALT - TAB to check for other windows for awhile? :)

Jeremy Collake

Since the trims are presently scheduled, that action would have to correspond with the second of the scheduled trim. If the algorithm changes, I'll add a safety for that. Good thought though BenYeeHua :)
Software Engineer. Bitsum LLC.

BenYeeHua

Quote from: Jeremy Collake on January 04, 2015, 12:14:10 PM
Since the trims are presently scheduled, that action would have to correspond with the second of the scheduled trim. If the algorithm changes, I'll add a safety for that. Good thought though BenYeeHua :)
Yup, I guess only if the user is unlucky, then it will be TRIM after they switch the window. ::)

Jeremy Collake

Not anymore, safety catch to be added, thanks to your suggestion :)
Software Engineer. Bitsum LLC.

BenYeeHua

You may need to know, I am a bit crazy on safety and optimize(or like to make something prefect, step by step), so be careful about that. ;)

Jeremy Collake

You know I do.

Caution is the name of the game.

The #1 rule of PC Optimization is not to make matters worse.

Ironically, most all competitors in our industry break this rule. They just 'do stuff' they can claim has an impact. We prove our tech here at Bitsum.
Software Engineer. Bitsum LLC.

BenYeeHua

QuoteIronically, most all competitors in our industry break this rule. They just 'do stuff' they can claim has an impact. We prove our tech here at Bitsum.
Just like the secret ingredient, who know it is really a taste secret ingredient that made by them or it is just a placebo for letting you think that, you are eating a taste "secret" ingredient which you can found on the mini market. ;)

Jeremy Collake

Software Engineer. Bitsum LLC.