[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MP status



すこし落ち着いてきたので報告。いまこんな具合です。

NetBSD 1.5M (MULTI) #137: Wed Dec 20 08:46:38 JST 2000
    tsubai@multi:/a/1210/src/sys/arch/macppc/compile/MULTI
total memory = 32768 KB
avail memory = 27284 KB
using 435 buffers containing 1740 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 604ev (Revision 204), ID 0 (primary)
cpu1 at mainbus0: 604ev (Revision 204), ID 1
...

boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
secondary CPU started
Enter pathname of shell or RETURN for sh: 
We recommend creating a non-root account and using su(1) for root access.
# ls
.cshrc    altroot   dev       init      n         root      sys       var
.profile  bin       etc       mnt       nnn       sbin      tmp
a         boot      home      mtest     netbsd    stand     usr
# ls
.cshrc    altroot   dev       init      n         root      sys       var
.profile  bin       etc       mnt       nnn       sbin      tmp
a         boot      home      mtest     netbsd    stand     usr
# ls
.cshrc    altroot   dev       init      n         root      sys       var
.profile  bin       etc       mnt       nnn       sbin      tmp
a         boot      home      mtest     netbsd    stand     usr
# ls
trap type 400 at 22424020
sp = 0xe384fb60
Stopped in sh at        0x22424020:trap type 300 at 1bd364
     Stopped in sh at        db_disasm+0x20: l
wz      30,0(25)
db{0}> 

とまあシングルユーザーに上がるぐらいはあがるけどすぐ落ちます。
以下のようなプログラムを走らせてみると

main()
{
	int status;
	int i;

	if (fork() == 0) {
		for (i = 0; i < 100000000; i++);
		_exit(0);
	}
	if (fork() == 0) {
		for (i = 0; i < 100000000; i++);
		_exit(0);
	}
	wait(&status);
	wait(&status);
}

通常:
11.0u 0.0s 0:11.19 99.5% 0+0k 0+1io 0pf+0w

MP: (値が変だけど実時間だけ見て:-)
11.1u 34.1s 0:05.64 801.9% 0+0k 0+0io 0pf+0w

とまあ2倍速になってます。それなりに動くみたい。

# MP で値が変なのはまだ fpu まわりとか microtime() をなおしてないため