expect 같은건 웬지 복잡해 보여서

단순하게 커맨드 라인에서 처리가능한 녀석으로 sshpass 테스트


sshpass -p "password" scp -r user@example.com:/some/remote/path /some/local/path 


[링크 : http://stackoverflow.com/questions/50096/how-to-pass-password-to-scp]

[링크 : https://linux.die.net/man/1/sshpass]



물론 우분투에서는 sshpass 패키지를 별도로 설치해 주어야 한다.

Posted by 구차니
개소리 왈왈/영화2016. 9. 18. 20:36

자꾸만 alice madness returns가 떠올라서 먼가 미묘한 기분


[링크 : http://movie.daum.net/moviedb/main?movieId=84992]



그냥 딱 중간인 .. 3/5 점?

그래픽은 나쁘지 않지만 요즘 다 그정도 하고

스토리도 나쁘지 않지만 딱히 좋다고도 못하겠고

연기도 음악도 다 나쁘지 않지만 좋다고는 못하겠고

그저 그런 영화.

Posted by 구차니

시놀로지 사용중 

시놀로지에 접속해서 svn과 svn+ssh의 경로 차이점 테스트


svn:// 의 경우에는 저장소 경로만 입력

svn+ssh:// 의 경우에는 저장소가 위치한 절대경로 부터 저장소 경로 까지 입력


$ svn list svn://localhost/project

$ svn list svn+ssh://localhost/volume1/svn/project 


외부에서 접속시 포트가 22번이 아니면 아래와 같이 에러가 발생한다.

$ svn list svn+ssh://minimonk@svn.minimonk.net:2222/volume1/svn/project

svn: E210002: Unable to connect to a repository at URL 'svn+ssh://minimonk@svn.minimonk.net:2222/volume1/svn/project'

svn: E210002: SSH 접속 문제를 더 잘 디버깅하기 위해서는, 서브버전 환경설정 파일의 [tunnels] 섹션에서 ssh의 -q 옵션을 제거 하세요.

svn: E210002: 네트워크 접속이 예기치 않게 종료되었습니다


개인별로 설정시에는 아래 경로의 파일에서 포트를 지정해 주면되는데.. 

매번 다른 서버 접속시에는 수동으로 해주어야 하나?

$ vi ~/.subversion/config

[tunnels]

ssh = ssh -p 2222 

아무튼 저렇게 설정하고 나면 다음과 같이 평범(?)하게 접속이 가능하다.

$ svn list svn+ssh://minimonk@svn.minimonk.net/volume1/svn/project 


[링크 : http://unix.stackexchange.com/.../how-to-configure-svn-ssh-with-ssh-on-non-standard-port]

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn add를 취소하기  (0) 2016.11.04
synology svn+ssh 퍼미션 문제  (0) 2016.10.09
tortoiseSVN에서 svn+ssh 사용하기  (0) 2016.07.31
svn+ssh 실패 -_-  (0) 2016.07.29
svn list 에러 generic failure  (0) 2016.06.23
Posted by 구차니

distcc --show-hosts 실패했는데 zeroconf를 켜니 되네..



$ sudo vi /etc/default/distcc

STARTDISTCC="true"

ALLOWEDNETS="127.0.0.1 192.168.1.0/24"

LISTENER=""

ZEROCONF="true"


$ distcc --show-hosts


$ make mrproper

 

$ make -j16 ARCH=arm CC="distcc /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc" CROSS_COMPILE="/opt/arm-2009q1/bin/arm-none-linux-gnueabi-" ti_dm365_defconfig

 

$ distcc-pump make -j16 ARCH=arm CC="distcc /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc" CROSS_COMPILE="/opt/arm-2009q1/bin/arm-none-linux-gnueabi-" uImage 


[링크 : http://samarthparikh.blogspot.com/2012/10/install-distcc-and-make-linux-kernel.html]


$ make -j8 CC=distcc

[링크 : http://linuxdeveloper.blogspot.com/2012/03/distributed-kernel-compilation-in.html]




$ sudo apt-cache search distcc-pump

distcc-pump - pump mode for distcc a distributed compiler client and server



+
For example:
              eval `distcc-pump --startup`
              make -j80
              distcc-pump --shutdown


EXAMPLE
       distcc-pump make -j20



QUICKSTART FOR DISTCC-PUMP MODE

       Proceed  as  above, but in Step 3, specify that the remote hosts are to

       carry the burden of preprocessing and that  the  files  sent  over  the

       network should be compressed:


              $   export   DISTCC_HOSTS='--randomize   localhost   red,cpp,lzo

              green,cpp,lzo blue,cpp,lzo'


       The --randomize option enforces a uniform  usage  of  compile  servers.

       While you will get some benefit from distcc's pump mode with only a few

       servers, you get increasing benefit with more server CPUs  (up  to  the

       hundreds!).   Wrap your build inside the pump command, here assuming 10

       servers:


              $ pump make -j20 CC=distcc

[링크 : http://manpages.ubuntu.com/manpages/precise/man1/distcc.1.html]

'프로그램 사용 > distcc & ccache' 카테고리의 다른 글

distcc kernel compile 재시도..  (0) 2016.09.28
distcc-pump error  (0) 2016.09.25
distcc 로 valgrind-3.6.1 컴파일 실패?  (0) 2014.12.12
distcc 작동모드  (0) 2014.12.09
ccache & distcc  (0) 2014.12.08
Posted by 구차니
embeded/raspberry pi2016. 9. 12. 15:36

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

ondemand


cpufrequtils를 삭제후 리부팅 하니 기본적으로 ondemand 인 것 같고


$ ll /etc/init.d/cpufrequtils

-rwxr-xr-x 1 root root 2489 May  6  2012 cpufrequtils

위의 경로에서 내용을 바꾸어 주면 기본 거버너가 변경/설정이 가능 한 듯.


$ cat /etc/init.d/cpufrequtils

#!/bin/sh

### BEGIN INIT INFO

# Provides:       cpufrequtils

# Required-Start: $remote_fs loadcpufreq

# Required-Stop:

# Default-Start:  2 3 4 5

# Default-Stop:

# Short-Description: set CPUFreq kernel parameters

# Description: utilities to deal with CPUFreq Linux

#       kernel support

### END INIT INFO

#


DESC="CPUFreq Utilities"


PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

CPUFREQ_SET=/usr/bin/cpufreq-set

CPUFREQ_INFO=/usr/bin/cpufreq-info

CPUFREQ_OPTIONS=""


# use lsb-base

. /lib/lsb/init-functions


# Which governor to use. Must be one of the governors listed in:

#   cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

#

# and which limits to set. Both MIN_SPEED and MAX_SPEED must be values

# listed in:

#   cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

# a value of 0 for any of the two variables will disabling the use of

# that limit variable.

#

# WARNING: the correct kernel module must already be loaded or compiled in.

#

# Set ENABLE to "true" to let the script run at boot time.

#

# eg:   ENABLE="true"

#       GOVERNOR="ondemand"

#       MAX_SPEED=1000

#       MIN_SPEED=500


ENABLE="true"

GOVERNOR="ondemand"

MAX_SPEED="0"

MIN_SPEED="0"


check_governor_avail() {

        info="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"

        if [ -f $info ] && grep -q "\<$GOVERNOR\>" $info ; then

                return 0;

        fi

        return 1;

}


[ -x $CPUFREQ_SET ] || exit 0


if [ -f /etc/default/cpufrequtils ] ; then

        . /etc/default/cpufrequtils

fi


# if not enabled then exit gracefully

[ "$ENABLE" = "true" ] || exit 0


if [ -n "$MAX_SPEED" ] && [ $MAX_SPEED != "0" ] ; then

        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --max $MAX_SPEED"

fi


if [ -n "$MIN_SPEED" ] && [ $MIN_SPEED != "0" ] ; then

        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --min $MIN_SPEED"

fi


if [ -n "$GOVERNOR" ] ; then

        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --governor $GOVERNOR"

fi


CPUS=$(cat /proc/stat|sed -ne 's/^cpu\([[:digit:]]\+\).*/\1/p')

RETVAL=0

case "$1" in

        start|force-reload|restart|reload)

                log_action_begin_msg "$DESC: Setting $GOVERNOR CPUFreq governor"

                if check_governor_avail ; then

                        for cpu in $CPUS ; do

                                log_action_cont_msg "CPU${cpu}"

                                $CPUFREQ_SET --cpu $cpu $CPUFREQ_OPTIONS 2>&1 > /dev/null || \

                                        RETVAL=$?

                        done

                        log_action_end_msg $RETVAL ""

                else

                        log_action_cont_msg "disabled, governor not available"

                        log_action_end_msg $RETVAL

                fi

                ;;

        stop)

                ;;

        *)

                echo "Usage: $0 {start|stop|restart|reload|force-reload}"

                exit 1

esac


exit 0 


Posted by 구차니
embeded/raspberry pi2016. 9. 12. 15:33

머.. 별 차이도 없는 기분? 라즈베리 자체가 600MHz ~ 900Mhz 이긴한데

딱 두단계 뿐이라 클럭 조절에 대한 여유가 없는 걸지도 모르겠다.


$ 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: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

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

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 600 MHz:52.90%, 900 MHz:47.10%  (9)


$ sudo cpufreq-set -g conservative

$ 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: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

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

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "conservative" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 600 MHz:63.64%, 900 MHz:36.36%  (15) 


$ sudo cpufreq-set -g powersave

$ 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: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

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

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "powersave" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 600 MHz:74.84%, 900 MHz:25.16%  (15)


$ sudo cpufreq-set -g performance

$ 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: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

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

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "performance" may decide which speed to use

                  within this range.

  current CPU frequency is 900 MHz.

  cpufreq stats: 600 MHz:79.71%, 900 MHz:20.29%  (16)


Posted by 구차니
embeded/odroid2016. 9. 12. 15:07

개인적으로는

performance가 가장 좋고(당연한가?)

conservative가 부담이 적고 (클럭 다운되지만 빠르게 오르는지 버벅대는 느낌이 적음)

ondemand는 느린 느낌이고

나머지 가버너는 목록에 안떠서.. 나중에 실험을 해봐야 할 듯.



1. Ondemand


이건 다들 알거라 생각합니다. 이가버저의 특징은 수요에 따라 클럭을 조절한다는거죠.수요가 높으면 클럭을 올리고 수요가 낮으면

클럭을 낮추고 이렇기 때문에 베터리 효율도 높고 성능도 무난하게 뽑아줘서 안드로이드 대부분의 기기의 기본 가버너로 설정되어있습니다.(갤넥같은경우 인터렉티브가 기본이더군요;;) 이 가버너는 xda에서 유명한 커널중 하나인 트리니티 커널에서도의 기본가버너로 설정되어있다고 하네요.


8. Pegasusq


ondemand기반으로 만들어진 가버너입니다. 그런데 이 가버너는 특이하게 클럭조절을 

중간클럭까지 골고루 섞어쓰기떄문에

저랑 한분이 한때 ondemand랑 interactive 이두개를놓고 서로 이기반이라 토론을 한적도 있습니다.

하지만 중간클럭을 쓰는건 ondemand에다가 hotplug를 섞었기 때문이라고 합니다. 

이 가버너가 생성된 배경은 코어가 4개나되는 쿼드코어 엑시노스를 풀가동 동기식으로했다간 폰베터리를 사살하는거밖에 안된다고 생각이든 삼성이 비동기식의 성질을 띄는hotplug를 섞어서 반비동기식형태로 제작하였습니다. 그래서 퍼포먼스와 배터리를 둘다잡은 가버너라 할수있지요. 그래서 요즘 대부분 커스텀 커널에는 듀얼코어용 pegasusq가버너를 추가하는 추세입니다.

하지만 엄연히 비동기식하고 틀립니다. 

참고로 이런성질때문에 싱글코어에서는 이가버너가

ondemand랑 똑같은 가버너가 되버리니 싱코에선 굳이 이 가버너를 채택할 필요는 없어보입니다.


11. Hotplug


이 가버너는 ondemand가버너와 매우 흡사한 가버너라고 합니다. 이 가버너 역시 또한 클럭수 요구에 따락 클럭을 올리고 내리고 한답니다. 하지만 다른가버너와 확연히 차이아는 차이점이있다면 바로 cpu부하가 매우적을때 (예로들어 대기모드일때) cpu하나를 꺼버린다고 합니다.

그래서 베터리를 아깐다고 하네요.


17. Conservative

이 가버너는 최대한 가능하면 저클럭에 머물려하고 하는 특징이 있다고 합니다. 다르게 표현을 하면 cpu가 클럭을 올리려면 계속 cpu에 부하를 줘야한다네요. 그리고 최소클럭을 사용자가 지정해줄경우 퍼포먼스가 떨어질 수 있다네요. 반대로 최소클럭을 내리면 베터리에는 좋다고 합니다.  


[링크 : http://sonjuhy.tistory.com/entry/가버너에-따른설명]


코드명은 'Pegasus'

여담으로 삼성전자는 쿼드코어 구성이 많다고 생각 하였는지, Ondemand 와 Hot-plug 기반의 가버너를 섞어서 퀄컴의 Qualcomm Krait 시리즈같이 비동기식 비슷하게 작동할 수 있게 하는 Pegasusq 라는 신종 가버너를 만들어 지원했다

[링크 : https://namu.wiki/w/삼성%20엑시노스?from=엑시노스#s-2.1.2.3]



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

  CPUs which need to have their frequency coordinated by software: 0

  maximum transition latency: 11.0 us.

  hardware limits: 200 MHz - 2.00 GHz

  available frequency steps: 2.00 GHz, 1.92 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 1000 MHz, 900 MHz, 80z

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

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

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 200 MHz (asserted by call to hardware).

  cpufreq stats: 2.00 GHz:0.00%, 1.92 GHz:0.00%, 1.80 GHz:0.00%, 1.70 GHz:0.00%, 1.60 GHz:99.54%, 1.50 GHz:0.00%, 1.40 GHz:0.00%, 1.30 GHz:0.00%, 1.20) 


[링크 : http://odroid.us/mediawiki/index.php?title=Use_cpufrequtils_to_Adjust_Processor_Settings]

'embeded > odroid' 카테고리의 다른 글

odoroid 지름... 예정?  (0) 2016.10.03
odroid u3 전력소모량 체크  (0) 2016.10.01
odroid u3 kernel build  (0) 2016.09.11
odroid cpufrequtils를 이용한 클럭 조절  (0) 2016.09.11
odroid mac address의 신비  (0) 2016.09.10
Posted by 구차니
개소리 왈왈/블로그2016. 9. 12. 10:02

우비 사용중인데 이렇게 하면 되려나?



[링크 : http://notice.tistory.com/2341]



댓글들이라던가 보면 RFC 표준에 어긋나는 행위라는데


티스토리 관리 편의를 위해 이렇게 한다고는 하지만

다르게 보면 조만간 dns 아이피 바꿀꺼고

앞으로도 DNS 서버 아이피가 바뀔수도 있으니 날 따라오셈 이라는 느낌


갈수록 서비스가 불안정하고 신뢰할수 없다는 느낌이 드는데

서버 축소를 하면서 아이피 대역 관리를 위해(즉, 서버 빼고 축소하기도 용이하다는 의미?)

미리 기름 칠해 두는 기분..

Posted by 구차니
embeded/odroid2016. 9. 11. 17:23
한번 빌드 해봐야지
하는김에 distcc + wins resolve 해서 시도

[링크 : https://github.com/hardkernel/linux]

'embeded > odroid' 카테고리의 다른 글

odroid u3 전력소모량 체크  (0) 2016.10.01
odroid 가버너 관련  (0) 2016.09.12
odroid cpufrequtils를 이용한 클럭 조절  (0) 2016.09.11
odroid mac address의 신비  (0) 2016.09.10
odroid u3 governor  (0) 2016.09.09
Posted by 구차니
embeded/odroid2016. 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는 조금 쓰면서 테스트 해봐야겠다.


'embeded > odroid' 카테고리의 다른 글

odroid 가버너 관련  (0) 2016.09.12
odroid u3 kernel build  (0) 2016.09.11
odroid mac address의 신비  (0) 2016.09.10
odroid u3 governor  (0) 2016.09.09
odroid exynos driver 검색중  (0) 2016.09.09
Posted by 구차니