{"id":853,"date":"2013-04-16T20:30:43","date_gmt":"2013-04-17T03:30:43","guid":{"rendered":"http:\/\/mattfife.com\/?p=853"},"modified":"2013-04-17T11:15:03","modified_gmt":"2013-04-17T18:15:03","slug":"core-parking-and-you","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=853","title":{"rendered":"Core Parking and You"},"content":{"rendered":"<p>So, Windows added a little feature a while back to help save power.\u00a0 Unfortunately, it can have serious side effects for gaming and other high-performance computing.<\/p>\n<p>Windows 7 \/ Server 2008\u00a0 machines running on multi-core CPU&#8217;s have an obscure feature enabled by default called CPU core parking. While usually benign &#8211; some people have experienced serious issues that seem completely unrelated to this feature.\u00a0 The symptoms are a decrease in performance with unstable and jittery in-game FPS, or noticeably laggy\/jittery and unresponsive game play.\u00a0 All this despite a high-end graphics card and CPU that should be more than capable of running the game. People have often seen this problem or described it as micro-stuttering &#8211; random fractional frame pauses that are hard to pin down precisely but are definitely noticeable and detrimental to game play.<\/p>\n<p>Core parking comes in at this point.\u00a0 Modern multi-threaded games often can leave a core idle for micro-portions of the frame after it has completed it&#8217;s processing and other cores are still finishing their work up.\u00a0 Windows sees this idling, and decides to put the idle core in low-power mode.\u00a0 Normally, threads go idle for long periods of time (often hundreds to thousands of milliseconds), so putting them to sleep is fine and can save power.\u00a0 But in a game, the core goes idle only to be woken up only microseconds later for the next frame.\u00a0 Unfortunately, parking and unparking has a time cost associated with the operation of a couple of micro\/milliseconds &#8211; which when rendering 60+fps &#8211; actually creates noticeable tiny &#8216;hitches&#8217;.\u00a0 It often appears randomly because it requires just the right set of conditions to cause the parking\/wakeup to be visible.<\/p>\n<p>So, what to do?\u00a0 You can actually disable this &#8216;feature&#8217; &#8211; which on a gaming rig &#8211; is probably the right action since it&#8217;s unlikely that power saving is your highest concern.\u00a0 How do you do it?\u00a0 Just like this:<\/p>\n<ul>\n<li>Open Regedit<\/li>\n<li>Find this key:\u00a0 &#8221; 0cc5b647-c1df-4637-891a-dec35c318583 &#8220;<\/li>\n<li>Within this key, there is a value called:\u00a0 &#8221; ValueMax &#8221; This value represents the % number of cores the system will park &#8211; the default is 64(hex) or 100%\u00a0 ie:\u00a0 all Cores are potentially park-able.<\/li>\n<li>Change the value from 0x64 to 0 so the &#8221; ValueMin &#8221;\u00a0 and\u00a0 &#8221; ValueMax &#8221; are both zero<\/li>\n<li>You will have to find the key a few times and repeat the process for each time it is found &#8211; the number of instances will depend on the number of\u00a0power profiles in your system\u00a0 [\u00a0 for me, it was only found twice ]D<\/li>\n<li>Do a full shutdown, power-off, and cold-re-start<\/li>\n<\/ul>\n<p>Here&#8217;s a <a href=\"http:\/\/allisterb.blogspot.com\/2013\/01\/the-saga-of-muticore-cpus-core-parking.html\" target=\"_blank\">good description of the problem and how it manifests itself<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, Windows added a little feature a while back to help save power.\u00a0 Unfortunately, it can have serious side effects for gaming and other high-performance computing. Windows 7 \/ Server 2008\u00a0 machines running on multi-core CPU&#8217;s have an obscure feature enabled by default called CPU core parking. While usually benign &#8211; some people have experienced serious issues that seem completely unrelated to this feature.\u00a0 The symptoms are a decrease in performance with unstable and jittery in-game FPS, or noticeably laggy\/jittery&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/mattfife.com\/?p=853\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,5],"tags":[],"class_list":["post-853","post","type-post","status-publish","format-standard","hentry","category-technicalproblemsolutions","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-dL","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=853"}],"version-history":[{"count":5,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":855,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/853\/revisions\/855"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}