From owner-freebsd-current@FreeBSD.ORG Thu Dec 29 05:39:24 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 6271416A420; Thu, 29 Dec 2005 05:39:24 +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 0863F43D4C; Thu, 29 Dec 2005 05:39:24 +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 jBT5dKwX072180; Thu, 29 Dec 2005 05:39:22 GMT (envelope-from davidxu@freebsd.org) Message-ID: <43B3768F.40704@freebsd.org> Date: Thu, 29 Dec 2005 13:39:27 +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> <43B36EB9.70205@freebsd.org> <2E722A13-C880-41B6-A84C-3927C8FE90E5@freebsd.org> In-Reply-To: <2E722A13-C880-41B6-A84C-3927C8FE90E5@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:39:24 -0000 Jason Evans wrote: > > On Dec 28, 2005, at 9:06 PM, David Xu wrote: > >> >> 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 > > > Can you please try again with MALLOC_OPTIONS=aj, and (similar to the > tests I ran): > > MALLOC_OPTIONS=aj super-smack ./select-key.smack 4 10000 > > It will be helpful to know whether your hardware behaves differently > for the same test. Also, I don't have any working hardware right now, > so I can't try to reproduce your results. > > Thanks, > Jason > > OK, I have linked /etc/malloc.conf to aj, this changes the performance: %super-smack ./select-key.smack 4 10000 Query Barrel Report for client smacker1 connect: max=23ms min=0ms avg= 5ms from 4 clients Query_type num_queries max_time min_time q_per_s select_index 80000 0 0 20480.54 %super-smack ./select-key.smack 4 10000 Query Barrel Report for client smacker1 connect: max=1ms min=0ms avg= 0ms from 4 clients Query_type num_queries max_time min_time q_per_s select_index 80000 0 0 19734.14 %super-smack ./select-key.smack 4 10000 Query Barrel Report for client smacker1 connect: max=1ms min=0ms avg= 0ms from 4 clients Query_type num_queries max_time min_time q_per_s select_index 80000 0 0 19846.49 %super-smack ./select-key.smack 4 10000 Query Barrel Report for client smacker1 connect: max=1ms min=0ms avg= 0ms from 4 clients Query_type num_queries max_time min_time q_per_s select_index 80000 0 0 20045.10 %super-smack ./select-key.smack 4 10000 Query Barrel Report for client smacker1 connect: max=0ms min=0ms avg= 0ms from 4 clients Query_type num_queries max_time min_time q_per_s select_index 80000 0 0 19544.33 % but it still can not beat phkmalloc. :-)