From owner-freebsd-current@FreeBSD.ORG Thu Dec 29 05:05:57 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 E600616A41F; Thu, 29 Dec 2005 05:05:57 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1292343D5C; Thu, 29 Dec 2005 05:05:57 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id jBT55sT3070213; Thu, 29 Dec 2005 05:05:56 GMT (envelope-from davidxu@freebsd.org) Message-ID: <43B36EB9.70205@freebsd.org> Date: Thu, 29 Dec 2005 13:06:01 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20050928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason Evans References: <43B36B83.7080404@freebsd.org> <32729773-B07C-4AEE-92D0-62ACE0E3AFEB@freebsd.org> In-Reply-To: <32729773-B07C-4AEE-92D0-62ACE0E3AFEB@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: New malloc ready, take 42 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: Thu, 29 Dec 2005 05:05:58 -0000 Jason Evans wrote: > > On Dec 28, 2005, at 8:52 PM, David Xu wrote: > >> Jason Evans wrote: >> >>> So, how about it? Is jemalloc ready to go in now? >>> Thanks, >>> Jason >> >> >> I have tested super-smack with your patch on my Pentium-D machine: >> CPU : P4 dual-core 2.8Ghz >> Memory: 1G bytes >> I am using libthr. >> >> phkmalloc can reach about 21000 query-per-s. >> jemalloc can only reach about 15000 query-per-s, >> about 28% performance is dropped. > > > That is a much different result than Kris Kennaway got on a dual-dual > Opteron system, as well as my results on a 3.2 GHz P4. Can you please > provide details on what version of the jemalloc patch you used, which > MALLOC_OPTIONS flags you used, what parameters you specified to > super-smack, etc.? > > A Pentium-D should behave similarly to two single-core CPUs, right? > > Thanks, > Jason > > > I am using patch file jemalloc_20051222c.diff. I don't use MALLOC_OPTIONS and don't create link malloc.conf in /etc. I have tested super-smack with following command: %super-smack ./select-key.smack 10 5000 Query Barrel Report for client smacker1 connect: max=4ms min=1ms avg= 2ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 100000 0 0 15895.76 %super-smack ./select-key.smack 10 5000 Query Barrel Report for client smacker1 connect: max=3ms min=2ms avg= 2ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 100000 0 0 16029.86 %super-smack ./select-key.smack 10 5000 Query Barrel Report for client smacker1 connect: max=2ms min=0ms avg= 1ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 100000 0 0 14732.03