金曜日 6 12, 2009
金曜日 6 12, 2009
OpenSolaris ARMプラットフォーム移植プロジェクトが発表されました。インストール手順に従ってON (OS/Net)をソースからビルドすれば、QEMU上でバイナリを実行できます。prstat、vi、dtraceなどを含むコマンドを楽しめます。(English)
以下は非デバッグカーネルの実行結果です。
$ ./ne1.sh
DEBUG: cpu_model=arm11mpcore ncpu=4, ram_size=335544320
MEMLIST: boot physinstalled:
Address 0x80000000, size 0x8000000
Address 0x88000000, size 0x4700000
MEMLIST: phys_avail:
Address 0x8068f000, size 0x7971000
Address 0x88000000, size 0x4700000
SunOS Release 5.11 Version onarm-gate 32-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
WARNING: Last shutdown is later than time on time-of-day chip; check date.
console login: root
# uname -a
SunOS 5.11 onarm-gate ne1 arm ne1
# prtconf
System Configuration: Sun Microsystems ne1
Memory size: 199 Megabytes
...
# file /usr/bin/vmstat
/usr/bin/vmstat: ELF 32-bit LSB executable ARM Version 1, dynamically linked, stripped
# vmstat
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr rm -- -- -- in sy cs us sy id
0 0 0 167416 189984 39 127 156 0 0 0 535 -4648 0 0 0 201 234 63 3 17 80
# mpstat
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 18 2 0 191 2 23 3 0 1 0 95 1 8 0 92
# prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
28 root 3064K 2636K cpu0 59 0 0:00:00 0.9% prstat/1
20 root 1148K 716K sleep 59 0 0:00:01 0.1% sh/1
1 root 1104K 664K sleep 59 0 0:00:00 0.0% init/1
Total: 3 processes, 3 lwps, load averages: 0.04, 0.02, 0.00
# df -h
Filesystem size used avail capacity Mounted on
/devices/ramdisk:a 45M 29M 11M 72% /
/devices 0K 0K 0K 0% /devices
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.0M 4K 1020K 1% /etc/svc/volatile
swap 2.0M 4K 2.0M 1% /tmp
swap 1.0M 0K 1.0M 0% /var/run
fd 0K 0K 0K 0% /dev/fd
# dtrace -l | wc
19362 96324 1474582