Date: Mon, 1 Sep 2003 11:24:51 +0900 (JST) From: Norikatsu Shigemura <nork@FreeBSD.org> To: current@FreeBSD.org Cc: rhett@alasir.com Subject: Re: threading problems Message-ID: <200309010224.h812Op9U026103@sakura.ninth-nine.com> In-Reply-To: <20030901021331.82307.qmail@web21502.mail.yahoo.com> References: <20030901021331.82307.qmail@web21502.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Sep 2003 03:13:31 +0100 (BST) RMH <rmhlldr@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309010224.h812Op9U026103>