<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 3, 2016, at 3:40 PM, Gary E. Miller <<a href="mailto:gem@rellim.com" class="">gem@rellim.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Yo Achim!<br class=""><br class="">On Sun, 03 Jul 2016 12:10:44 +0200<br class="">Achim Gratz <<a href="mailto:Stromeko@nexgo.de" class="">Stromeko@nexgo.de</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">Eric S. Raymond writes:<br class=""><blockquote type="cite" class="">Gary E. Miller <<a href="mailto:gem@rellim.com" class="">gem@rellim.com</a>>:  <br class=""><blockquote type="cite" class="">Anyone got a guess what the equivalent RasPi setting to turn off<br class="">power saving would be?  <br class=""></blockquote><br class="">turbo=1 in /boot/config.txt, I think. See also  <br class=""></blockquote><br class="">No.  That used to be "force_turbo=1", but is not needed anymore.<br class=""></blockquote><br class="">As of what kernel?  I notice RasPi's have all sorts of weird kernel<br class="">versions and patchsets.  My Gentoo RasPi is at 4.4.14-v7,<br class="">but wheezy is at 4.1.19-v7.  Worse my Odroid is at 3.10!<br class=""><br class=""></div></div></blockquote><div><br class=""></div><div>I’m running Gentoo with <span style="font-family: Menlo; font-size: 11px;" class="">Linux dev3-rpi 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l ARMv7 Processor rev 4 (v7l) BCM2709 GNU/Linux</span></div><div><br class=""></div><div>A recent pull from <span style="font-family: Menlo; font-size: 11px;" class=""><a href="https://github.com/raspberrypi/userland.git" class="">https://github.com/raspberrypi/userland.git</a></span></div><div><br class=""></div><div>I believe for quite a while (1-2 years)“turbo=1” is only needed if yo want the clock speed to be above the “standard” max speed (varies by Pi version).  For the Pi 3, the max speed is 1.2Ghz.  For speeds above or below the standards, you must pass them in the config.txt.  If you only want to work with the standard speeds, nothing is needed in config.txt.  </div><div><br class=""></div><div>For working with the speeds, it uses normal linux conventions, by manipulating things here:</div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/sys/devices/system/cpu/cpufreq/policy0</span></div></div><div><br class=""></div><div>These have values that are self described:</div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cpuinfo_cur_freq</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cpuinfo_max_freq</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cpuinfo_min_freq</span></div></div><div><br class=""></div><div>You can see what “governors” are supported in the current kernel by looking at:</div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">scaling_available_governors</span></div></div><div><br class=""></div><div>A full list of what frequencies are available (only a min & max with the Pi’s):</div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">scaling_available_frequencies</span></div></div><div><br class=""></div><div>For the different governors, I’ve only played with “<span style="font-family: Menlo; font-size: 11px;" class="">ondemand powersave performance</span>”.  You set the active governor by echoing it to “<span style="font-family: Menlo; font-size: 11px;" class="">scaling_governor</span>”.  “<span style="font-family: Menlo; font-size: 11px;" class="">powersave</span>” forces the clock to the “<span style="font-family: Menlo; font-size: 11px;" class="">cpuinfo_min_freq</span>”.  “<span style="font-family: Menlo; font-size: 11px;" class="">performance</span>” forces the clock to “<span style="font-family: Menlo; font-size: 11px;" class="">cpuinfo_max_freq</span>”.  “<font face="Menlo" class=""><span style="font-size: 11px;" class="">ondemand</span></font>” allows the clock to vary between any frequencies in “<span style="font-family: Menlo; font-size: 11px;" class="">scaling_available_frequencies</span>” as needed.</div><div><br class=""></div><div>Please be aware (as with most modern CPU’s) if the temperature exceeds the design limit (85C, I believe), the CPU will be throttled.  When using “<span style="font-family: Menlo; font-size: 11px;" class="">performance</span>” or “<font face="Menlo" class=""><span style="font-size: 11px;" class="">ondemand</span></font>” and building under Gentoo, you can easily reach 85C.  Using the GPU will also increase the temperature.  </div><div><br class=""></div><div>Temperatures can be measured with '<span style="font-family: Menlo; font-size: 11px;" class="">/opt/vc/bin/vcgencmd measure_temp</span>’.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class=""> You<br class="">simply define the maximum (and perhaps minimum) frequencies in<br class="">/boot/config.txt and chose the proper CPUfreq governor.<br class=""></blockquote><br class="">Do I need to do this, or is 'performance' enough?  What would you put in <br class="">config.txt to set the performance governor?<br class=""><br class=""><blockquote type="cite" class=""> Default is<br class="">ondemand, you will either want powersave (to keep at the low<br class="">frequency) or performance (force maximum frequency).  So far I<br class="">haven't seen a difference between those when it comes to NTP<br class="">performance, but I'm running two isolated DCF77 clocks only at the<br class="">moment.<br class=""></blockquote></div></div></blockquote></div><br class=""></body></html>