{"id":6650,"date":"2019-08-20T09:45:51","date_gmt":"2019-08-20T14:45:51","guid":{"rendered":"https:\/\/www.poweradmin.com\/blog\/?p=6650"},"modified":"2019-08-28T14:49:25","modified_gmt":"2019-08-28T19:49:25","slug":"computing-memory-usage-according-to-task-manager","status":"publish","type":"post","link":"https:\/\/www.poweradmin.com\/blog\/computing-memory-usage-according-to-task-manager\/","title":{"rendered":"Computing Memory Usage According to Task Manager"},"content":{"rendered":"<p><span style=\"font-family: arial, helvetica, sans-serif;\">When you look at Task Manager, it\u2019s hard to compare it to any counter you see in Performance Monitor. The reason is there are many ways to discuss memory usage and it\u2019s cousin free memory. If you think about it, you really don\u2019t want your computer to have free memory laying around. That would represent computer resources the computer could be using but isn\u2019t. When we look at the memory usage in Resource Monitor, we see that Windows keeps very little \u201cfree memory\u201d around.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/free-memory.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6651\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/free-memory.png\" alt=\"\" width=\"535\" height=\"183\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/free-memory.png 535w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/free-memory-300x103.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\"><\/a><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">\u201cStandby\u201d memory is a little more interesting. It is in use, but could be given up if something more important came along. It turns out that Task Manager\u2019s \u201cMemory Usage\u201d display is really the total amount of physical memory minus this Standby memory and Free memory.\u00a0 There isn\u2019t a Performance Counter that gives this same value, but we can get close in PA Server Monitor.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>\\Memory\\Available MBytes<\/strong> is a close approximation to the Standby and Free memory. Its definition is:<\/span><\/p>\n<p>\u00a0<\/p>\n<blockquote>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Available MBytes is the amount of physical memory, in Megabytes, immediately available for allocation to a process or for system use. It is equal to the sum of memory assigned to the standby (cached), free and zero page lists.<\/span><\/p>\n<p>\u00a0<\/p>\n<\/blockquote>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">The counter <strong>\\Numa Node Memory\\Total MBytes<\/strong> is the closest counter that exists that represents the physical installed memory. It is defined as:<\/span><\/p>\n<p>\u00a0<\/p>\n<blockquote>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Total amount of physical memory associated with a NUMA node in megabytes.<\/span><\/p>\n<p>\u00a0<\/p>\n<\/blockquote>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Note that this counter is only available on 64-bit versions of Windows.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">With these two counters we can calculate Task Manager\u2019s notion of Memory Usage with:<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Memory Usage = (100 * (Total MBytes \u2013 Available MBytes))\/Total MBytes.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">This can be done in the the PA Server Monitor Performance Monitor using the Advanced Options and a variable as pictured:<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><a href=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/calculate-memory-usage-in-task-manager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6652\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/calculate-memory-usage-in-task-manager.png\" alt=\"\" width=\"840\" height=\"345\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/calculate-memory-usage-in-task-manager.png 840w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/calculate-memory-usage-in-task-manager-300x123.png 300w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2019\/08\/calculate-memory-usage-in-task-manager-768x315.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\"><\/a><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Be sure to change the values highlighted above in your monitor.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">I like to set an alias of \u201cTask Mgr Memory Usage %\u201d so I know what this value is being shown in charts.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you look at Task Manager, it\u2019s hard to compare it to any counter you see in Performance Monitor. The reason is there are many ways to discuss memory usage and it\u2019s cousin free memory. If you think about it, you really don\u2019t want your computer to have free memory laying around. That would represent [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":6651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,5,57,9,8],"tags":[],"class_list":["post-6650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-counters","category-how-to","category-monitoring","category-technical","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/6650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/comments?post=6650"}],"version-history":[{"count":5,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/6650\/revisions"}],"predecessor-version":[{"id":6663,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/6650\/revisions\/6663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media\/6651"}],"wp:attachment":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media?parent=6650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/categories?post=6650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/tags?post=6650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}