2014年のsensors

1年の計は元旦にあり。

というわけで、昨年fplug_for_linux改修版で収集した、12月までのlogsensorの結果を見てみる。

6月からの7ヶ月間通しで覧ると、消費電力は平均85.1W、ピーク時170W。最高温度は室温35℃、CPUコアが72℃となった。

yano@GT110b:~$ logsensor.sh ~/sensor_log/*
2014-06-04, 2014-12-31, POWER=37.6/85.1/170.0, ROOM=10.0/23.8/35.0, CPU=18.0/42.0/72.0
yano@GT110b:~$ for f in ~/sensor_log/*;do logsensor.sh $f;done
2014-06-04, 2014-06-30, POWER=37.6/74.8/153.0, ROOM=20.0/24.3/28.0, CPU=27.0/39.7/66.0
2014-07-01, 2014-07-31, POWER=40.6/77.0/170.0, ROOM=24.0/28.7/35.0, CPU=30.0/43.7/72.0
2014-08-01, 2014-08-31, POWER=43.4/88.9/161.0, ROOM=24.0/28.8/32.0, CPU=31.0/47.0/71.0
2014-09-01, 2014-09-30, POWER=41.3/85.7/159.0, ROOM=21.0/27.5/31.0, CPU=28.0/44.7/68.0
2014-10-01, 2014-10-31, POWER=45.2/87.6/164.0, ROOM=17.0/24.5/30.0, CPU=25.0/42.5/67.0
2014-11-01, 2014-11-30, POWER=46.0/91.9/159.0, ROOM=17.0/19.2/25.0, CPU=23.0/40.8/64.0
2014-12-01, 2014-12-31, POWER=38.5/87.9/164.0, ROOM=10.0/13.8/22.0, CPU=18.0/35.4/63.0
月ごとに覧てみるといずれも7月がピーク。8月には下がっているところが冷夏だった昨年の特徴を暗示しているのかもしれないが、季節なりに推移している傾向が伺えるのでいい感じだ。

F-PLUG
F-PLUG

最後に、最新版の~/bin/logsensor.shを確認しておく。

cite="~/bin/logsensor.sh"> yano@GT110b:~$ ll ~/bin/logsensor.sh
-rwxr-xr-x 1 yano family 1155 Nov 20 00:05 /home/yano/bin/logsensor.sh*
yano@GT110b:~$ cat ~/bin/logsensor.sh
#!/bin/bash

awk '
BEGIN {
watt_min=999;watt_max=0;watt_sum=0;watt_cnt=0;
temp_min=999;temp_max=0;temp_sum=0;temp_cnt=0;
core_min=999;core_max=0;core_sum=0;core_cnt=0;
}
{
if ( NF == 10 ){
i = 3; // Watt
if($i != x){
if($i watt_min){watt_min=$i};
if(watt_max $i){watt_max=$i};
watt_sum += $i;
watt_cnt++;
}

i = 4; // Illuminance
i = 5; // Humidity
i = 6; // Temperature
if($i != x){
if($i temp_min){temp_min=$i};
if(temp_max $i){temp_max=$i};
temp_sum += $i;
temp_cnt++;
}

i = 7;
} else
i = NF - 3;
for (; i = NF; i++ ){
if($i core_min){core_min=$i};
if(core_max $i){core_max=$i};
core_sum += $i;
core_cnt++;
}

date=$1;
if(!length(start)){start=date;}
}
END {
if ( watt_cnt 1 ) { watt_cnt=1; }
if ( temp_cnt 1 ) { temp_cnt=1; }
if ( core_cnt 1 ) { core_cnt=1; }
printf %s, %s, POWER=%.1f/%.1f/%.1f, , start, date, watt_min, watt_sum/watt_cnt, watt_max;
printf ROOM=%.1f/%.1f/%.1f, , temp_min, temp_sum/temp_cnt, temp_max;
printf CPU=%.1f/%.1f/%.1f\n, core_min, core_sum/core_cnt, core_max;
}
' $*

7月以降は欠損データで誤集計しないよう、ケアしたくらい。