From owner-freebsd-current@FreeBSD.ORG Sun Sep 5 01:47:02 2004 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 141B816A536 for ; Sun, 5 Sep 2004 01:46:59 +0000 (GMT) Received: from out007.verizon.net (out007pub.verizon.net [206.46.170.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83AD943D3F for ; Sun, 5 Sep 2004 01:46:58 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from [10.0.3.231] ([141.153.207.21]) by out007.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040905014657.PUGN1210.out007.verizon.net@[10.0.3.231]> for ; Sat, 4 Sep 2004 20:46:57 -0500 From: "Alexandre \"Sunny\" Kovalenko" To: current@freebsd.org Content-Type: text/plain Message-Id: <1094348789.74537.18.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 04 Sep 2004 21:46:30 -0400 Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out007.verizon.net from [141.153.207.21] at Sat, 4 Sep 2004 20:46:57 -0500 Subject: AMD64 MP, ULE and threaded applications 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: Sun, 05 Sep 2004 01:47:02 -0000 I am slightly confused whether I should post 5.3 BETA related stuff here or in stable@, so feel free to chastise me as appropriate. I have fairly simple program which is heavily CPU bound and could be easily parallelized. Recently I laid my hands on dual AMD64 no-brand machine and installed 5.3 BETA1 on it. With SCHED_ULE, no number of threads would deliver more then single CPU performance, and 'top' will report 50% CPU utilization. With SCHED_4BSD, two threads would deliver ~185% of single CPU performance and 'top' will report 100% spent in userland. Test application could be found here: http://members.verizon.net/~akovalenko/PDFPassword.tar.gz To build, just type 'make'. To run, type ./PDFPassword OValue <# of threads to start> I use this benchmark on variety of MP hardware (Sun, RS/6000, Intel) and throughput usually follows number of threads up to number of available CPU. I will bring this system up to RELENG_5 as of Saturday (9/4) morning EST some time on Monday and retest. I can also test patches or try oprions as needed. Unfortunately, I would not be able to provide remote access to this box. --- Alexandre "Sunny" Kovalenko.