{"id":1907,"date":"2016-12-29T16:17:26","date_gmt":"2016-12-30T00:17:26","guid":{"rendered":"http:\/\/www.coretechnologies.com\/blog\/?p=1907"},"modified":"2022-05-01T22:34:05","modified_gmt":"2022-05-02T05:34:05","slug":"turbocharge-windows-services","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/turbocharge-windows-services\/","title":{"rendered":"Turbocharge your Applications Running as Windows Services with AlwaysUp"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load image-padding\" src=\"\/blog\/images\/turbocharge-windows-service.webp\" title=\"Speed up Windows Services\" alt=\"Speed up Windows Services\" width=\"540\" height=\"315\" border=\"0\"><\/div>\n<p><\/p>\n<p>Right now your computer is probably running over a hundred programs! And with just a handful of CPUs available &#8212; certainly not enough to dedicate a whole CPU to each process &#8212; Windows has to perform some wizardry to give the illusion that each program has all the resources that it needs. Indeed, every few milliseconds the Operating System is deciding which of the many active processes should have exclusive use of the CPU for the next small slice of time, and it is doing this over and over again. This activity is called <a href=\"https:\/\/en.wikipedia.org\/wiki\/Scheduling_(computing)\" target=\"_blank\" rel=\"noopener noreferrer\">CPU Scheduling<\/a>.<\/p>\n<p>This article discusses how you can influence CPU scheduling to benefit all your windows services, as well as any application running as a windows service with <a href=\"\/products\/AlwaysUp\/\">AlwaysUp<\/a>.<\/p>\n<h2><b>Give All Windows Services More CPU Time<\/b><\/h2>\n<p>While Windows manages CPU scheduling automatically, you can specify which types of tasks get more processing resources via a setting on the Control Panel. To find the setting:\n<\/p>\n<ol>\n<li>\n<p>Open Control Panel<\/p>\n<\/li>\n<li>\n<p>Click <b>System and Security<\/b><\/p>\n<\/li>\n<li>\n<p>Click <b>System<\/b><\/p>\n<\/li>\n<li>\n<p>Click <b>Advanced system settings<\/b> on the left to open the <b>System Properties<\/b> window<\/p>\n<\/li>\n<li>\n<p>Switch to the <b>Advanced<\/b> tab<\/p>\n<\/li>\n<li>\n<p>In the <b>Performance<\/b> section, press the <b>Settings&#8230;<\/b> button to open the <b>Performance Options<\/b> window<\/p>\n<\/li>\n<li>\n<p>Switch to the <b>Advanced<\/b> tab to reveal the <b>Processor scheduling<\/b> section.<br \/>\n<a href=\"\/blog\/images\/performance-options-windows-service-scheduling.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Windows Performance Options\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/performance-options-windows-service-scheduling.png\" title=\"Windows Performance Options (click to enlarge)\" alt=\"Windows Performance Options\" width=\"377\" height=\"542\" border=\"0\"><\/a>\n<\/p>\n<\/li>\n<\/ol>\n<p><\/p>\n<p>Windows offers a single choice: Do you want to give preferential treatment to regular, foreground programs (like Word and Excel) or to background windows services? A desktop PC, actively driven by a person expecting his applications to be very responsive is better off choosing <b>Programs<\/b>. However your AlwaysUp-managed applications will likely perform better with the <b>Background services<\/b> option as they are being run in the background as Windows Services. Please apply that setting to your system if necessary.<\/p>\n<h2><b>Give your Important AlwaysUp Application More CPU Time<\/b><\/h2>\n<p>Windows performs <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ms685100(v=vs.85).aspx\" target=\"_blank\" rel=\"noopener noreferrer\">priority based round robin CPU scheduling<\/a>. Each process has an assigned priority (from idle to real-time) and Windows tries to assign available CPU cycles to the higher priority processes whenever it can. However, since almost all processes on the typical computer run with normal priority, the reality is that CPUs are offered equally to the majority of the active processes.<\/p>\n<p>But why should the print spooler or the time synchronization service be given a CPU while your mission-critical application is left waiting in line?<\/p>\n<p>Fortunately AlwaysUp can be configured to run your application at a higher priority, to ensure that it gets more processing power than less time-sensitive processes. To make the change, edit your application and find the <b>Set the priority to<\/b> setting on the <b>General<\/b> tab:<\/p>\n<p><a href=\"\/blog\/images\/alwaysup-set-application-priority.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Increase your Application's Priority\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/alwaysup-set-application-priority.png\" title=\"Increase your Application's Priority (click to enlarge)\" alt=\"Increase your Application's Priority\" width=\"425\" height=\"604\" border=\"0\"><\/a><\/p>\n<p>We recommend setting the priority to <b>Above Normal<\/b> or <b>High<\/b> to give your application preferential treatment.<\/p>\n<p>Note: As <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ms685100(v=vs.85).aspx\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft counsels<\/a>, the <b>Realtime<\/b> option should be used with extreme caution as it may have unintended side effects.<\/p>\n<p>Enjoy!<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/reconnect-network-drives-feature\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"AlwaysUp Feature Spotlight: Automatically Reconnect Network Drives\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/connect-network-drives150x150.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp Feature Spotlight: Automatically Reconnect Network Drives<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/dropbox-not-working\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Dropbox Version 81.4.195 (September 18, 2019) Not Working With AlwaysUp For Some Customers\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/dropbox-experiencing-issues-150x150-150x123.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Dropbox Version 81.4.195 (September 18, 2019) Not Working With AlwaysUp For Some Customers<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/service-trigger-editor\/start-windows-service-usb-flash-drive\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"How to Start your Windows Service When a USB Flash Drive is Inserted\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/windows-thumb-drive-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">How to Start your Windows Service When a USB Flash Drive is Inserted<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Right now your computer is probably running over a hundred programs! And with just a handful of CPUs available &#8212; certainly not enough to dedicate a whole CPU to each process &#8212; Windows has to perform some wizardry to give &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/turbocharge-windows-services\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2742,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,80,116,196],"class_list":["post-1907","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-feature-spotlight","tag-performance","tag-windows-services-2"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=1907"}],"version-history":[{"count":3,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1907\/revisions"}],"predecessor-version":[{"id":11287,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/1907\/revisions\/11287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/2742"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=1907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=1907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=1907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}