Re: threading problems

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Mon, 1 Sep 2003 11:24:51 +0900 (JST)
On Mon, 1 Sep 2003 03:13:31 +0100 (BST)
RMH <rmhlldr_at_yahoo.co.uk> wrote:
> # gcc -O2 -fomit-frame-pointer -march=i686 -o smp smp.c -pthread
> # ./smp
> 4Gb per pass mode
> INTEGER | WRITING      8 Kb block: 1351 Mb/s
> res0: 674
> res1: 677
> # gcc -O2 -fomit-frame-pointer -march=i686 -o smp2 smp.c -L/usr/local/lib
> -llthread
> # ./smp2
> 4Gb per pass mode
> INTEGER | WRITING      8 Kb block: 2697 Mb/s
> res0: 1349
> res1: 1348

	Hum...

#################################### with Linux Thread
# gcc -O2 -fomit-frame-pointer -march=i686 -o smp smp.c -I/usr/local/include/pthread -L/usr/local/lib -llthread
# ./smp
4Gb per pass mode

INTEGER | WRITING      8 Kb block: 7613 Mb/s
res0: 3808
res1: 3805

#################################### with libc_r (1:M thread model)
# gcc -O2 -fomit-frame-pointer -march=i686 -o smp smp.c -lc_r
# ./smp
4Gb per pass mode

INTEGER | WRITING      8 Kb block: 3828 Mb/s
res0: 1902
res1: 1926

#################################### with libthr (1:1 thread model)
# gcc -O2 -fomit-frame-pointer -march=i686 -o smp smp.c -lthr
# ./smp
4Gb per pass mode

INTEGER | WRITING      8 Kb block: 7447 Mb/s
res0: 3763
res1: 3684

#################################### with libkse (M:N thread model)
# gcc -O2 -fomit-frame-pointer -march=i686 -o smp smp.c -lkse
# ./smp
4Gb per pass mode

INTEGER | WRITING      8 Kb block: 7592 Mb/s
res0: 3789
res1: 3803
Received on Sun Aug 31 2003 - 17:25:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:20 UTC