2012年10月25日木曜日

AmazonEC2でAndroidのビルド環境構築4(ビルド実行)

AmazonEC2を利用してLinuxのビルド、Androidのビルドを行います。

実験としてインスタンスを変更してどの位ビルド時間がちがうか確認します。
Linux、Androidともに初回のビルドの環境で行います。
簡単なスクリプトを記述して、準備します。

[Linuxビルド用スクリプト]

#!/bin/bash

echo "Small Instance" >> result.txt
echo "Linux Build" >> result.txt
echo "start" >> result.txt
date >> result.txt

cd $HOME/rowboat-android/kernel
make ARCH=arm CROSS_COMPILE=arm-eabi- distclean
make ARCH=arm CROSS_COMPILE=arm-eabi- omap3_beagle_android_defconfig
make ARCH=arm CROSS_COMPILE=arm-eabi- uImage

cd ..
echo "end" >> result.txt
date >> result.txt
echo "----------------------------------" >> result.txt
echo "----------------------------------" >> result.txt

[Androidビルド用スクリプト]

#!/bin/bash

echo "Small Instance" >> result.txt
echo "Android Build" >> result.txt
echo "start" >> result.txt
date >> result.txt

cd $HOME/rowboat-android/
make TARGET_PRODUCT=beagleboard OMAPES=5.x

echo "end" >> result.txt
date >> result.txt
echo "----------------------------------" >> result.txt
echo "----------------------------------" >> result.txt

ここまで準備ができたらインスタンスをstopして、対象インスタンスにチェック。
-> Create image -> AMIsに作成される
AMIsで対象にチェックし -> Launch
後はインスタンスタイプなどを決めていつもと同じように起動します。

[Linuxビルド所用時間]

Micro Instance
Linux Build
start
Wed Oct 24 15:38:52 UTC 2012
end
Wed Oct 24 16:40:08 UTC 2012
----------------------------------
----------------------------------
1時間1分16秒


Small Instance
Linux Build
start
Wed Oct 24 16:12:32 UTC 2012
end
Wed Oct 24 16:32:11 UTC 2012
----------------------------------
----------------------------------
19分28秒


HIGH CPU Medium Instance
Linux Build
start
Wed Oct 24 16:26:09 UTC 2012
end
Wed Oct 24 16:36:27 UTC 2012
----------------------------------
----------------------------------
10分18秒


Medium Instance
Linux Build
start
Wed Oct 24 16:32:36 UTC 2012
end
Wed Oct 24 16:42:56 UTC 2012
----------------------------------
----------------------------------
10分20秒

Large Instance
Linux Build
start
Thu Oct 25 06:42:29 UTC 2012
end
Thu Oct 25 06:53:35 UTC 2012
----------------------------------
----------------------------------
11分6秒

Extra Large Instance
Linux Build
start
Thu Oct 25 06:46:45 UTC 2012
end
Thu Oct 25 06:57:49 UTC 2012
----------------------------------
----------------------------------
 11分4秒

High CPU Extra Large Instance
Linux Build
start
Thu Oct 25 06:52:50 UTC 2012
end
Thu Oct 25 07:04:15 UTC 2012
----------------------------------
----------------------------------
11分25秒

########2012/11/11追加#########
各インスタンスでビルド時にジョブ数(コア数)をを指定した場合
make ARCH=arm CROSS_COMPILE=arm-eabi- uImage -jx


Large Instance Core2
Linux Build
start
Sun Nov 11 14:58:44 UTC 2012
end
Sun Nov 11 15:04:47 UTC 2012
----------------------------------
----------------------------------

6分3秒


Extra Large Instance 4Core
Linux Build
start
Tue Nov 13 19:29:40 UTC 2012
end
Tue Nov 13 19:34:18 UTC 2012
----------------------------------
----------------------------------
4分38秒


High Memory Extra Large Instance 2Core
Linux Build
start
Tue Nov 13 19:33:05 UTC 2012
end
Tue Nov 13 19:38:08 UTC 2012
----------------------------------
----------------------------------
5分3秒


High Memory Double Extra Large Instance 4Core
Linux Build
start
Tue Nov 13 19:56:56 UTC 2012
end
Tue Nov 13 19:59:27 UTC 2012
----------------------------------
----------------------------------
2分31秒


High Memory Quad Extra Large Instance 8Core
Linux Build
start
Tue Nov 13 20:06:26 UTC 2012
end
Tue Nov 13 20:09:12 UTC 2012
----------------------------------
----------------------------------
2分46秒


High CPU Medium Instance 2Core
Linux Build
start
Wed Nov 14 13:02:43 UTC 2012
end
Wed Nov 14 13:09:25 UTC 2012
----------------------------------
----------------------------------
6分42秒


High CPU Extra Large Instance 8Core
Linux Build
start
Wed Nov 14 13:09:02 UTC 2012
end
Wed Nov 14 13:12:03 UTC 2012
----------------------------------
----------------------------------
3分1秒


[Androidビルド所用時間]
Micro Instance
Android Build
ビルドできず
----------------------------------
----------------------------------

Small Instance
Android Build
start
Wed Oct 24 20:32:33 UTC 2012
end
Thu Oct 25 00:45:13 UTC 2012
----------------------------------
----------------------------------
4時間12分40秒

High CPU Medium Instance
Android Build
start
Wed Oct 24 20:34:05 UTC 2012
end
Wed Oct 24 22:25:59 UTC 2012
----------------------------------
----------------------------------
1時間51分54秒

Medium Instance
Android Build
start
Wed Oct 24 20:34:14 UTC 2012
end
Wed Oct 24 22:38:44 UTC 2012
----------------------------------
----------------------------------
2時間4分30秒

Large Instance
Android Build
start
Thu Oct 25 06:54:53 UTC 2012
end
Thu Oct 25 08:46:59 UTC 2012
----------------------------------
----------------------------------
1時間52分6秒

Extra Large Instance
Android Build
start
Thu Oct 25 07:00:15 UTC 2012
end
Thu Oct 25 08:47:31 UTC 2012
----------------------------------
----------------------------------
 1時間47分16秒

High CPU Extra Large Instance
Android Build
start
Thu Oct 25 07:07:29 UTC 2012
end
Thu Oct 25 09:01:06 UTC 2012
----------------------------------
----------------------------------
1時間53分37秒

0 件のコメント:

コメントを投稿