embeded/odroid

odroid cpufrequtils를 이용한 클럭 조절

구차니 2016. 9. 11. 07:52

특이하게도..(?)

cpu 갯수도 줄어든다??!


performance 1700 MHz / 4 core

powersave 200 MHz / 2 core

ondemand 200-1700 MHz / 2 core (바로바로 떨어지는 듯?)

conservative 200-1700MHz / 2 core (좀 클럭이 높게 유지) 



$ sudo apt-cache search cpufreq

collectd-core - statistics collection and monitoring daemon (core system)

cpufreqd - fully configurable daemon for dynamic frequency and voltage scaling

gkrellm-cpufreq - CPU frequency plugin for GKrellM

gnome-applets - Various applets for the GNOME panel - binary files

indicator-cpufreq - CPU frequency scaling indicator

libcpufreq-dev - development files to deal with the cpufreq Linux kernel feature

libcpufreq0 - shared library to deal with the cpufreq Linux kernel feature

xfce4-cpufreq-plugin - cpufreq information plugin for the Xfce4 panel

xfce4-goodies - enhancements for the Xfce4 Desktop Environment

cpufrequtils - cpufreq 리눅스 커널 기능을 처리하는 유틸리티

awn-applet-cpufreq - Monitors and controls the CPU frequency for Awn

odroid@odroid_2:/etc/default$ sudo apt-get install cpufrequtils

패키지 목록을 읽는 중입니다... 완료

의존성 트리를 만드는 중입니다       

상태 정보를 읽는 중입니다... 완료

다음 패키지를 더 설치할 것입니다:

  libcpufreq0

다음 *새로운* 패키지들을 설치:

  cpufrequtils libcpufreq0

0개 업그레이드, 2개 새로 설치, 0개 제거, 1개 업그레이드 안 함.

47.7 k바이트 아카이브를 받아야 합니다.

이 작업 후 280 k바이트의 디스크 공간을 더 사용하게 됩니다.

Do you want to continue? [Y/n] 

받기:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe libcpufreq0 armhf 008-1 [11.2 kB]

받기:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe cpufrequtils armhf 008-1 [36.5 kB]

1초에 47.7 kB 받음 (38.0 kB/s)          

패키지를 미리 설정하는 중입니다...

Selecting previously unselected package libcpufreq0.

(데이터베이스 읽는중 ... 현재 198751개의 파일과 디렉터리가 설치되어 있습니다.)

Preparing to unpack .../libcpufreq0_008-1_armhf.deb ...

Unpacking libcpufreq0 (008-1) ...

Selecting previously unselected package cpufrequtils.

Preparing to unpack .../cpufrequtils_008-1_armhf.deb ...

Unpacking cpufrequtils (008-1) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1) ...

libcpufreq0 (008-1) 설정하는 중입니다 ...

cpufrequtils (008-1) 설정하는 중입니다 ...

 * Loading cpufreq kernel modules...                                     [ OK ] 

 * CPUFreq Utilities: Setting ondemand CPUFreq governor...                       * CPU0...                                                                       * CPU1...                                                                       * CPU2...                                                                       * CPU3...                                                               [ OK ] 

Processing triggers for libc-bin (2.19-0ubuntu6.9) ...


$ cpufreq-info 

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: exynos_cpufreq

  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: 100.0 us.

  hardware limits: 200 MHz - 2.00 GHz

  available cpufreq governors: ondemand, conservative, userspace, powersave, performance

  current policy: frequency should be within 200 MHz and 1.70 GHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 200 MHz.

  cpufreq stats: 2.00 GHz:0.00%, 1.92 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:99.06%, 1.60 GHz:0.00%, 1.50 GHz:0.01%, 1.40 GHz:0.02%, 1.30 GHz:0.00%, 1.20 GHz:0.00%, 1.10 GHz:0.02%, 1000 MHz:0.02%, 900 MHz:0.00%, 800 MHz:0.01%, 700 MHz:0.00%, 600 MHz:0.01%, 500 MHz:0.02%, 400 MHz:0.01%, 300 MHz:0.02%, 200 MHz:0.82%  (30)

analyzing CPU 1:

  driver: exynos_cpufreq

  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: 100.0 us.

  hardware limits: 200 MHz - 2.00 GHz

  available cpufreq governors: ondemand, conservative, userspace, powersave, performance

  current policy: frequency should be within 200 MHz and 1.70 GHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 200 MHz.

  cpufreq stats: 2.00 GHz:0.00%, 1.92 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:99.06%, 1.60 GHz:0.00%, 1.50 GHz:0.01%, 1.40 GHz:0.02%, 1.30 GHz:0.00%, 1.20 GHz:0.00%, 1.10 GHz:0.02%, 1000 MHz:0.02%, 900 MHz:0.00%, 800 MHz:0.01%, 700 MHz:0.00%, 600 MHz:0.01%, 500 MHz:0.02%, 400 MHz:0.01%, 300 MHz:0.02%, 200 MHz:0.82%  (30)

odroid@odroid_2:/etc/default$ cpufreq-set

At least one parameter out of -f/--freq, -d/--min, -u/--max, and

-g/--governor must be passed

odroid@odroid_2:/etc/default$ cpufreq-set -f 900000000

Error setting new values. Common errors:

- Do you have proper administration rights? (super-user?)

- Is the governor you requested available and modprobed?

- Trying to set an invalid policy?

- Trying to set a specific frequency, but userspace governor is not available,

   for example because of hardware which cannot be set to a specific frequency

   or because the userspace governor isn't loaded?


$ sudo cpufreq-set -g ondemand 


min / max 값 조절없이 그냥 쓰기에는 performance가 가장 무난하고..

conservative는 조금 쓰면서 테스트 해봐야겠다.