{"id":1271,"date":"2011-08-25T22:20:44","date_gmt":"2011-08-25T20:20:44","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1271"},"modified":"2011-08-26T11:56:36","modified_gmt":"2011-08-26T09:56:36","slug":"utility-clearance-artificial-cpu-load","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1271","title":{"rendered":"Utility Clearance: Artificial CPU Load"},"content":{"rendered":"<p>The <em>LoadCpu<\/em> tool creates one or more threads to waste CPU cycles and emulate slower environment, such as for testing and troubleshooting. There has been a great deal of similar tools out there, and this one in particular is convenient\/special as it takes process affinity mask as a parameter.<\/p>\n<p>That is, \/a:NN defines affinity mask, e.g. 5 for 1st and 3rd CPU (two threads), and \/r:MM defines [roughly] CPU load time in percent.<\/p>\n<pre>Microsoft Windows [Version 6.1.7601]\r\nCopyright (c) 2009 Microsoft Corporation.\u00c2\u00a0 All rights reserved.\r\n\r\nC:\\&gt;loadcpu \/a:5 \/r:25\r\nSystem Affinity Mask: 0xff\r\nProcess Affinity Mask: 0x05\r\nRate: 25%<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1272\" title=\"Utility's CPU Load\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2011\/08\/Image001.png\" alt=\"\" width=\"566\" height=\"391\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2011\/08\/Image001.png 566w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2011\/08\/Image001-320x221.png 320w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/p>\n<p>A binary [<a href=\"https:\/\/alax.info\/trac\/public\/browser\/trunk\/Utilities\/LoadCpu\/Win32\/Release\/LoadCpu.exe?format=raw\">Win32<\/a>] and partial Visual C++ .NET 2010 <a href=\"https:\/\/alax.info\/trac\/public\/browser\/trunk\/Utilities\/LoadCpu\">source code<\/a> are available from SVN.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The LoadCpu tool creates one or more threads to waste CPU cycles and emulate slower environment, such as for testing and troubleshooting. There has been a great deal of similar tools out there, and this one in particular is convenient\/special as it takes process affinity mask as a parameter. That is, \/a:NN defines affinity mask,&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1271\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,13,2,20],"tags":[38,330,364,280,365,132],"class_list":["post-1271","post","type-post","status-publish","format-standard","hentry","category-atl","category-source","category-utilities","category-wtl","tag-c","tag-cpu","tag-developer","tag-environment","tag-testing","tag-utility"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=1271"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1271\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}