From owner-freebsd-current@FreeBSD.ORG Wed Nov 19 14:44:39 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D1E510656D7 for ; Wed, 19 Nov 2008 14:44:39 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E35DA8FC13 for ; Wed, 19 Nov 2008 14:44:38 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L2oIF-0003C8-Fb for freebsd-current@freebsd.org; Wed, 19 Nov 2008 14:44:35 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Nov 2008 14:44:35 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Nov 2008 14:44:35 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Wed, 19 Nov 2008 15:45:21 +0100 Lines: 67 Message-ID: References: <515c64960811190604w4f22e5a0ta4ed07323fcb697d@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD754771698A747AD686B46C0" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <515c64960811190604w4f22e5a0ta4ed07323fcb697d@mail.gmail.com> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: FreeBSD performance on single CPU. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 19 Nov 2008 14:44:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD754771698A747AD686B46C0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Channa wrote: > Hi, >=20 > I am using FreeBSD malloc from the current working branch. > I hope its jemalloc. >=20 > I tested it on a single CPU machine i could get the following results >=20 > # ./malloc-test 1024 10000000 4 >=20 > Starting test... > Thread -1096811184 adjusted timing: 102.369100 seconds for 10000000 > requests of 1024 bytes. > Thread -1101005488 adjusted timing: 103.212512 seconds for 10000000 > requests of 1024 bytes. > Thread -1098908336 adjusted timing: 103.491399 seconds for 10000000 > requests of 1024 bytes. > Thread -1094714032 adjusted timing: 103.605124 seconds for 10000000 > requests of 1024 bytes. >=20 > I checked the result in the FreeBSD mailing list link given below: >=20 > http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2005-12/msg0029= 4.html >=20 > The jemalloc gives very good results. Is that the performance is good > only on SMP? >=20 > Or on single processor also it should perform well? >=20 > But on single CPU i could see bad results. >=20 > Could anyone help me out? Your message is not very clear but here are some things that might help y= ou: 1) -CURRENT has debugging enabled both in kernel and in malloc. You need to disable both before benchmarking anything. 2) According to the post you linked, jemalloc should be 1.1 times faster for single-threaded processes than phkmalloc, on that particular benchmark. This benefit will probably also be visible on single-CPU machines. 3) You don't need to run -CURRENT to get jemalloc - it is also prosent in 7.0. --------------enigD754771698A747AD686B46C0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJJCaCldnAQVacBcgRAjqYAKCsULnyELvtx+Rm2/At08vBKOGouQCdFaYW PFZ82fD/VjGz9tcitvEZBAw= =JUAl -----END PGP SIGNATURE----- --------------enigD754771698A747AD686B46C0--