From owner-freebsd-embedded@FreeBSD.ORG Thu Jul 26 11:41:43 2012 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 79BFE106564A; Thu, 26 Jul 2012 11:41:43 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1778FC0C; Thu, 26 Jul 2012 11:41:40 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) by smtp.dlink.ua (Postfix) with SMTP id 13A12C493D; Thu, 26 Jul 2012 14:34:09 +0300 (EEST) Date: Thu, 26 Jul 2012 14:35:51 +0300 From: Aleksandr Rybalko To: freebsd-embedded@FreeBSD.org, jasone@FreeBSD.org Message-Id: <20120726143551.b2b0ce30.ray@freebsd.org> Organization: FreeBSD Project X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: adrian@FreeBSD.org Subject: 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: Thu, 26 Jul 2012 11:41:43 -0000 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