From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 19:25:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9864216A4BF for ; Sun, 31 Aug 2003 19:25:01 -0700 (PDT) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E32D43FF9 for ; Sun, 31 Aug 2003 19:25:00 -0700 (PDT) (envelope-from nork@FreeBSD.org) Received: from nd250009.gab.xdsl.ne.jp ([IPv6:2002:d312:f91e::1]) (authenticated bits=0) by sakura.ninth-nine.com (8.12.9/8.12.9/NinthNine) with ESMTP id h812Op9U026103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Sep 2003 11:24:51 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Mon, 1 Sep 2003 11:24:51 +0900 (JST) Message-Id: <200309010224.h812Op9U026103@sakura.ninth-nine.com> From: Norikatsu Shigemura To: current@FreeBSD.org In-Reply-To: <20030901021331.82307.qmail@web21502.mail.yahoo.com> References: <20030901021331.82307.qmail@web21502.mail.yahoo.com> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: rmhlldr@yahoo.co.uk cc: rhett@alasir.com Subject: Re: threading problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 02:25:01 -0000 On Mon, 1 Sep 2003 03:13:31 +0100 (BST) RMH 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