From owner-freebsd-current@FreeBSD.ORG Wed Nov 19 15:39:08 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 0417D106564A for ; Wed, 19 Nov 2008 15:39:08 +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 78AB78FC13 for ; Wed, 19 Nov 2008 15:39:07 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L2p8w-0005KT-6p for freebsd-current@freebsd.org; Wed, 19 Nov 2008 15:39:02 +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 15:39:02 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Nov 2008 15:39:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Wed, 19 Nov 2008 16:39:48 +0100 Lines: 110 Message-ID: References: <515c64960811190604w4f22e5a0ta4ed07323fcb697d@mail.gmail.com> <515c64960811190656i5b103d15s44b0a35a6b9455e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig89A5C1A4C5C0272C73646E6A" 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: <515c64960811190656i5b103d15s44b0a35a6b9455e@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 15:39:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig89A5C1A4C5C0272C73646E6A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Channa wrote: > Hi, > Thank you very much for your information. >=20 > I am using current implementation of FreeBSD malloc. > I am checking the performance on single CPU machine. >=20 > I am using it in my own environment i am not using FreeBSD7.0. >=20 > I disabled the MALLOC_DEBUG option in the malloc implementaton > and checked the performance i see no difference the results are the sam= e. >=20 > ./mallco-test > Starting test... > Thread -1101005488 adjusted timing: 4.495931 seconds for 1000000 > requests of 512 bytes. >=20 > Could please tell me if anything else needs to be changed.? Yes, you need to disable kernel debugging also. (you have recompiled libc after removing MALLOC_DEBUG, right?). Also, it looks like your comparisons have problems. You are changing the number of requests and request size. Finally, to what are you actually comparing the malloc performance to? Why are you trying to benchmark it? > 2008/11/19 Ivan Voras : >> Channa wrote: >>> Hi, >>> >>> I am using FreeBSD malloc from the current working branch. >>> I hope its jemalloc. >>> >>> I tested it on a single CPU machine i could get the following results= >>> >>> # ./malloc-test 1024 10000000 4 >>> >>> 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. >>> >>> I checked the result in the FreeBSD mailing list link given below: >>> >>> http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2005-12/msg00= 294.html >>> >>> The jemalloc gives very good results. Is that the performance is good= >>> only on SMP? >>> >>> Or on single processor also it should perform well? >>> >>> But on single CPU i could see bad results. >>> >>> Could anyone help me out? >> Your message is not very clear but here are some things that might hel= p you: >> >> 1) -CURRENT has debugging enabled both in kernel and in malloc. You ne= ed >> to disable both before benchmarking anything. >> 2) According to the post you linked, jemalloc should be 1.1 times fast= er >> 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. >> >> > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 --------------enig89A5C1A4C5C0272C73646E6A 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 iD8DBQFJJDNEldnAQVacBcgRAsNRAJ907ChqmcpY4gziPVjWjcd5xO3VDACfZ3Sg MZdh9glZNMXzdBz5CODnHFY= =t2RS -----END PGP SIGNATURE----- --------------enig89A5C1A4C5C0272C73646E6A--