From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRH0i-0000eK-Qq for qemu-devel@nongnu.org; Thu, 04 Feb 2016 05:19:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRH0e-0006lD-R3 for qemu-devel@nongnu.org; Thu, 04 Feb 2016 05:19:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRH0e-0006l3-Ig for qemu-devel@nongnu.org; Thu, 04 Feb 2016 05:19:32 -0500 References: <1454236146-23293-1-git-send-email-pbonzini@redhat.com> <33183CC9F5247A488A2544077AF19020B02DA7EA@SZXEMA503-MBS.china.huawei.com> From: Paolo Bonzini Message-ID: <56B325B0.8050903@redhat.com> Date: Thu, 4 Feb 2016 11:19:28 +0100 MIME-Version: 1.0 In-Reply-To: <33183CC9F5247A488A2544077AF19020B02DA7EA@SZXEMA503-MBS.china.huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 00/10] virtio/vring: optimization patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" , "qemu-devel@nongnu.org" Cc: "cornelia.huck@de.ibm.com" , "v.maffione@gmail.com" , "mst@redhat.com" On 03/02/2016 13:08, Gonglei (Arei) wrote: > 22.56% qemu-kvm [.] address_space_translate > 13.29% qemu-kvm [.] qemu_get_ram_ptr We could get rid of qemu_get_ram_ptr by storing the RAMBlock pointer into the memory region, instead of the ram_addr_t value. I'm happy to answer any question if you want to do it. Paolo > 4.71% qemu-kvm [.] phys_page_find > 4.43% qemu-kvm [.] address_space_translate_internal > 3.47% libpthread-2.19.so [.] __pthread_mutex_unlock_usercnt > 3.08% qemu-kvm [.] qemu_ram_addr_from_host > 2.62% qemu-kvm [.] address_space_map > 2.61% libc-2.19.so [.] _int_malloc > 2.58% libc-2.19.so [.] _int_free > 2.38% libc-2.19.so [.] malloc > 2.06% libpthread-2.19.so [.] pthread_mutex_lock > 1.68% libc-2.19.so [.] malloc_consolidate > 1.35% libc-2.19.so [.] __memcpy_sse2_unaligned > 1.23% qemu-kvm [.] lduw_le_phys > 1.18% qemu-kvm [.] find_next_zero_bit > 1.02% qemu-kvm [.] object_unref