Date: Wed, 19 Nov 2008 15:45:21 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-current@freebsd.org Subject: Re: FreeBSD performance on single CPU. Message-ID: <gg18ob$gor$1@ger.gmane.org> In-Reply-To: <515c64960811190604w4f22e5a0ta4ed07323fcb697d@mail.gmail.com> References: <515c64960811190604w4f22e5a0ta4ed07323fcb697d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gg18ob$gor$1>