Author Topic: Make Sense of Memory Management and Key Memory Measurements  (Read 2490 times)

0 Members and 2 Guests are viewing this topic.

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46028
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Make Sense of Memory Management and Key Memory Measurements

Understanding the meaning of terms like working set, virtual memory, and hard faults is essential to memory management. Here’s an overview of memory-related terms you should know.

Memory management is confusing, perhaps more so than any other aspect of PC performance. If you scour the Web for information on this topic, you will surely run into misguided advice and technical errors. Knowing the meaning of the following specialized memory-measurement terms helps you make sense of it all:

Physical memory refers to actual RAM chips or modules, typically installed on a computer’s motherboard. The amount of physical RAM available to Windows might be less than the total physical amount if another system component is using that memory for its own purposes, as is the case with “shared memory” video subsystems on portable computers. Physical memory measurements (total and in use) are reported on the Performance tab of Windows Task Manager and on the Memory tab of Resource Monitor.

Virtual memory consists of physical memory plus the amount of space in the page file, which is stored on the hard disk.

Kernel memory is owned by Windows and is used to provide system services to applications. Paged memory can be backed up to the page file and replaced by application memory if necessary. Nonpaged memory must remain in physical RAM at all times.

Cached memory holds data or program code that has been fetched into memory during the current session but is no longer in use now. If necessary, the Windows memory manager will flush the contents of cached memory to make room for newly summoned data.

Free memory represents RAM that does not contain any data or program code and is free for use immediately.

Working Set is the term that defines the amount of memory currently in use for a process. Private Working Set is the amount of memory that is dedicated to that process and will not be given up for other programs to use; Shareable Working Set can be surrendered if physical RAM begins to run scarce. Peak Working Set is the highest value recorded for the current instance of this process.

Commit Charge (also called commit size) is the total amount of virtual memory that a program has touched (committed) in the current session, including memory that has been paged out of physical memory to the disk-backed page file. The Memory and Physical Memory counters on Task Manager’s Performance tab represent the sum of this value for all processes and the kernel. The Commit Charge Limit is the total amount of physical RAM and page file available—in other words, the maximum virtual memory.

Hard faults are also known as page faults. Despite the negative connotation of the name, this is not an error condition. Rather, it represents an instance where a block of memory needed by the operating system or an application has to be fetched from the page file on the hard disk instead of from physical memory. A consistently high number of hard faults per second indicates a large—perhaps excessive—reliance on virtual memory, with consequent adverse performance effects.

The best way to gauge the adequacy of your currently installed RAM is to keep an eye on the Memory graph in Resource Monitor.The green portion of the bar indicates the percentage of your physical memory that’s currently in use; shades of blue indicate cached memory that is available on demand (Standby). It’s also important to watch the green line on the graphs to the right, which indicates the number of hard faults per second your system is generating. If you see it spike off the top of the graph for extended periods of time, you’ll want to take a closer look at how memory is being used.

Pay special attention to these numbers when you’re asking the most of your computer—you might even consider performing a stress test by successively opening the applications you use most often. Switch between programs, open and edit some data files, browse a couple dozen Web pages, and generally try to use more system resources than you would use at one time under normal circumstances. If you find yourself bumping up against the ceiling regularly, you might get a noticeable performance boost from additional RAM.

Do not get hung up on percentages. If you routinely hit a maximum of 85 percent memory usage on a machine running 64-bit Windows 7 with 6 GB of physical RAM, you have 900 MB of free RAM, which is plenty of headroom.

From the Microsoft Press book Windows 7 Inside Out by Ed Bott, Carl Siechert, and Craig Stinson.

credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
2479 Views
Last post February 22, 2009, 11:48:07 PM
by Reporter
0 Replies
2328 Views
Last post June 16, 2010, 02:06:12 PM
by Nick
0 Replies
3280 Views
Last post June 16, 2010, 06:25:48 PM
by Nick
0 Replies
2555 Views
Last post July 02, 2010, 05:45:43 PM
by Nick
0 Replies
1783 Views
Last post August 07, 2010, 10:13:40 AM
by Nick
0 Replies
2052 Views
Last post April 20, 2011, 03:31:59 PM
by Nick
0 Replies
1913 Views
Last post March 02, 2012, 01:35:05 PM
by Nick
0 Replies
1827 Views
Last post March 06, 2012, 05:55:28 PM
by Nick
0 Replies
5906 Views
Last post April 11, 2014, 08:28:08 PM
by Nick
0 Replies
1101 Views
Last post November 14, 2023, 03:31:43 PM
by guupost