From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 27 17:04:28 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEABD106566B; Fri, 27 Jul 2012 17:04:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 846768FC15; Fri, 27 Jul 2012 17:04:28 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so5677425pbb.13 for ; Fri, 27 Jul 2012 10:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=I7ELbBfx2apSWGnFEEIkp4TQPs0FxujaW+t5u7EyPLI=; b=n5BprK0SUEwueNOOVhTLdnGzPNVFXQsoFMGQfPzQolMpHu/KTFe+FxnKtOxw9U5UbN r+9JJg5N49V+PZ1oZLwzk5NuXDnD2FHwJoakZb5T8cHoEEwtvbzRfo5qoomjUEC5NB/k MQCMXysNrBKpsqjwL50utYmD9v/+b7Ey54qlE4bdVmuX5C8vKdt2z4IPqWW6tLht4q/f rCLM6yAKeGkDjIWY7GQtHPKNME4TdDel4sq4iRJ/xQO+i4sWqADBtN17+hKVKr59Q4u/ PX0OIGjYl2bE449V0FvmRk4gaVMj1IBbT8itY/aW/NtFWzTauvnUivZCCnSboSyXGgP/ 9/PA== MIME-Version: 1.0 Received: by 10.68.218.7 with SMTP id pc7mr15173376pbc.88.1343408668106; Fri, 27 Jul 2012 10:04:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Fri, 27 Jul 2012 10:04:27 -0700 (PDT) In-Reply-To: <20120726143551.b2b0ce30.ray@freebsd.org> References: <20120726143551.b2b0ce30.ray@freebsd.org> Date: Fri, 27 Jul 2012 10:04:27 -0700 X-Google-Sender-Auth: _OXCWDCAGSv7fkHcizTvbY8xhOo Message-ID: From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org, jasone@freebsd.org Subject: Re: jemalloc vs old allocator X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2012 17:04:28 -0000 Just as a note, ray@ compared jemalloc-HEAD with an older jemalloc. I've just asked him to compare it to phkmalloc from -8. He'll hopefully post those results soon. Still, great work. :) Adrian On 26 July 2012 04:35, Aleksandr Rybalko wrote: > Hi, > > I believe what Jason Evans done many test before commit jemalloc, but > made by myself simple test for embedded environment. And get following > results: > > 1. old malloc: > Sum of RSS of userland programs: 28544K > > sysctl vm.vmtotal: > System wide totals computed every five seconds: (values in kilobytes) > =============================================== > Processes: (RUNQ: 1 Disk Wait: 1 Page Wait: 0 Sleep: 19) > Virtual Memory: (Total: 2372224K Active: 250316K) > Real Memory: (Total: 18096K Active: 11392K) > Shared Virtual Memory: (Total: 15824K Active: 5288K) > Shared Real Memory: (Total: 2644K Active: 2408K) > Free Memory: 2192K > > > 2. jemalloc with MALLOC_PRODUCTION: > Sum of RSS of userland programs: 21196K > > sysctl vm.vmtotal: > System wide totals computed every five seconds: (values in kilobytes) > =============================================== > Processes: (RUNQ: 1 Disk Wait: 1 Page Wait: 0 Sleep: 19) > Virtual Memory: (Total: 2380988K Active: 257820K) > Real Memory: (Total: 19048K Active: 12144K) > Shared Virtual Memory: (Total: 16180K Active: 5392K) > Shared Real Memory: (Total: 2664K Active: 2392K) > Free Memory: 2440K > > I check it on DIR-632(Atheros AR7242 with 32M RAM) between 10-20 mins > of uptime. Device behave identical in both cases. > > So if "something" new take more memory than before, that "something" is > not a jemalloc :) > > P.S. Many thanks to Jason for such great job! > > WBW > -- > Aleksandr Rybalko