Hi all I was trying to confirm my understanding of “standby list” and “modified list” as stated in this article.
Is it true that “Cached memory” (as shown in the image below) refers to memory that is currently cached (available for use), and memory that was previous cached (previously available for use), but currently used (now not available for use) ?
x = “Cached memory” (1184),
y = “modified cache pages”,
z = “cached and were modified”,
x = y + z holds true ?
“Cached” memory is not memory that is cached, but memory that is used for cache. In all cases, cache is used as a means of speeding up access to slower medium by storing it temporarily in a faster medium.
In this instance, the cache is for speeding up access to disk based data. An example of this is where you open a file repeatedly, instead of read it from disk, it is stored in memory automatically by the OS so that subsequent reads do not require disk access.
Cached memory consumes “spare” RAM. Ie memory that is not directly used by applications or OS. In fact, it is more complex than that, as if an application is in memory but idle for some time, it might be swapped out to disk so that the memory it is using can be used for other applications, or cache.
If there are applications that require memory, and there is not enough free memory available, and there aren’t any candidates for swapping out of RAM, then cache memory will be sacrificed. So it is always available for use, but optimum system performance requires some memory to be available for caching.
Cached memory can include data that has been read from a disk, but also data that is intended to be written to a disk. For example, where a file is read from a disk, cached in memory, and then the file is modified by an application, the OS may choose to write these changes back to disk at a later time. Clearly, these “modified” cache pages cannot be discarded as the represent data that needs to ultimately get to a disk to be stored.
As such this ram is not available, and so doesn’t form part of the “Available” memory in the Windows memory usage dialog.
I don’t believe that cached memory is available for general use, but it has data that may be used for a specific purpose later. Memory that was previously caches tells me nothing about what it is now. It could be available, and it could be in use.
Cached means the OS thinks that something else will be loaded into memory in the near future, not that memory is available to be used. That is what available refers to.
In your image, they are all mutually exclusive numbers.
The Standby list & modified list are different from the numbers you see in task manager. Generally, task manager isn’t a great tool for such low level memory info. It was designed to manage tasks.
You are better off with Process Explorer.