{"id":875,"date":"2010-05-10T11:07:17","date_gmt":"2010-05-10T10:07:17","guid":{"rendered":"https:\/\/blogs.mentor.com\/colinwalls\/?p=875"},"modified":"2026-03-26T16:32:23","modified_gmt":"2026-03-26T20:32:23","slug":"os-influence-on-power-consumption","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/embedded-software\/2010\/05\/10\/os-influence-on-power-consumption\/","title":{"rendered":"OS influence on power consumption"},"content":{"rendered":"<p>Power consumption is an issue. With portable devices this affects battery life. [I am irritated by the short intervals between necessary charging sessions with my phone. On the other hand, my netbook can run for over 7 hours on a charge, which is great. Likewise, my newly-acquired iPad seems to perform well.] With mains powered equipment, power consumption is also a concern for environmental reasons.<\/p>\n<p>The matter of power has always been seen as a &#8220;hardware issue&#8221;, but, of late, there has been an increasing interest in the role of software &#8230;<!--more--><\/p>\n<p>It is clear that software can take an active role in managing power consumption, if the right capabilities are provided. For example, parts of a system may be switched on and off, as required. The clock speed of a processor may be adjusted according to the amount of work it needs to do at a particular moment. The clock frequency can have a very significant effect upon power consumption.<\/p>\n<p>Another, more simplistic argument is based upon selection of operating system. A traditional RTOS [like <a href=\"http:\/\/www.mentor.com\/products\/embedded_software\/nucleus_rtos\" target=\"_blank\" rel=\"noopener noreferrer\">Nucleus<\/a>] is likely to have a significantly smaller memory footprint than Linux, so less memory needs to be fitted. As memory consumes power, less memory means less power consumption. This argument is sound, but may be countered by the assertion that memory power consumption is really not too bad.<\/p>\n<p>Last week, I was working with my colleague <a href=\"mailto:stephen_olsen@mentor.com\">Stephen Olsen<\/a>, who has been doing some research into these matters. He showed me that there is an even simpler perspective: the amount of power the CPU consumes, when doing a particular job, will vary depending upon the OS. His experiment was conducted using a media player device. It was decoding an MP3 of a 71db 220Hz sine wave. He ran the code twice: the first time executing the application under Nucleus, the second using Linux. The power consumed was measured and plotted over time.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-873\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/51\/2010\/05\/os-power-520x422.jpg\" alt=\"OS and power\" width=\"520\" height=\"422\" \/><\/p>\n<p>On the plot power consumed, when running Nucleus, is shown in pink; Linux is dark blue.\u00a0The results are interesting: when running Linux the CPU was consuming nearly 25% more power than when it was doing the exact same job under Nucleus.<\/p>\n<p>There is also an increase in power consumption of another 20% [between about 3000 and 4000 on the plot] when running Linux. What caused this? We do not know. Obviously Linux was doing something in this time frame, which affected it CPU load.<\/p>\n<p>This experiment set out to see whether a conventional RTOS really did benefit a design in terms of power consumption. It succeeded in this goal. It also illustrated quite graphically the non-real-time [i.e. unpredictable] behavior of Linux, which may be a problem for certain applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power consumption is an issue. With portable devices this affects battery life. [I am irritated by the short intervals between&#8230;<\/p>\n","protected":false},"author":71677,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[1],"tags":[300,307,308,304],"industry":[],"product":[],"coauthors":[],"class_list":["post-875","post","type-post","status-publish","format-standard","hentry","category-news","tag-embedded-software","tag-linux","tag-low-power","tag-nucleus"],"_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/users\/71677"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/comments?post=875"}],"version-history":[{"count":1,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/875\/revisions"}],"predecessor-version":[{"id":9853,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/875\/revisions\/9853"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/media?parent=875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/categories?post=875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/tags?post=875"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/industry?post=875"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/product?post=875"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/coauthors?post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}