Jin Guojun[ITG] wrote:
Does any one have tested some dual pentium motherboards?
I have two different dual pentium motherboards:
1) ASUS P/I-P65UP5 with C-P55T2D
2) TYAN S1563D
neither of them really gets worked for SMP. Here is the testing result by
using pthread library -lc_r:
the pthread library does not yet utilise multiple
they are all still on one process and thus one processor.
people are working on it, but don't hold your breath too much..
fork() however will work on separate processors..
FreeBSD with single CPU:
60 /data/src: vfft mri.b128 > /dev/null
9.7u 0.1s 0:09.95 99.3% 97+11132k 0+0io 0pf+0w
FreeBSD with dual CPU + pthread (failure SMP):
62 /data/src: vfft.mt < mri.b128 > /dev/null
9.5u 0.2s 0:09.83 99.1% 77+11822k 0+0io 0pf+0w
Solaris 2.5.1.u8 with single CPU:
67 /home/data/src: vfft mri.b128 > /dev/null
12.0u 0.0s 0:13 87% 0+0k 0+0io 0pf+0w
Solaris 2.5.1.u8 with dual CPU + thread (SMP):
69 /home/data/src: vfft.mt mri.b128 > /dev/null
12.0u 0.0s 0:07 168% 0+0k 0+0io 0pf+0w
We can see that Solaris does make SMP work, but FreeBSD 3.0-SNAP does not.
Does this fail at pthread library (-lc_r)? I have not use fork() for a while.
I will test it sometimes later.
I saw some message early that said SMP works. Would some one please tell me
how was the SMP tested (fork() or pthread)?
pthreads and fork() are two different things.