[[Linux]]

----
Contents
#contents
----

#br
* Linux on PS3 [#l5964549]

 ここでは PLAYSTATION3 (以下 PS3) 上で動かした Fedora10 についてのメモなどを掲載します。~
 Fedora10 などのインストールについては、他紹介サイトを参照。

- PS3 Linux Information Site
#ref(http://cell.fixstars.com/ps3linux/);
- CellFanWiki
#ref(http://wiki.cellfan.info/index.php/PS3_Linux);

#br
** 環境 [#s62b8573]

- uname
 Linux zps3 2.6.27.5-117.fc10.ppc64 #1 SMP Tue Nov 18 11:46:31 EST 2008 ppc64 ppc64 ppc64 GNU/Linux

- gcc ほか
 Gnu C                  gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
 Gnu make               3.81
 util-linux             ng 2.14.1)
 mount                  ng 2.14.1 (with libblkid and selinux support)
 modutils               3.5
 e2fsprogs              1.41.3
 PPP                    2.4.4
 Linux C Library        > libc.2.9
 Dynamic linker (ldd)   2.9
 Procps                 3.2.7
 Net-tools              1.60
 iproute2              iproute2-ss080725
 Kbd                    1.12
 Sh-utils               6.12
 Modules Loaded         tun ipt_MASQUERADE iptable_nat nf_nat bridge stp sunrpc nf_conntrack_ipv6 ip6t_REJECT ip6table_filter
  ip6_tables ipv6 spufs dm_multipath snd_ps3 snd_seq_dummy btusb bluetooth snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device
  snd_pcm_oss snd_mixer_oss snd_pcm ps3rom snd_page_alloc joydev snd_timer ps3_gelic snd soundcore ps3flash ps3disk ps3stor_lib

- free
 free reports:
              total       used       free     shared    buffers     cached
 Mem:        215128     204812      10316          0      42108      89620
 -/+ buffers/cache:      73084     142044
 Swap:      4192956       2496    4190460

- /proc/cpuinfo
 processor	: 0
 cpu		: Cell Broadband Engine, altivec supported
 clock		: 3192.000000MHz
 revision	: 16.0 (pvr 0070 1000)
 
 processor	: 1
 cpu		: Cell Broadband Engine, altivec supported
 clock		: 3192.000000MHz
 revision	: 16.0 (pvr 0070 1000)
 
 timebase	: 79800000
 platform	: PS3
 model		: SonyPS3


#br
** PS3 で LTP [#k43dd041]

 LTP (Linux Test Project) を使って、テストをしてみる。

 今回は ltp-full-20090930 を使用。 (持ってきた時点ではこれが latest だった)

- Linux Test Project
#ref(http://ltp.sourceforge.net/);

#br
*** LTP を make して実行 [#l1dcaee5]

- パッケージを展開
 # cd /work
 # tar xzf ltp-full-20090930.tgz
 # cd ltp-full-20090930

- make
 # make
 # make install
-- 特にあれこれ触らず、そのまま make; make install した。

- 実行
 # ./runltp -p -q -f syscalls -l LTP_syscalls_`uname -r`.log -g LTP_syscalls_`uname -r`.log
 # ./runltp -p -q -f fs -l LTP_fs_`uname -r`.log -g LTP_fs_`uname -r`.log
 # ./runltp -p -q -f ipc -l LTP_ipc_`uname -r`.log -g LTP_ipc_`uname -r`.log
 # ./runltp -p -q -f mm -l LTP_mm_`uname -r`.log -g LTP_mm_`uname -r`.log
 # ./runltp -p -q -f sched -l LTP_sched_`uname -r`.log -g LTP_sched_`uname -r`.log
 # ./runltp -p -q -f timers -l LTP_timers_`uname -r`.log -g LTP_timers_`uname -r`.log
 # ./runltp -p -q -f syscalls -l LTP_syscalls_`uname -r`.log -g LTP_syscalls_`uname -r`.html
 # ./runltp -p -q -f fs -l LTP_fs_`uname -r`.log -g LTP_fs_`uname -r`.html
 # ./runltp -p -q -f ipc -l LTP_ipc_`uname -r`.log -g LTP_ipc_`uname -r`.html
 # ./runltp -p -q -f mm -l LTP_mm_`uname -r`.log -g LTP_mm_`uname -r`.html
 # ./runltp -p -q -f sched -l LTP_sched_`uname -r`.log -g LTP_sched_`uname -r`.html
 # ./runltp -p -q -f timers -l LTP_timers_`uname -r`.log -g LTP_timers_`uname -r`.html
-- とりあえず無難なところを実行。
-- aio はライブラリが入っていなかったので、後日予定。

#br
*** LTP の結果 [#k76dd19c]

- 結果ファイル (html)
-- fs
#ref(LTP_fs_2.6.27.5-117.fc10.ppc64.html);
-- ipc
#ref(LTP_ipc_2.6.27.5-117.fc10.ppc64.html);
-- mm
#ref(LTP_mm_2.6.27.5-117.fc10.ppc64.html);
-- sched
#ref(LTP_sched_2.6.27.5-117.fc10.ppc64.html);
-- syscalls
#ref(LTP_syscalls_2.6.27.5-117.fc10.ppc64.html);
-- timers
#ref(LTP_timers_2.6.27.5-117.fc10.ppc64.html);

#br
** PS3 で iozone [#x2fd88ff]

 iozone を使ってディスクの I/O テストをしてみる。

- IOzone Filesystem Benchmark
#ref(http://www.iozone.org/);

#br
*** iozone を make して実行 [#y088db74]

- パッケージを展開
 # cd /work
 # tar xf iozone3_327.tar
 # cd iozone3_327/src/current

- make
 # make linux-powerpc64
        ~~~~~~~~~~~~~~~ ppc64 アーキテクチャを指定

- 実行
 # ./iozone -abR iozone.xls
 # ./iozone -aRb iozone.xls
             ~~~ auto mode で実行し、指定した Excel ファイルへ結果を出力

#br
*** iozone の結果 [#m3963df3]

- 結果ファイル (Excel)
#ref(./iozone_ps3.xls);

#br
* 更新履歴 [#u4c5a529]
- 2009/11/04#2 誤記修正
- 2009/11/04 ページ作成

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS