{"id":4507,"date":"2015-05-12T11:45:10","date_gmt":"2015-05-12T18:45:10","guid":{"rendered":"http:\/\/3.209.169.194\/blogs\/paul\/?p=4507"},"modified":"2017-04-13T11:40:40","modified_gmt":"2017-04-13T18:40:40","slug":"survey-page-life-expectancy","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/","title":{"rendered":"Survey: page life expectancy"},"content":{"rendered":"<p>It&#8217;s been a while since I&#8217;ve done a survey, and this one is inspired by a discussion I had with Matt Slocum (<a href=\"http:\/\/www.sqlmatt.com\/\" target=\"_blank\">b<\/a>\u00a0|\u00a0<a href=\"https:\/\/mobile.twitter.com\/slocummatt\" target=\"_blank\">t<\/a>)\u00a0yesterday that led me to update my PLE post <a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/page-life-expectancy-isnt-what-you-think\/\" target=\"_blank\">Page Life Expectancy isn\u2019t what you think\u2026<\/a>\u00a0with the discovery that on NUMA systems, Buffer Manager: Page Life Expectancy is a harmonic mean, not an arithmetic mean &#8211; big difference.<\/p>\n<p>Anyway, in this survey I want some information about your page life expectancy and other supporting information:<\/p>\n<ul>\n<li>SQL Server version<\/li>\n<li>Number of logical processor cores<\/li>\n<li>Buffer Node: Page Life Expectancy and Target\/Total Node Memory for each buffer pool partition<\/li>\n<li>Buffer Manager: Page life Expectancy<\/li>\n<\/ul>\n<p>Feel free to run the code below any way you want, and also add a single preceding column\u00a0to the result set (e.g. server name or number) if you want, but PLEASE do not add any *rows* of data apart from what I&#8217;ve asked for otherwise it makes the data processing very time consuming, especially if you send results from hundreds of servers. I know people that do that are trying to be helpful, but I really don&#8217;t need any other data apart from what I&#8217;ve asked for.<\/p>\n<p>You can <a href=\"mailto:paul@sqlskills.com?subject=PLE%20survey results\" target=\"_blank\">send me results in email<\/a> in a text file or spreadsheet, or leave a comment below. The code will work on SQL Server 2005 onwards.<\/p>\n<p>[Edit: 6\/17\/15 &#8211; the survey is closed &#8211; please don&#8217;t send any more results &#8211; thanks!]<\/p>\n<p>I&#8217;ll editorialize the results in a week or two.<\/p>\n<p>Thanks!<\/p>\n<pre class=\"brush: sql; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nSELECT\r\n\tLEFT (@@version, 25),\r\n\t'Cores available:',\r\n\tCOUNT (*)\r\nFROM sys.dm_os_schedulers\r\nWHERE &#x5B;status] = 'VISIBLE ONLINE'\r\n\r\nUNION ALL\r\n\r\nSELECT\r\n\t&#x5B;object_name],\r\n\t&#x5B;counter_name],\r\n\t&#x5B;cntr_value]\r\nFROM sys.dm_os_performance_counters\r\nWHERE &#x5B;object_name] LIKE '%Memory Node%'\r\n\tAND &#x5B;counter_name] = 'Target Node Memory (KB)'\r\n\r\nUNION ALL\r\n\r\nSELECT\r\n\t&#x5B;object_name],\r\n\t&#x5B;counter_name],\r\n\t&#x5B;cntr_value]\r\nFROM sys.dm_os_performance_counters\r\nWHERE &#x5B;object_name] LIKE '%Memory Node%'\r\n\tAND &#x5B;counter_name] = 'Total Node Memory (KB)'\r\n\r\nUNION ALL\r\n\r\nSELECT\r\n\t&#x5B;object_name] AS &#x5B;ObjectName],\r\n\t&#x5B;counter_name] AS &#x5B;CounterName],\r\n\t&#x5B;cntr_value] AS &#x5B;CounterValue]\r\nFROM sys.dm_os_performance_counters\r\nWHERE &#x5B;object_name] LIKE '%Buffer Node%'\r\n\tAND &#x5B;counter_name] = 'Page life expectancy'\r\n\r\nUNION ALL\r\n\r\nSELECT\r\n\t&#x5B;object_name],\r\n\t&#x5B;counter_name],\r\n\t&#x5B;cntr_value]\r\nFROM sys.dm_os_performance_counters\r\nWHERE &#x5B;object_name] LIKE '%Buffer Manager%'\r\n\tAND &#x5B;counter_name] = 'Page life expectancy';\r\nGO\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a while since I&#8217;ve done a survey, and this one is inspired by a discussion I had with Matt Slocum (b\u00a0|\u00a0t)\u00a0yesterday that led me to update my PLE post Page Life Expectancy isn\u2019t what you think\u2026\u00a0with the discovery that on NUMA systems, Buffer Manager: Page Life Expectancy is a harmonic mean, not an [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[],"class_list":["post-4507","post","type-post","status-publish","format-standard","hentry","category-surveys"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Survey: page life expectancy - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Survey: page life expectancy - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"It&#8217;s been a while since I&#8217;ve done a survey, and this one is inspired by a discussion I had with Matt Slocum (b\u00a0|\u00a0t)\u00a0yesterday that led me to update my PLE post Page Life Expectancy isn\u2019t what you think\u2026\u00a0with the discovery that on NUMA systems, Buffer Manager: Page Life Expectancy is a harmonic mean, not an [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-12T18:45:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T18:40:40+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/\",\"name\":\"Survey: page life expectancy - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2015-05-12T18:45:10+00:00\",\"dateModified\":\"2017-04-13T18:40:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Survey: page life expectancy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Survey: page life expectancy - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/","og_locale":"en_US","og_type":"article","og_title":"Survey: page life expectancy - Paul S. Randal","og_description":"It&#8217;s been a while since I&#8217;ve done a survey, and this one is inspired by a discussion I had with Matt Slocum (b\u00a0|\u00a0t)\u00a0yesterday that led me to update my PLE post Page Life Expectancy isn\u2019t what you think\u2026\u00a0with the discovery that on NUMA systems, Buffer Manager: Page Life Expectancy is a harmonic mean, not an [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/","og_site_name":"Paul S. Randal","article_published_time":"2015-05-12T18:45:10+00:00","article_modified_time":"2017-04-13T18:40:40+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/","name":"Survey: page life expectancy - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2015-05-12T18:45:10+00:00","dateModified":"2017-04-13T18:40:40+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/survey-page-life-expectancy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Survey: page life expectancy"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/4507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=4507"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/4507\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=4507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=4507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=4507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}