From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUeoa-0002YM-BL for qemu-devel@nongnu.org; Tue, 02 Aug 2016 14:53:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUeoX-0000kZ-4R for qemu-devel@nongnu.org; Tue, 02 Aug 2016 14:53:20 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:33575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUeoU-0000e9-L8 for qemu-devel@nongnu.org; Tue, 02 Aug 2016 14:53:17 -0400 Date: Tue, 2 Aug 2016 14:53:03 -0400 From: "Emilio G. Cota" Message-ID: <20160802185303.GA18402@flamenco> References: <1470158864-17651-1-git-send-email-alex.bennee@linaro.org> <1470158864-17651-14-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1470158864-17651-14-git-send-email-alex.bennee@linaro.org> Subject: Re: [Qemu-devel] [PATCH v5 13/13] cpu-exec: replace cpu->queued_work with GArray List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: mttcg@listserver.greensocs.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, bobby.prani@gmail.com, mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, rth@twiddle.net, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite On Tue, Aug 02, 2016 at 18:27:44 +0100, Alex Bennée wrote: > Under times of high memory stress the additional small mallocs by a > linked list are source of potential memory fragmentation. As we have > worked hard to avoid mallocs elsewhere when queuing work we might as > well do the same for the list. We convert the lists to a auto-resizeing > GArray which will re-size in steps of powers of 2. Would be nice to see numbers on how this compares to simply using tcmalloc/jemalloc (or the glibc allocator, really). Thanks, Emilio