{"id":306176,"date":"2010-04-19T09:30:55","date_gmt":"2010-04-19T16:30:55","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/?p=306176"},"modified":"2016-10-16T12:54:02","modified_gmt":"2016-10-16T19:54:02","slug":"trying-cure-pc-insomnia","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/research\/blog\/trying-cure-pc-insomnia\/","title":{"rendered":"Trying to Cure PC Insomnia"},"content":{"rendered":"<p><em>By Janie Chang, Writer, Microsoft Research<\/em><\/p>\n<p>Everyone understands the energy-saving benefits of shutting down PCs or leaving them on standby before leaving the office. The U.S. Environmental Protection Agency estimates that companies can achieve cost savings of $25 to $75 per PC annually if users activate system-hibernation features. The Gartner Group released a <a class=\"msr-external-link glyph-append glyph-append-open-in-new-tab glyph-append-xsmall\" rel=\"noopener noreferrer\" href=\"http:\/\/www.gartner.com\/newsroom\/id\/878912\" target=\"_blank\">study<span class=\"sr-only\"> (opens in new tab)<\/span><\/a> in February 2009 which showed that a company with 2,500 PCs could save more than $40,000 a year simply by using power management. A Forrester report quotes companies saying they have cut greenhouse gas emissions by 65 percent and saved $3 million a year in electricity bills by going green in IT.<\/p>\n<p>Power management is one of the simplest, most effective ways for a company to reduce energy bills, and operating systems, such as <a href=\"http:\/\/www.microsoft.com\/windows\/windows-7\/\" target=\"_blank\">Windows 7<\/a>, enable this by defaulting to sleep mode after an hour of idle time. Yet many corporate users will override this setting just in case they need after-hours remote access to their office PCs.<\/p>\n<p>A research project called Greening Corporate Networks with Sleep Proxy, deployed for more than six months in Building 99, Microsoft Research\u2019s Redmond headquarters, could offer a solution that lets more PCs sleep undisturbed overnight.<\/p>\n<div id=\"attachment_306179\" style=\"width: 460px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-306179\" class=\"size-full wp-image-306179\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Greening-Corporate-Networks.png\" alt=\"Greening Corporate Networks with Sleep Proxy project team\" width=\"450\" height=\"260\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Greening-Corporate-Networks.png 450w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Greening-Corporate-Networks-300x173.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><p id=\"caption-attachment-306179\" class=\"wp-caption-text\">The team that worked on the Greening Corporate Networks with Sleep Proxy project (from left): Carlos Garcia Jurado Suarez, Richard Hughes, Jitendra Padhye, Michel Goraczko, Aman Kansal, and Jay Lorch.<\/p><\/div>\n<p>\u201cThe reality,\u201d says <a href=\"https:\/\/www.microsoft.com\/en-us\/research\/people\/padhye\/\" target=\"_blank\">Jitendra Padhye<\/a>, senior researcher with <a href=\"https:\/\/www.microsoft.com\/en-us\/research\/lab\/microsoft-research-redmond\/\" target=\"_blank\">Microsoft Research Redmond<\/a>\u2019s <a href=\"https:\/\/www.microsoft.com\/en-us\/research\/group\/networking-research-group\/\" target=\"_blank\">Networking Research Group<\/a>, \u201cis that habits are hard to change, so the ideal scenario is one where a desktop goes to sleep when not in use and awakens when the user needs to access it, without any need for the user to change behavior.\u201d<\/p>\n<p>Padhye\u2014along with intern Joshua Reich of Columbia University and two members of Microsoft Research Redmond\u2019s Networked Embedded Computing group: Michel Goraczko, senior research developer, and Aman Kansal, researcher\u2014have developed a sleep-proxy solution that saves energy by enabling PCs in sleep mode to be available for remote network access; the PCs wake up only when needed. The core idea behind a sleep proxy is to enable a machine to sleep while the sleep proxy maintains the machine\u2019s network presence.<\/p>\n<h2>A Real-World Test Bed<\/h2>\n<p>The challenge for Padhye and his team was to build a practical sleep-proxy solution for deployment in a typical corporate network consisting of servers and desktop machines. The solution would have to support a usage scenario in which the user\u2019s office PC goes to sleep and is awakened seamlessly and automatically when the user attempts a remote connection to log in or gain file access.<\/p>\n<p>There were four goals for the Sleep Proxy solution:<\/p>\n<ul>\n<li>The system had to save as much power as possible.<\/li>\n<li>The system had to awaken machines with minimal disruption to users.<\/li>\n<li>The system had to be easy to deploy and maintain, with minimal IT support and no additional hardware for client machines.<\/li>\n<li>The architecture had to be scalable and extensible, to operate in a dynamic, live network environment.<\/li>\n<\/ul>\n<p>While the notion of a sleep proxy is not new, evaluations of earlier work were based on small test beds or simulations. The Greening Corporate Networks with Sleep Proxy project is the first to deploy and evaluate a sleep-proxy solution in an enterprise environment with actual user machines; it provides valuable lessons that come from designing, building, deploying, and running a sleep-proxy system on a real network.<\/p>\n<p>\u201cExisting solutions and proposed approaches,\u201d Padhye says, \u201chave required either special hardware, or modifications to the operating system, or were confined to specific platforms. We felt that such requirements would create barriers to widespread deployment. Our approach aims to be general and requires neither extra hardware nor application modifications.\u201d<\/p>\n<p>The Sleep Proxy solution and results from the project were showcased in March during Microsoft Research\u2019s <a href=\"https:\/\/www.microsoft.com\/en-us\/research\/event\/techfest-2010\/\" target=\"_blank\">TechFest 2010<\/a>. The technical report, titled <em>Sleepless in Seattle No Longer<\/em>, co-authored by Reich, Goraczko, Kansal, and Padhye, will be presented in Boston in June during the <a class=\"msr-external-link glyph-append glyph-append-open-in-new-tab glyph-append-xsmall\" rel=\"noopener noreferrer\" href=\"https:\/\/www.usenix.org\/legacy\/events\/usenix10\/\" target=\"_blank\">2010 USENIX Annual Technical Conference<span class=\"sr-only\"> (opens in new tab)<\/span><\/a>.<\/p>\n<div id=\"attachment_306182\" style=\"width: 360px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-306182\" class=\"size-full wp-image-306182\" src=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Sleep-Proxy.png\" alt=\"Sleep Proxy architecture\" width=\"350\" height=\"350\" srcset=\"https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Sleep-Proxy.png 350w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Sleep-Proxy-150x150.png 150w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Sleep-Proxy-300x300.png 300w, https:\/\/www.microsoft.com\/en-us\/research\/wp-content\/uploads\/2016\/10\/Sleep-Proxy-180x180.png 180w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><p id=\"caption-attachment-306182\" class=\"wp-caption-text\">A simplified diagram of the Sleep Proxy architecture.<\/p><\/div>\n<p>Sleep Proxy\u2019s architecture is based on two main components: a server component called SleepServer, which is the proxy, and SleepNotifier, a program that runs on each client machine. Because of the IT environment, some details of the implementation are Windows-specific, but the entire architecture is designed to be operating-system-agnostic.<\/p>\n<p>SleepNotifier alerts SleepServer just before the client goes to sleep, and SleepServer ensures that all incoming traffic meant for the client comes to the proxy instead. The proxy server\u2019s role is to monitor traffic and respond accordingly. For some requests, it responds on behalf of the client so the client can continue sleeping, and others it ignores. Some traffic, such as a user access request, causes the SleepServer proxy to awaken the client and present the user with apparently seamless remote access.<\/p>\n<p>\u201cThe advantage of this approach,\u201d Padhye says, \u201cis that it is entirely software-based, requires almost no hardware support, and doesn\u2019t need a dedicated server. With a two-megabyte footprint, it has negligible CPU and network impact.\u201d<\/p>\n<p>Key to the solution\u2019s deployment during the project was extensive instrumentation of the system, provided by a related Microsoft Research project, <a href=\"https:\/\/www.microsoft.com\/en-us\/research\/project\/joulemeter-computational-energy-measurement-and-optimization\/\" target=\"_blank\">Joulemeter<\/a>, a software-based mechanism that measures the energy consumption of systems and software by measuring the hardware resources\u2014CPU, disk, memory, screen\u2014being used and converting the data to actual power usage based on automatically learned, realistic power models. Thanks to Joulemeter\u2019s sophisticated, model-driven power-measurement system, the team could dispense with generic estimates of PC power consumption and obtain far more accurate measurements of machine power consumption over the six-month project. The data enabled the team to capture details about sleep and wake-up periods: Why machines wake up, and why they stay up.<\/p>\n<p>The 50 desktop users who participated in the project had few complaints about the eight- to nine-second initial delay time for remote access, which meant that the Sleep Proxy solution met the team\u2019s goals for user acceptance. They found that the average PC sleeps more than 40 percent of the time and that most of the power savings came from longer, after-hours sleep periods.<\/p>\n<h2>Real-World Lessons<\/h2>\n<p>Their data analysis yielded findings that took the team by surprise. Although the Sleep Proxy system enabled most clients\u2019 machines to sleep more than 50 percent of the time, the average power savings was only 20 percent. It turned out that while user requests did awaken machines, it was the IT department that proved responsible for the majority of machine requests. IT server-connection attempts repeatedly woke sleeping machines, and in an extreme case, one server contacted a single machine more than 400 times over a two-week period.<\/p>\n<p>The conclusion of the Sleep Proxy team was that, within the environment of the project, the solution itself had contributed significant energy savings, but even more significant energy savings were possible through changes to IT setups. For example, IT servers could coordinate and perhaps \u201crate-limit\u201d how and when they wake machines and keep them awake.<\/p>\n<p>Another real-world lesson came from the way Sleep Proxy affected cloud computing. Users provided feedback that the system interfered with the operation of two popular cloud-based applications, Live Mesh and Live Sync. The user\u2019s machine is supposed to initiate a Transmission Control Protocol connection to the cloud server, which informs the machine of pending updates. The connection can be periodic or long-lived, but it must be initiated by the machine, which requires that the machine is awake.<\/p>\n<p>In response to this feedback, the team built a manual wake-up Web portal that enables a user to awaken all machines that need to be synchronized.<\/p>\n<p>\u201cWe tweaked the software to allow Sleep Proxy to work with these cloud applications,\u201d Padhye says. \u201cIncorporating true sleep-proxy functionality into cloud applications would clearly be the ideal solution and warrants further exploration, but this sort of experience is exactly what we needed to guide future design and deployment of sleep solutions in enterprise networks.\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Janie Chang, Writer, Microsoft Research Everyone understands the energy-saving benefits of shutting down PCs or leaving them on standby before leaving the office. The U.S. Environmental Protection Agency estimates that companies can achieve cost savings of $25 to $75 per PC annually if users activate system-hibernation features. The Gartner Group released a study in [&hellip;]<\/p>\n","protected":false},"author":39507,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"msr-url-field":"","msr-podcast-episode":"","msrModifiedDate":"","msrModifiedDateEnabled":false,"ep_exclude_from_search":false,"_classifai_error":"","msr-author-ordering":[],"msr_hide_image_in_river":0,"footnotes":""},"categories":[194485,194488],"tags":[214604,186889,214607,214568,214577,186932,214571,214601,193515],"research-area":[13560,13547],"msr-region":[],"msr-event-type":[],"msr-locale":[268875],"msr-post-option":[],"msr-impact-theme":[],"msr-promo-type":[],"msr-podcast-series":[],"class_list":["post-306176","post","type-post","status-publish","format-standard","hentry","category-networking","category-program-languages-and-software-engineering","tag-cloud-applications","tag-cloud-computing","tag-enterprise-networks","tag-greenhouse-gas-emissions","tag-greening-corporate-networks-with-sleep-proxy","tag-power-management","tag-sleep-mode","tag-system-hibernation","tag-techfest-2010","msr-research-area-programming-languages-software-engineering","msr-research-area-systems-and-networking","msr-locale-en_us"],"msr_event_details":{"start":"","end":"","location":""},"podcast_url":"","podcast_episode":"","msr_research_lab":[199565],"msr_impact_theme":[],"related-publications":[],"related-downloads":[],"related-videos":[],"related-academic-programs":[],"related-groups":[144899],"related-projects":[170430],"related-events":[199692],"related-researchers":[],"msr_type":"Post","byline":"","formattedDate":"April 19, 2010","formattedExcerpt":"By Janie Chang, Writer, Microsoft Research Everyone understands the energy-saving benefits of shutting down PCs or leaving them on standby before leaving the office. The U.S. Environmental Protection Agency estimates that companies can achieve cost savings of $25 to $75 per PC annually if users&hellip;","locale":{"slug":"en_us","name":"English","native":"","english":"English"},"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/posts\/306176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/users\/39507"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/comments?post=306176"}],"version-history":[{"count":4,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/posts\/306176\/revisions"}],"predecessor-version":[{"id":306275,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/posts\/306176\/revisions\/306275"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media?parent=306176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/categories?post=306176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/tags?post=306176"},{"taxonomy":"msr-research-area","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/research-area?post=306176"},{"taxonomy":"msr-region","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-region?post=306176"},{"taxonomy":"msr-event-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-event-type?post=306176"},{"taxonomy":"msr-locale","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-locale?post=306176"},{"taxonomy":"msr-post-option","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-post-option?post=306176"},{"taxonomy":"msr-impact-theme","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-impact-theme?post=306176"},{"taxonomy":"msr-promo-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-promo-type?post=306176"},{"taxonomy":"msr-podcast-series","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-podcast-series?post=306176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}