From owner-freebsd-performance@FreeBSD.ORG Sun Mar 11 03:17:42 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68E9416A401 for ; Sun, 11 Mar 2007 03:17:42 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id B0B4C13C428 for ; Sun, 11 Mar 2007 03:17:41 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 3E07246CCC; Sat, 10 Mar 2007 22:17:41 -0500 (EST) Date: Sun, 11 Mar 2007 04:17:41 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: garcol@postino.it In-Reply-To: <1173276364.45eec6ccb23ff@www.postino.punto.it> Message-ID: <20070311041547.V79670@fledge.watson.org> References: <1173276364.45eec6ccb23ff@www.postino.punto.it> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-681862891-1173583061=:79670" Cc: "freebsd-performance@freebsd.org" , rwatson@abraham.elitel.it, FreeBSD.org@abraham.elitel.it, at@abraham.elitel.it Subject: Re: MFC of UDP socket enhancement for BIND? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 03:17:42 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-681862891-1173583061=:79670 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Wed, 7 Mar 2007, garcol@postino.it wrote: >> For reference, the sosend_copyin.diff applies these changes: >> >> src/sys/kern/uipc_socket.c:1.253, 1.254, 1.255 > > Sorry, It's seem doesn't work ... . The function sosend_copyin() where Have > I to declare it? socketvar.h:1.144 is missing from this patch; I've attached a revised version of sosend_dgram.diff that includes that change (prototype declaration of socketvar.h). Thanks, Robert N M Watson Computer Laboratory University of Cambridge --0-681862891-1173583061=:79670 Content-Type: TEXT/plain; charset=US-ASCII; name=sosend_dgram.diff Content-Transfer-Encoding: BASE64 Content-ID: <20070311041741.S79670@fledge.watson.org> Content-Description: Content-Disposition: attachment; filename=sosend_dgram.diff SW5kZXg6IGtlcm4vdWlwY19zb2NrZXQuYw0KPT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PQ0KUkNTIGZpbGU6IC9kYXRhL2Zic2QtY3ZzL25jdnMvc3JjL3N5cy9r ZXJuL3VpcGNfc29ja2V0LmMsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjI0 Mi4yLjgNCmRpZmYgLXUgLXIxLjI0Mi4yLjggdWlwY19zb2NrZXQuYw0KLS0t IGtlcm4vdWlwY19zb2NrZXQuYwkzIEZlYiAyMDA3IDA0OjAxOjIyIC0wMDAw CTEuMjQyLjIuOA0KKysrIGtlcm4vdWlwY19zb2NrZXQuYwkxMSBNYXIgMjAw NyAwMzoxMjoyMSAtMDAwMA0KQEAgLTU4NCw3ICs1ODQsMzAxIEBADQogCXJl dHVybiAoZXJyb3IpOw0KIH0NCiANCisjaWZkZWYgWkVST19DT1BZX1NPQ0tF VFMNCitzdHJ1Y3Qgc29femVyb2NvcHlfc3RhdHN7DQorCWludCBzaXplX29r Ow0KKwlpbnQgYWxpZ25fb2s7DQorCWludCBmb3VuZF9pZnA7DQorfTsNCitz dHJ1Y3Qgc29femVyb2NvcHlfc3RhdHMgc29femVyb2NwX3N0YXRzID0gezAs MCwwfTsNCisjaW5jbHVkZSA8bmV0aW5ldC9pbi5oPg0KKyNpbmNsdWRlIDxu ZXQvcm91dGUuaD4NCisjaW5jbHVkZSA8bmV0aW5ldC9pb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eXMvc29ja2V0dmFyLmgJMjggSnVuIDIwMDYgMTQ6MzM6NDcgLTAwMDAJMS4x NDEuMi4xDQorKysgc3lzL3NvY2tldHZhci5oCTExIE1hciAyMDA3IDAzOjEz OjI1IC0wMDAwDQpAQCAtNTMzLDYgKzUzMyw5IEBADQogaW50CXNvc2VuZChz dHJ1Y3Qgc29ja2V0ICpzbywgc3RydWN0IHNvY2thZGRyICphZGRyLCBzdHJ1 Y3QgdWlvICp1aW8sDQogCSAgICBzdHJ1Y3QgbWJ1ZiAqdG9wLCBzdHJ1Y3Qg bWJ1ZiAqY29udHJvbCwgaW50IGZsYWdzLA0KIAkgICAgc3RydWN0IHRocmVh ZCAqdGQpOw0KK2ludAlzb3NlbmRfZGdyYW0oc3RydWN0IHNvY2tldCAqc28s IHN0cnVjdCBzb2NrYWRkciAqYWRkciwNCisJICAgIHN0cnVjdCB1aW8gKnVp bywgc3RydWN0IG1idWYgKnRvcCwgc3RydWN0IG1idWYgKmNvbnRyb2wsDQor CSAgICBpbnQgZmxhZ3MsIHN0cnVjdCB0aHJlYWQgKnRkKTsNCiBpbnQJc29z ZXRvcHQoc3RydWN0IHNvY2tldCAqc28sIHN0cnVjdCBzb2Nrb3B0ICpzb3B0 KTsNCiBpbnQJc29zaHV0ZG93bihzdHJ1Y3Qgc29ja2V0ICpzbywgaW50IGhv dyk7DQogdm9pZAlzb3RveHNvY2tldChzdHJ1Y3Qgc29ja2V0ICpzbywgc3Ry dWN0IHhzb2NrZXQgKnhzbyk7DQo= --0-681862891-1173583061=:79670-- From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 05:37:19 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E97416A402 for ; Wed, 14 Mar 2007 05:37:19 +0000 (UTC) (envelope-from michael@dtcorp.com.au) Received: from mail.dtcorp.com.au (teksup41.lnk.telstra.net [165.228.0.35]) by mx1.freebsd.org (Postfix) with ESMTP id B192513C44B for ; Wed, 14 Mar 2007 05:37:18 +0000 (UTC) (envelope-from michael@dtcorp.com.au) Received: from [192.168.200.60] (ws10.lan [192.168.200.60]) by mail.dtcorp.com.au (8.12.9/8.12.9) with ESMTP id l2E53SaE005852 for ; Wed, 14 Mar 2007 16:03:28 +1100 (EST) (envelope-from michael@dtcorp.com.au) Message-ID: <45F78152.3070007@dtcorp.com.au> Date: Wed, 14 Mar 2007 16:00:02 +1100 From: Michael Pope User-Agent: Thunderbird 1.5.0.10 (X11/20070313) MIME-Version: 1.0 To: freebsd-performance@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Scanned by F-Prot Antivirus (http://www.f-prot.com) X-Antivirus-Summary: Mod score: 0 X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on gateway.dtcorp.com.au Subject: Flash Memory USB performance tests X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 05:37:19 -0000 I'm searching for what brand/model/capacity of Flash Memory works the best under FreeBSD (formatted in it's default state fat32 usually) If people could measure the performance of their flash memory and post them here that would be cool. Corsair Voyager and Transend Jetdrives are suppose to be fast, if anyone has one of these please post the results. I'm using bonnie++ 1.93c Here are my results: FreeBSD 6.2 Brand: PQI Corp. Model: Mr Flash Capacity: 512MB Price: ~$15AU Version 1.93c ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP ws10.lan 300M 328 39 784 0 249 0 448 51 3870 1 22.2 5 Latency 866ms 1251ms 314ms 224ms 758ms 850ms Version 1.93c ------Sequential Create------ --------Random Create-------- ws10.lan -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 77 27 166 38 141 5 90 23 162 37 13 1 Latency 989ms 1006ms 778ms 1509ms 997ms 380ms 1.93c,1.93c,ws10.lan,1,1173847789,300M,,328,39,784,0,249,0,448,51,3870,1,22.2,5,16,,,,,77,27,166,38,141,5,90,23,162,37,13,1,866ms,1251ms,314ms,224ms,758ms,850ms,989ms, Michael From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 06:57:13 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F03916A401 for ; Wed, 14 Mar 2007 06:57:13 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.freebsd.org (Postfix) with ESMTP id 07EB313C43E for ; Wed, 14 Mar 2007 06:57:12 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from stat.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HRN7w-000OQQ-LB; Wed, 14 Mar 2007 09:38:24 +0300 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HRNBQ-00038x-7x; Wed, 14 Mar 2007 09:42:00 +0300 To: Kris Kennaway References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> From: Boris Samorodov Date: Wed, 14 Mar 2007 09:42:00 +0300 In-Reply-To: <20070314005546.GA15742@xor.obsecurity.org> (Kris Kennaway's message of "Tue, 13 Mar 2007 20:55:46 -0400") Message-ID: <45849703_-_@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-performance@freebsd.org Subject: postgresql benchmarking (was: Re: FreeBSD mysql Benchmark on 4BSD/ULE scheduler and i386/amd64) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 06:57:13 -0000 (transferring the thread from freebsd-stable@ to freebsd-performance@) On Tue, 13 Mar 2007 20:55:46 -0400 Kris Kennaway wrote: > On the same test postgresql is indeed faster, I haven't finished > benchmarking it yet though. Kris, I'm interested at postgresql benchmarking at two-xeon-quad-core server with 3WARE RAID adapter. Can you give me some tips? Thank you. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 07:16:11 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 516BA16A400 for ; Wed, 14 Mar 2007 07:16:11 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4023A13C459 for ; Wed, 14 Mar 2007 07:16:11 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 0FAC91A3C1A; Wed, 14 Mar 2007 00:16:11 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 31C8A5187D; Wed, 14 Mar 2007 03:16:10 -0400 (EDT) Date: Wed, 14 Mar 2007 03:16:10 -0400 From: Kris Kennaway To: Boris Samorodov Message-ID: <20070314071609.GA19728@xor.obsecurity.org> References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45849703_-_@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.2i Cc: freebsd-performance@freebsd.org, Kris Kennaway Subject: Re: postgresql benchmarking (was: Re: FreeBSD mysql Benchmark on 4BSD/ULE scheduler and i386/amd64) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 07:16:11 -0000 On Wed, Mar 14, 2007 at 09:42:00AM +0300, Boris Samorodov wrote: > (transferring the thread from freebsd-stable@ to freebsd-performance@) > > On Tue, 13 Mar 2007 20:55:46 -0400 Kris Kennaway wrote: > > > On the same test postgresql is indeed faster, I haven't finished > > benchmarking it yet though. > > Kris, I'm interested at postgresql benchmarking at two-xeon-quad-core > server with 3WARE RAID adapter. Can you give me some tips? > Thank you. Well I'm using sysbench and the collection of patches in my kris-contention p4 branch. Sorry, I don't have an extracted patch set available for you to try, but we're hoping to get the most important patches into 7.0 within a week or two. On the pgsql side, disable the update_process_titles option (or whatever it is called), because this has a 33% performance overhead for me. Also if you're testing over localhost, use a unix socket instead of letting it use tcp because the latter is easily saturated when you have many CPUs running client threads, and peak performance is less than half of what it is over a unix socket. ULE is faster on 7.0, but currently has some performance problems at intermediate loads; Jeff hopes to fix this soon. Kris From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 07:26:01 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC86916A402 for ; Wed, 14 Mar 2007 07:26:01 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.freebsd.org (Postfix) with ESMTP id A58B013C465 for ; Wed, 14 Mar 2007 07:26:01 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from stat.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HRNs0-000OWI-K3; Wed, 14 Mar 2007 10:26:00 +0300 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HRNvU-0003An-Ao; Wed, 14 Mar 2007 10:29:36 +0300 To: Kris Kennaway References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> From: Boris Samorodov Date: Wed, 14 Mar 2007 10:29:36 +0300 In-Reply-To: <20070314071609.GA19728@xor.obsecurity.org> (Kris Kennaway's message of "Wed, 14 Mar 2007 03:16:10 -0400") Message-ID: <79766847@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 07:26:02 -0000 On Wed, 14 Mar 2007 03:16:10 -0400 Kris Kennaway wrote: > On Wed, Mar 14, 2007 at 09:42:00AM +0300, Boris Samorodov wrote: > > On Tue, 13 Mar 2007 20:55:46 -0400 Kris Kennaway wrote: > > > > > On the same test postgresql is indeed faster, I haven't finished > > > benchmarking it yet though. > > > > Kris, I'm interested at postgresql benchmarking at two-xeon-quad-core > > server with 3WARE RAID adapter. Can you give me some tips? > > Thank you. > Well I'm using sysbench and the collection of patches in my > kris-contention p4 branch. Sorry, I don't have an extracted patch set > available for you to try, but we're hoping to get the most important > patches into 7.0 within a week or two. > On the pgsql side, disable the update_process_titles option (or > whatever it is called), because this has a 33% performance overhead > for me. Also if you're testing over localhost, use a unix socket As for me, I don't like testing with local clients. > instead of letting it use tcp because the latter is easily saturated > when you have many CPUs running client threads, and peak performance > is less than half of what it is over a unix socket. ULE is faster on > 7.0, but currently has some performance problems at intermediate > loads; Jeff hopes to fix this soon. Got it, thanks! WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 07:41:03 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2803916A400 for ; Wed, 14 Mar 2007 07:41:03 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 16DB013C45E for ; Wed, 14 Mar 2007 07:41:03 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E36141A3C1A; Wed, 14 Mar 2007 00:41:02 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D2DB5515F1; Wed, 14 Mar 2007 03:41:01 -0400 (EDT) Date: Wed, 14 Mar 2007 03:41:01 -0400 From: Kris Kennaway To: Boris Samorodov Message-ID: <20070314074101.GA20470@xor.obsecurity.org> References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <79766847@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79766847@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.2i Cc: freebsd-performance@freebsd.org, Kris Kennaway Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 07:41:03 -0000 On Wed, Mar 14, 2007 at 10:29:36AM +0300, Boris Samorodov wrote: > On Wed, 14 Mar 2007 03:16:10 -0400 Kris Kennaway wrote: > > On Wed, Mar 14, 2007 at 09:42:00AM +0300, Boris Samorodov wrote: > > > On Tue, 13 Mar 2007 20:55:46 -0400 Kris Kennaway wrote: > > > > > > > On the same test postgresql is indeed faster, I haven't finished > > > > benchmarking it yet though. > > > > > > Kris, I'm interested at postgresql benchmarking at two-xeon-quad-core > > > server with 3WARE RAID adapter. Can you give me some tips? > > > Thank you. > > > Well I'm using sysbench and the collection of patches in my > > kris-contention p4 branch. Sorry, I don't have an extracted patch set > > available for you to try, but we're hoping to get the most important > > patches into 7.0 within a week or two. > > > On the pgsql side, disable the update_process_titles option (or > > whatever it is called), because this has a 33% performance overhead > > for me. Also if you're testing over localhost, use a unix socket > > As for me, I don't like testing with local clients. If that's not the target workload you're trying to model, that's quite reasonable. For me the only reason I have been using localhost exclusively is because the test machines are currently only connected by 100baseTX ethernet, which is not good enough for achieving high query loads. Kris From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 10:49:27 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 664E116A406 for ; Wed, 14 Mar 2007 10:49:27 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0C813C45E for ; Wed, 14 Mar 2007 10:49:27 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.6/8.13.6) with ESMTP id l2EAnQc8070517; Wed, 14 Mar 2007 06:49:26 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l2EAnPjc028880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Mar 2007 06:49:25 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200703141049.l2EAnPjc028880@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 14 Mar 2007 06:47:23 -0400 To: Kris Kennaway From: Mike Tancsa In-Reply-To: <20070314071609.GA19728@xor.obsecurity.org> References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: ClamAV version 0.90, clamav-milter version devel-120207 on clamscanner3 X-Virus-Status: Clean Cc: freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking (was: Re: FreeBSD mysql Benchmark on 4BSD/ULE scheduler and i386/amd64) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 10:49:27 -0000 At 03:16 AM 3/14/2007, Kris Kennaway wrote: >On the pgsql side, disable the update_process_titles option (or >whatever it is called), because this has a 33% performance overhead Hi, Is this a version specific config option or compile ? I cant find anything like that in the .conf or man pages ---Mike From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 12:44:24 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9FB7716A402 for ; Wed, 14 Mar 2007 12:44:24 +0000 (UTC) (envelope-from freebsd@edwinm.ik.nu) Received: from mag.ik.nu (mag.ik.nu [81.17.40.97]) by mx1.freebsd.org (Postfix) with ESMTP id 62CED13C44C for ; Wed, 14 Mar 2007 12:44:24 +0000 (UTC) (envelope-from freebsd@edwinm.ik.nu) Received: from localhost (localhost [127.0.0.1]) by mag.ik.nu (Postfix) with ESMTP id 523BEA1031; Wed, 14 Mar 2007 13:30:31 +0100 (CET) X-Virus-Scanned: amavisd-new at ik.nu Received: from mag.ik.nu ([127.0.0.1]) by localhost (mag.ik.nu [127.0.0.1]) (amavisd-new, port 10024) with SMTP id VYeNS8IB6EGS; Wed, 14 Mar 2007 13:30:31 +0100 (CET) Received: from [10.56.210.123] (ineo-y1a.hightechcampus.nl [194.171.252.108]) by mag.ik.nu (Postfix) with ESMTP id 333A3A1030; Wed, 14 Mar 2007 13:30:31 +0100 (CET) Message-ID: <45F7EAE6.4090300@edwinm.ik.nu> Date: Wed, 14 Mar 2007 13:30:30 +0100 From: Edwin Mons User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Mike Tancsa References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> In-Reply-To: <200703141049.l2EAnPjc028880@lava.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 12:44:24 -0000 Mike Tancsa wrote: > At 03:16 AM 3/14/2007, Kris Kennaway wrote: > > >> On the pgsql side, disable the update_process_titles option (or >> whatever it is called), because this has a 33% performance overhead > > Hi, > Is this a version specific config option or compile ? I cant > find anything like that in the .conf or man pages Put update_process_title = off in your postgresql.conf Kind regards, Edwin Mons From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 13:02:33 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73EC316A40A for ; Wed, 14 Mar 2007 13:02:33 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 3785E13C4B7 for ; Wed, 14 Mar 2007 13:02:33 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.6/8.13.6) with ESMTP id l2ED2Ua2082580; Wed, 14 Mar 2007 09:02:30 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l2ED2URR029383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Mar 2007 09:02:30 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200703141302.l2ED2URR029383@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 14 Mar 2007 09:00:28 -0400 To: Edwin Mons From: Mike Tancsa In-Reply-To: <45F7EAE6.4090300@edwinm.ik.nu> References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> <45F7EAE6.4090300@edwinm.ik.nu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: ClamAV version 0.90, clamav-milter version devel-120207 on clamscanner4 X-Virus-Status: Clean Cc: freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 13:02:33 -0000 At 08:30 AM 3/14/2007, Edwin Mons wrote: >Mike Tancsa wrote: > > At 03:16 AM 3/14/2007, Kris Kennaway wrote: > > > > > >> On the pgsql side, disable the update_process_titles option (or > >> whatever it is called), because this has a 33% performance overhead > > > > Hi, > > Is this a version specific config option or compile ? I cant > > find anything like that in the .conf or man pages > >Put > >update_process_title = off > >in your postgresql.conf This is what I get with version 8 /usr/local/etc/rc.d/010.pgsql.sh start FATAL: unrecognized configuration parameter "update_process_title" ---Mike From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 13:14:27 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 55EEC16A407 for ; Wed, 14 Mar 2007 13:14:27 +0000 (UTC) (envelope-from freebsd@edwinm.ik.nu) Received: from mag.ik.nu (mag.ik.nu [81.17.40.97]) by mx1.freebsd.org (Postfix) with ESMTP id 1776C13C448 for ; Wed, 14 Mar 2007 13:14:26 +0000 (UTC) (envelope-from freebsd@edwinm.ik.nu) Received: from localhost (localhost [127.0.0.1]) by mag.ik.nu (Postfix) with ESMTP id 13C2CA100F; Wed, 14 Mar 2007 14:14:26 +0100 (CET) X-Virus-Scanned: amavisd-new at ik.nu Received: from mag.ik.nu ([127.0.0.1]) by localhost (mag.ik.nu [127.0.0.1]) (amavisd-new, port 10024) with SMTP id IEuuOKCJ3bRA; Wed, 14 Mar 2007 14:14:20 +0100 (CET) Received: from [10.56.210.123] (ineo-y1a.hightechcampus.nl [194.171.252.108]) by mag.ik.nu (Postfix) with ESMTP id BDF77A1021; Wed, 14 Mar 2007 14:14:20 +0100 (CET) Message-ID: <45F7F52C.6010402@edwinm.ik.nu> Date: Wed, 14 Mar 2007 14:14:20 +0100 From: Edwin Mons User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Mike Tancsa References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> <45F7EAE6.4090300@edwinm.ik.nu> <200703141302.l2ED2URR029383@lava.sentex.ca> In-Reply-To: <200703141302.l2ED2URR029383@lava.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 13:14:27 -0000 Mike Tancsa wrote: > At 08:30 AM 3/14/2007, Edwin Mons wrote: >> Mike Tancsa wrote: >> > At 03:16 AM 3/14/2007, Kris Kennaway wrote: >> > >> > >> >> On the pgsql side, disable the update_process_titles option (or >> >> whatever it is called), because this has a 33% performance overhead >> > >> > Hi, >> > Is this a version specific config option or compile ? I cant >> > find anything like that in the .conf or man pages >> >> Put >> >> update_process_title = off >> >> in your postgresql.conf > > This is what I get with version 8 > > /usr/local/etc/rc.d/010.pgsql.sh start > FATAL: unrecognized configuration parameter "update_process_title" Judging by the name of your rc-script, you have an old version of PostgreSQL (read: pre-8.2). As far as I know, this option was introduced with PostgreSQL 8.2. Kind regards, Edwin Mons From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 16:27:31 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D37DF16A401 for ; Wed, 14 Mar 2007 16:27:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id B725913C44B for ; Wed, 14 Mar 2007 16:27:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 93B871A4D80; Wed, 14 Mar 2007 09:27:31 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E659F515F1; Wed, 14 Mar 2007 12:27:30 -0400 (EDT) Date: Wed, 14 Mar 2007 12:27:30 -0400 From: Kris Kennaway To: Mike Tancsa Message-ID: <20070314162730.GB47727@xor.obsecurity.org> References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313194206.GA5957@crodrigues.org> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: <200703141049.l2EAnPjc028880@lava.sentex.ca> User-Agent: Mutt/1.4.2.2i Cc: freebsd-performance@freebsd.org, Kris Kennaway Subject: Re: postgresql benchmarking (was: Re: FreeBSD mysql Benchmark on 4BSD/ULE scheduler and i386/amd64) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 16:27:31 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 14, 2007 at 06:47:23AM -0400, Mike Tancsa wrote: > At 03:16 AM 3/14/2007, Kris Kennaway wrote: >=20 >=20 > >On the pgsql side, disable the update_process_titles option (or > >whatever it is called), because this has a 33% performance overhead >=20 > Hi, > Is this a version specific config option or compile ? I cant=20 > find anything like that in the .conf or man pages It's a compile time option, but also can be disabled in the .conf file. At least on 8.1. Kris --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF+CJyWry0BWjoQKURAgkhAJsHWQ07g0NMp0kSXt1PFzBroxCWJwCg9Xr8 ec4KAQ7CoNR2ERdAHoAJ/Kg= =APwK -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V-- From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 17:43:43 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E856B16A403 for ; Wed, 14 Mar 2007 17:43:43 +0000 (UTC) (envelope-from nglrossi@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0E613C455 for ; Wed, 14 Mar 2007 17:43:42 +0000 (UTC) (envelope-from nglrossi@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so269432muf for ; Wed, 14 Mar 2007 10:43:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ASch6LLFJF44L38959fc3T9yU/VXI8Sy35ccYVrDWU9rZH+aeAXz5DUNDEZI1iPMpd+wBXpDlfiepWbb0K2I11rbWsy4tRNljpxN3hlvxUsoLVeysWyGNE1hMMlw4XxKqTGCljLWMdOtjT3r1IrdqiH4S3GjLB6piffijQeL1q0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nNl3pLaZjTMtBgEKSazP8VH/MZYi9+9Y25CaJkEDQWxQ+z7MjKzLwTT0Pmo+3iABIJkGvK9oqEKvR2RWQOdckik1Zk/gU1+y9fzFWc/tYoqI2Tuz5LBjwbN370EjA5fwHWyck8amPUtN3uW4aOH/n2gJu/tf2ZZCY9Sp49jJoIU= Received: by 10.78.204.20 with SMTP id b20mr1324019hug.1173892464171; Wed, 14 Mar 2007 10:14:24 -0700 (PDT) Received: by 10.78.32.3 with HTTP; Wed, 14 Mar 2007 10:14:24 -0700 (PDT) Message-ID: <6c1e076a0703141014n6505855dyf08ab1f755828bed@mail.gmail.com> Date: Wed, 14 Mar 2007 17:14:24 +0000 From: Angelo To: "Kris Kennaway" In-Reply-To: <20070314162730.GB47727@xor.obsecurity.org> MIME-Version: 1.0 References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> <20070314162730.GB47727@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-performance@freebsd.org, Mike Tancsa Subject: Re: postgresql benchmarking (was: Re: FreeBSD mysql Benchmark on 4BSD/ULE scheduler and i386/amd64) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 17:43:44 -0000 Hi, Can somebody give more information about this update_process_titles setting? I suppose there is a mispell and Google is not really helping with 3 results in Polish! Thanks, Angelo On 3/14/07, Kris Kennaway wrote: > > On Wed, Mar 14, 2007 at 06:47:23AM -0400, Mike Tancsa wrote: > > At 03:16 AM 3/14/2007, Kris Kennaway wrote: > > > > > > >On the pgsql side, disable the update_process_titles option (or > > >whatever it is called), because this has a 33% performance overhead > > > > Hi, > > Is this a version specific config option or compile ? I cant > > find anything like that in the .conf or man pages > > It's a compile time option, but also can be disabled in the .conf > file. At least on 8.1. > > Kris > > From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 18:41:47 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A700716A400 for ; Wed, 14 Mar 2007 18:41:47 +0000 (UTC) (envelope-from freebsd@edwinm.ik.nu) Received: from mag.ik.nu (mag.ik.nu [81.17.40.97]) by mx1.freebsd.org (Postfix) with ESMTP id 64A4B13C45A for ; Wed, 14 Mar 2007 18:41:47 +0000 (UTC) (envelope-from freebsd@edwinm.ik.nu) Received: from localhost (localhost [127.0.0.1]) by mag.ik.nu (Postfix) with ESMTP id A6FD4A1030; Wed, 14 Mar 2007 19:41:46 +0100 (CET) X-Virus-Scanned: amavisd-new at ik.nu Received: from mag.ik.nu ([127.0.0.1]) by localhost (mag.ik.nu [127.0.0.1]) (amavisd-new, port 10024) with SMTP id b2OTdRn2CSiJ; Wed, 14 Mar 2007 19:41:43 +0100 (CET) Received: from [172.16.1.19] (s5591501b.adsl.wanadoo.nl [85.145.80.27]) by mag.ik.nu (Postfix) with ESMTP id 82629A1021; Wed, 14 Mar 2007 19:41:43 +0100 (CET) Message-ID: <45F841EB.9000105@edwinm.ik.nu> Date: Wed, 14 Mar 2007 19:41:47 +0100 From: Edwin Mons User-Agent: Thunderbird 1.5.0.10 (X11/20070307) MIME-Version: 1.0 To: Angelo References: <20070313154729.1ec6abb7@DELOREAN.manuelmartini.it> <20070313195756.GA11679@xor.obsecurity.org> <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> <20070314162730.GB47727@xor.obsecurity.org> <6c1e076a0703141014n6505855dyf08ab1f755828bed@mail.gmail.com> In-Reply-To: <6c1e076a0703141014n6505855dyf08ab1f755828bed@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 18:41:47 -0000 Angelo wrote: > Hi, > > Can somebody give more information about this update_process_titles > setting? > I suppose there is a mispell and Google is not really helping with 3 > results > in Polish! > > Thanks, > Angelo Read my previous post: it's called update_process_title, and according to Kris it was a compiletime-option until 8.1 or 8.2, when it became a configurational option in postgresql.conf. If you check the manual on the PostgreSQL page, you'll find the option there in the 8.2 version and up, but not before that one: http://www.postgresql.org/docs/8.2/interactive/runtime-config-statistics.html If you check the release notes of 8.2, you'll find it's officially listed as a new feature in 8.2: http://www.postgresql.org/docs/current/static/release-8-2.html Kind regards, Edwin Mons From owner-freebsd-performance@FreeBSD.ORG Wed Mar 14 19:49:40 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF54F16A403 for ; Wed, 14 Mar 2007 19:49:40 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 96BDD13C4B8 for ; Wed, 14 Mar 2007 19:49:40 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 7B73F1A3C1A; Wed, 14 Mar 2007 12:49:40 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B3ECF5130A; Wed, 14 Mar 2007 15:49:39 -0400 (EDT) Date: Wed, 14 Mar 2007 15:49:39 -0400 From: Kris Kennaway To: Edwin Mons Message-ID: <20070314194939.GA50981@xor.obsecurity.org> References: <20070313211908.59de6504@DELOREAN.manuelmartini.it> <20070313214559.GB13079@xor.obsecurity.org> <330A1347-2309-417E-83B5-5B2CE005B9C8@solfertje.student.utwente.nl> <20070314005546.GA15742@xor.obsecurity.org> <45849703_-_@srv.sem.ipt.ru> <20070314071609.GA19728@xor.obsecurity.org> <200703141049.l2EAnPjc028880@lava.sentex.ca> <20070314162730.GB47727@xor.obsecurity.org> <6c1e076a0703141014n6505855dyf08ab1f755828bed@mail.gmail.com> <45F841EB.9000105@edwinm.ik.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45F841EB.9000105@edwinm.ik.nu> User-Agent: Mutt/1.4.2.2i Cc: Angelo , freebsd-performance@freebsd.org Subject: Re: postgresql benchmarking X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 19:49:40 -0000 On Wed, Mar 14, 2007 at 07:41:47PM +0100, Edwin Mons wrote: > Angelo wrote: > > Hi, > > > > Can somebody give more information about this update_process_titles > > setting? > > I suppose there is a mispell and Google is not really helping with 3 > > results > > in Polish! > > > > Thanks, > > Angelo > Read my previous post: it's called update_process_title, and according > to Kris it was a compiletime-option until 8.1 or 8.2, when it became a > configurational option in postgresql.conf. > > If you check the manual on the PostgreSQL page, you'll find the option > there in the 8.2 version and up, but not before that one: > http://www.postgresql.org/docs/8.2/interactive/runtime-config-statistics.html > > If you check the release notes of 8.2, you'll find it's officially > listed as a new feature in 8.2: > http://www.postgresql.org/docs/current/static/release-8-2.html Yeah, I meant 8.2, sorry for the confusion. Kris From owner-freebsd-performance@FreeBSD.ORG Thu Mar 15 22:09:35 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95AC616A401; Thu, 15 Mar 2007 22:09:35 +0000 (UTC) (envelope-from marcelo@registro.br) Received: from clone.registro.br (clone.registro.br [200.160.2.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5145113C448; Thu, 15 Mar 2007 22:09:35 +0000 (UTC) (envelope-from marcelo@registro.br) Received: by clone.registro.br (Postfix, from userid 1014) id 17F8DB835; Thu, 15 Mar 2007 18:37:31 -0300 (BRT) Date: Thu, 15 Mar 2007 18:37:31 -0300 From: Marcelo Gardini do Amaral To: freebsd-performance@freebsd.org Message-ID: <20070315213731.GI82003@registro.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: rwatson@FreeBSD.org, Peter_Losher@isc.org, jad@nominet.org.uk Subject: MFC of UDP socket performance test X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 22:09:35 -0000 Hi, I repeated that performance test done with bind [1] using now Robert's MFC [2]. Another tweak that I was supposed to do was to use libthr instead of libpthread (via libmap.conf) and build bind with threads option. In the new test I did this. I used the same methodology, same zone file and same server hardware that I used in [3]. Server: Dell 1750 Xeon 3.06GHz Bind 9.4.0 and NSD 3.0.4 Client: queryperf.c,v 1.8.192.3 2005/10/29 00:21:12 Dell Optiplex GX620 1M NS queries bind 9.4.0 bind 9.4.0 NSD 3.0.4 (no threads) (threads/libthr) 1 server forked ------------ --------------- --------------- OS / NIC em bge em bge em bge -------- -- --- -- --- -- --- 6.2-RELEASE-SMP 21258 12855 - - - - 6.2-STABLE-SMP 21325 12538 - - - - (sosend_copyin patch) 6.2-STABLE-SMP 21631 12553 28512 12922 31675 12673 (sosend_dgram patch) Conclusions: - I couldn't notice any difference using those patches. Maybe my test set is not adequate for that. - Bind works better with libthr. - "bge" NIC still doesn't work well for DNS servers on FreeBSD 6.2, as used to work on FreeBSD 4.11. Even "em" NIC does not have the same performance that used to has on 4.11. [1] http://lists.freebsd.org/pipermail/freebsd-net/2006-September/011748.html [2] http://lists.freebsd.org/pipermail/freebsd-performance/2007-March/002527.html [3] http://lists.freebsd.org/pipermail/freebsd-net/2006-September/011767.html -- Att., Marcelo Gardini NIC .br From owner-freebsd-performance@FreeBSD.ORG Thu Mar 15 22:20:56 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2BE3316A400; Thu, 15 Mar 2007 22:20:56 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1C16113C48A; Thu, 15 Mar 2007 22:20:56 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id ED7D61A4DB0; Thu, 15 Mar 2007 15:20:55 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4BE245187D; Thu, 15 Mar 2007 18:20:55 -0400 (EDT) Date: Thu, 15 Mar 2007 18:20:55 -0400 From: Kris Kennaway To: Marcelo Gardini do Amaral Message-ID: <20070315222054.GA89557@xor.obsecurity.org> References: <20070315213731.GI82003@registro.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070315213731.GI82003@registro.br> User-Agent: Mutt/1.4.2.2i Cc: freebsd-performance@freebsd.org, rwatson@FreeBSD.org, Peter_Losher@isc.org, jad@nominet.org.uk Subject: Re: MFC of UDP socket performance test X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 22:20:56 -0000 On Thu, Mar 15, 2007 at 06:37:31PM -0300, Marcelo Gardini do Amaral wrote: > Hi, > > I repeated that performance test done with bind [1] using now Robert's > MFC [2]. Another tweak that I was supposed to do was to use libthr > instead of libpthread (via libmap.conf) and build bind with threads > option. In the new test I did this. > > I used the same methodology, same zone file and same server hardware > that I used in [3]. > > > Server: Dell 1750 Xeon 3.06GHz > Bind 9.4.0 and NSD 3.0.4 > > Client: queryperf.c,v 1.8.192.3 2005/10/29 00:21:12 > Dell Optiplex GX620 > 1M NS queries > > > bind 9.4.0 bind 9.4.0 NSD 3.0.4 > (no threads) (threads/libthr) 1 server forked > ------------ --------------- --------------- > OS / NIC em bge em bge em bge > -------- -- --- -- --- -- --- > > 6.2-RELEASE-SMP 21258 12855 - - - - > > 6.2-STABLE-SMP 21325 12538 - - - - > (sosend_copyin patch) > > 6.2-STABLE-SMP 21631 12553 28512 12922 31675 12673 > (sosend_dgram patch) > > > > Conclusions: > > - I couldn't notice any difference using those patches. Maybe my test > set is not adequate for that. > > - Bind works better with libthr. > > - "bge" NIC still doesn't work well for DNS servers on FreeBSD 6.2, as > used to work on FreeBSD 4.11. Even "em" NIC does not have the same > performance that used to has on 4.11. I'll try to take a look at this benchmark on the weekend to see if I can spot any issues. Kris From owner-freebsd-performance@FreeBSD.ORG Fri Mar 16 11:27:25 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1301E16A40E for ; Fri, 16 Mar 2007 11:27:25 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id D1B3913C459 for ; Fri, 16 Mar 2007 11:27:24 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 8B11347528; Fri, 16 Mar 2007 06:27:24 -0500 (EST) Date: Fri, 16 Mar 2007 12:27:24 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Marcelo Gardini do Amaral In-Reply-To: <20070315213731.GI82003@registro.br> Message-ID: <20070316122605.G7579@fledge.watson.org> References: <20070315213731.GI82003@registro.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@freebsd.org, Peter_Losher@isc.org, jad@nominet.org.uk Subject: Re: MFC of UDP socket performance test X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 11:27:25 -0000 On Thu, 15 Mar 2007, Marcelo Gardini do Amaral wrote: > I repeated that performance test done with bind [1] using now Robert's MFC > [2]. Another tweak that I was supposed to do was to use libthr instead of > libpthread (via libmap.conf) and build bind with threads option. In the new > test I did this. > > I used the same methodology, same zone file and same server hardware that I > used in [3]. Whether this patch improves performance or not will depend on the nature of the workload and hardware configuration. It will only help on CPU-bound multiprocessor systems, which probably describes top level domain name servers well, but may describe less loaded systems less well. I'm not sure what configuration Jinmei was using specifically in his testing and evaluation; since Jinmei is about to become a FreeBSD developer, hopefully we can get him involved further in this conversation. Robert N M Watson Computer Laboratory University of Cambridge > > > Server: Dell 1750 Xeon 3.06GHz > Bind 9.4.0 and NSD 3.0.4 > > Client: queryperf.c,v 1.8.192.3 2005/10/29 00:21:12 > Dell Optiplex GX620 > 1M NS queries > > > bind 9.4.0 bind 9.4.0 NSD 3.0.4 > (no threads) (threads/libthr) 1 server forked > ------------ --------------- --------------- > OS / NIC em bge em bge em bge > -------- -- --- -- --- -- --- > > 6.2-RELEASE-SMP 21258 12855 - - - - > > 6.2-STABLE-SMP 21325 12538 - - - - > (sosend_copyin patch) > > 6.2-STABLE-SMP 21631 12553 28512 12922 31675 12673 > (sosend_dgram patch) > > > > Conclusions: > > - I couldn't notice any difference using those patches. Maybe my test > set is not adequate for that. > > - Bind works better with libthr. > > - "bge" NIC still doesn't work well for DNS servers on FreeBSD 6.2, as > used to work on FreeBSD 4.11. Even "em" NIC does not have the same > performance that used to has on 4.11. > > > [1] http://lists.freebsd.org/pipermail/freebsd-net/2006-September/011748.html > [2] http://lists.freebsd.org/pipermail/freebsd-performance/2007-March/002527.html > [3] http://lists.freebsd.org/pipermail/freebsd-net/2006-September/011767.html > > > -- > Att., > > Marcelo Gardini > NIC .br > From owner-freebsd-performance@FreeBSD.ORG Fri Mar 16 13:21:26 2007 Return-Path: X-Original-To: freebsd-performance@FreeBSD.org Delivered-To: freebsd-performance@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1759116A400; Fri, 16 Mar 2007 13:21:26 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout1.pacific.net.au (mailout1-3.pacific.net.au [61.8.2.210]) by mx1.freebsd.org (Postfix) with ESMTP id D2C7D13C45A; Fri, 16 Mar 2007 13:21:25 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 746D75A7FD2; Sat, 17 Mar 2007 00:21:24 +1100 (EST) Received: from besplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 139298C09; Sat, 17 Mar 2007 00:21:22 +1100 (EST) Date: Sat, 17 Mar 2007 00:21:21 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Marcelo Gardini do Amaral In-Reply-To: <20070315213731.GI82003@registro.br> Message-ID: <20070317002115.K35080@besplex.bde.org> References: <20070315213731.GI82003@registro.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@FreeBSD.org, rwatson@FreeBSD.org, Peter_Losher@isc.org, jad@nominet.org.uk Subject: Re: MFC of UDP socket performance test X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 13:21:26 -0000 On Thu, 15 Mar 2007, Marcelo Gardini do Amaral wrote: > I repeated that performance test done with bind [1] using now Robert's > MFC [2]. Another tweak that I was supposed to do was to use libthr > instead of libpthread (via libmap.conf) and build bind with threads > option. In the new test I did this. > > I used the same methodology, same zone file and same server hardware > that I used in [3]. > > Server: Dell 1750 Xeon 3.06GHz > Bind 9.4.0 and NSD 3.0.4 > > Client: queryperf.c,v 1.8.192.3 2005/10/29 00:21:12 > Dell Optiplex GX620 > 1M NS queries > ... > Conclusions: > > - I couldn't notice any difference using those patches. Maybe my test > set is not adequate for that. > > - Bind works better with libthr. > > - "bge" NIC still doesn't work well for DNS servers on FreeBSD 6.2, as > used to work on FreeBSD 4.11. Even "em" NIC does not have the same > performance that used to has on 4.11. I now get almost identical performance (+-10%) for packet blasting tests with bge on 4.10, 5.2 (heavily modified), 6.2 and -current and significant but fairly small changes to bge. em (unmodified) has slightly less performance than bge (modified). This may be because most things are limited by my buses and CPUs (only 33MHz 32-bit PCI and only 1 CPU on all machines, except on one that has a braindamaged bge NIC), but generally I found that the OS version and huge version-dependent differences in locking from this overheads made surprisingly little difference. Changing hardware made a big difference, but with the same hardware, merging bits of bge back and forth generally gave the same performance. Unmodified versions had performance differences of 100% for small packets. This is without using polling. I don't believe in polling and haven't optimized for it, but tested it a bit and noticed some anomalies in it. Bruce From owner-freebsd-performance@FreeBSD.ORG Fri Mar 16 13:27:52 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E9EA16A403; Fri, 16 Mar 2007 13:27:52 +0000 (UTC) (envelope-from marcelo@registro.br) Received: from clone.registro.br (clone.registro.br [200.160.2.4]) by mx1.freebsd.org (Postfix) with ESMTP id BC57713C459; Fri, 16 Mar 2007 13:27:51 +0000 (UTC) (envelope-from marcelo@registro.br) Received: by clone.registro.br (Postfix, from userid 1014) id B0749B83A; Fri, 16 Mar 2007 10:27:50 -0300 (BRT) Date: Fri, 16 Mar 2007 10:27:50 -0300 From: Marcelo Gardini do Amaral To: Robert Watson Message-ID: <20070316132750.GK82003@registro.br> References: <20070315213731.GI82003@registro.br> <20070316122605.G7579@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070316122605.G7579@fledge.watson.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-performance@freebsd.org, Peter_Losher@isc.org, jad@nominet.org.uk Subject: Re: MFC of UDP socket performance test X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 13:27:52 -0000 On Fri, Mar 16, 2007 at 12:27:24PM +0100, Robert Watson wrote: > > On Thu, 15 Mar 2007, Marcelo Gardini do Amaral wrote: > > >I repeated that performance test done with bind [1] using now Robert's MFC > >[2]. Another tweak that I was supposed to do was to use libthr instead of > >libpthread (via libmap.conf) and build bind with threads option. In the > >new test I did this. > > > >I used the same methodology, same zone file and same server hardware that > >I used in [3]. > > Whether this patch improves performance or not will depend on the nature of > the workload and hardware configuration. It will only help on CPU-bound > multiprocessor systems, which probably describes top level domain name > servers well, but may describe less loaded systems less well. I'm not sure > what configuration Jinmei was using specifically in his testing and > evaluation; since Jinmei is about to become a FreeBSD developer, hopefully > we can get him involved further in this conversation. Great. I will repeat the test with a larger zone, like a top level domain name. If I see improvement with the patch, I will let you know guys. -- Att., Marcelo Gardini NIC .br From owner-freebsd-performance@FreeBSD.ORG Sat Mar 17 08:01:29 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1C4816A401 for ; Sat, 17 Mar 2007 08:01:29 +0000 (UTC) (envelope-from garcol@postino.it) Received: from abraham.elitel.it (vdisk2.elitel.it [212.34.224.151]) by mx1.freebsd.org (Postfix) with SMTP id 5B71113C487 for ; Sat, 17 Mar 2007 08:01:28 +0000 (UTC) (envelope-from garcol@postino.it) Received: (qmail 31205 invoked by uid 65534); 17 Mar 2007 08:01:26 -0000 X-Spam-Checker-Version: SpamAssassin on abraham.elitel.it X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.2 tests=BAYES_00,NO_REAL_NAME autolearn=no Received: from 212.34.245.29 ([212.34.245.29]) by webmail.postino.it (IMP) with HTTP for ; Sat, 17 Mar 2007 09:01:24 +0100 Message-ID: <1174118484.45fba0542c204@webmail.postino.it> Date: Sat, 17 Mar 2007 09:01:24 +0100 From: garcol@postino.it To: freebsd-performance@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 212.34.245.29 Subject: MFC of UDP socket performance test X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2007 08:01:30 -0000 On Thu, 15 Mar 2007, Marcelo Gardini do Amaral wrote: > I repeated that performance test done with bind [1] using now Robert's MFC > [2]. Another tweak that I was supposed to do was to use libthr instead of > libpthread (via libmap.conf) and build bind with threads option. In the new > test I did this. > > I used the same methodology, same zone file and same server hardware that I > used in [3]. Hi, I measured the response performance as "Queries sent" with the queryperf program for 30s and for 6 times. queryperf asked various host names randomly generated. queryperf and named run on the same server. CPU: 2x Pentium III/Pentium III Xeon/Celeron (601.37-MHz 686-class CPU) named_freebsd:9.3.3 named_ports:9.3.4 named_ports_th: +thread (-n #cpus) named_ports2:9.4.0 named_ports2_th: +thread (-n #cpus) 6.2-RELEASE-p2 named named_ports named_ports_th th1 th2 6.2-RELEASE-p2 SMP named_freebsd 72367 named_ports named_ports_th 74287 -n1 50228 -n2 43579 6.2-RELEASE-p2 SMP+PATCH(sosend_copyin.diff) named_ports named_ports_th named_ports2_th 74260 -n1 49544 -n2 43382 6.2-RELEASE-p2 SMP+PATCH2(sosend_dgram.diff) named_ports named_ports_th named_ports2_th 74004 -n1 49358 -n2 53232 I make this change: /etc/libmap.conf [named9-th] libpthread.so.2 libthr.so.2 libpthread.so libthr.so 6.2-RELEASE-p2 SMP named_ports_th -n1 60228 -n2 96579 * (but the idle CPU is 0%) 6.2-RELEASE-p2 SMP+PATCH(sosend_copyin.diff) named_ports_th -n1 60650 -n2 96316 * (but the idle CPU is 0%) 6.2-RELEASE-p2 SMP+PATCH2(sosend_dgram.diff) named_ports_th -n1 60462 -n2 95976 * (but the idle CPU is 0%) I've seen with libthr the performance increase significatly according with Marcelo. Regards Alessandro