albertone74, another thing you could test for me.....

On my loose ends list....

I've been making the performance governor the default when building
kernels, which basically means that both CPU cores have been fixed to
their fastest speed, regardless of load, 1GHz.

The imx6 Dual Lite is capable of being switched between 400MHz, 800MHz,
and 1GHz core speeds.

Before changing the default to be the ondemand governor which chooses
CPU freq based on load, we could do with a little more testing. (I
haven't seen any negative impact. eg. latency between cpu load
increasing and switching to a faster core speed.)


Code:
--------------------
    
  sudo yum install kernel-tools
  
--------------------


Now edit /etc/sysconfig/cpupower. You basically, want to reverse the
START/STOP options, so that the cpupower service switches to the
ondemand governor when it is started and back to the (kernel default)
performance governor when it is stopped. (So the commented lines are the
before and the un-commented lines, what you want after editing.)

Code:
--------------------
    
  # See 'cpupower help' and cpupower(1) for more info
  # CPUPOWER_START_OPTS="frequency-set -g performance"
  # CPUPOWER_STOP_OPTS="frequency-set -g ondemand"
  CPUPOWER_START_OPTS="frequency-set -g ondemand"
  CPUPOWER_STOP_OPTS="frequency-set -g performance"
  
--------------------




Code:
--------------------
    
  sudo systemctl enable cpupower.service
  sudo systemctl start cpupower.service
  
--------------------


Now verify that you are using the ondemand governor....


Code:
--------------------
    
  $ sudo cpupower frequency-info
  
  analyzing CPU 0:
  driver: imx
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 61.0 us.
  hardware limits: 396 MHz - 996 MHz
  available frequency steps: 996 MHz, 792 MHz, 396 MHz
  available cpufreq governors: interactive, conservative, ondemand, userspace, 
powersave, performance
  current policy: frequency should be within 396 MHz and 996 MHz.
  The governor "ondemand" may decide which speed to use
  within this range.
  current CPU frequency is 396 MHz (asserted by call to hardware).
  cpufreq stats: 996 MHz:46.87%, 792 MHz:0.07%, 396 MHz:53.07%  (181)
  
--------------------


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98544

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to