From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XupYy-0007br-5A for qemu-devel@nongnu.org; Sat, 29 Nov 2014 16:28:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XupYo-00079N-Be for qemu-devel@nongnu.org; Sat, 29 Nov 2014 16:28:20 -0500 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:36291 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XupYo-000790-1q for qemu-devel@nongnu.org; Sat, 29 Nov 2014 16:28:10 -0500 Message-ID: <547A3A64.5090000@kamp.de> Date: Sat, 29 Nov 2014 22:28:04 +0100 From: Peter Lieven MIME-Version: 1.0 References: <1417183941-26329-1-git-send-email-pbonzini@redhat.com> <1417183941-26329-8-git-send-email-pbonzini@redhat.com> <5478E0A5.6060405@kamp.de> <5479D7CE.8060200@redhat.com> In-Reply-To: <5479D7CE.8060200@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 7/7] coroutine: try harder not to delete coroutines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: kwolf@redhat.com, ming.lei@canonical.com, stefanha@redhat.com Am 29.11.2014 um 15:27 schrieb Paolo Bonzini: > > On 28/11/2014 21:52, Peter Lieven wrote: >> master: >> Run operation 40000000 iterations 13.612604 s, 2938K operations/s, 340ns per coroutine >> >> this series up to patch 6: >> Run operation 40000000 iterations 10.428382 s, 3835K operations/s, 260ns per coroutine >> >> this series up to patch 7: >> Run operation 40000000 iterations 9.112539 s, 4389K operations/s, 227ns per coroutine >> >> So this confirms the +33% Paolo sees up to Patch 5. But I have yet fully understood the >> +15% that this Patch gains. > No atomic operations once the release pool gets full. We're talking of > 800 clock cycles here, and one atomic operation costs 50 cycles. 100 > clock cycles out of 800 = 15% speedup (8/7 = 1.14). Maybe its worth mentioning this (partly) in the commit message that this can give a gain of additional 15% best case. This gives a +50% for the whole series best case. Peter