No problem, happy to help! Your adjustment to the formula seems to yield extremely close values to those reported by Task Manager / Resource Monitor for me too, indeed: Looks like the "typo" in the article is worse than first thought (or maybe the article is slightly outdated?), given that "CacheBytes" is apparently not even part of this. That typo suits well with the visual glitch that displays "MBB" under "Modified" in the Resource Monitor window above.Thanks for the snippet Yincognito! I tried it and it looks like, on my PC at least, that the "Cached" value in Task Manager is exactly this formula from your snippet:Screenshot 2024-05-27 121206.pngCode:
[PhysicalMemoryCached]Measure=CalcFormula=(ModifiedPageListBytes + StandbyCacheReserveBytes + StandbyCacheNormalPriorityBytes + StandbyCacheCoreBytes)
There's no rounding error either; your formula rounded to 1 decimal place matches Task Manager exactly. Looking at the MS article you linked, including CacheBytes throws off the number so it won't match Task Manager, and as you mentioned, I also don't see any counter "Standby Cache Code Bytes". The "System Code Total Bytes" counter always returns zero on my machine.

P.S. Yes, the value also matches the GB one in Task Manager, I just prefer the Resource Monitor MB one since it has a higher granularity and differences are easier to spot on.
Statistics: Posted by Yincognito — 26 minutes ago — Replies 1225 — Views 2295573