Received: from eggs.gnu.org ([2001:4830:134:3::10]:42954)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1ZJgJx-0000hB-Ht
for qemu-devel@nongnu.org; Mon, 27 Jul 2015 07:11:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ZJgJt-0004aK-Gv
for qemu-devel@nongnu.org; Mon, 27 Jul 2015 07:11:49 -0400
Received: from mailout4.w1.samsung.com ([210.118.77.14]:47649)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ZJgJt-0004Zx-B9
for qemu-devel@nongnu.org; Mon, 27 Jul 2015 07:11:45 -0400
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout4.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NS5004LR8FH3990@mailout4.w1.samsung.com> for
qemu-devel@nongnu.org; Mon, 27 Jul 2015 12:11:41 +0100 (BST)
From: Pavel Fedin
Date: Mon, 27 Jul 2015 14:11:40 +0300
Message-id: <015b01d0c85d$0384e860$0a8eb920$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: quoted-printable
Content-language: ru
Subject: [Qemu-devel] PING: [PATCH v4 0/2] QOM: object_property_add()
performance improvement
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: qemu-devel@nongnu.org
Cc: 'Peter Crosthwaite' , =?utf-8?Q?'Andreas_F=C3=A4rber'?=
Ping!!!
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
> -----Original Message-----
> From: qemu-devel-bounces+p.fedin=3Dsamsung.com@nongnu.org =
[mailto:qemu-devel-
> bounces+p.fedin=3Dsamsung.com@nongnu.org] On Behalf Of Pavel Fedin
> Sent: Tuesday, July 14, 2015 12:39 PM
> To: qemu-devel@nongnu.org
> Cc: Peter Crosthwaite; Andreas F=C3=A4rber
> Subject: [Qemu-devel] [PATCH v4 0/2] QOM: object_property_add() =
performance improvement
>=20
> The function originally behaves very badly when adding properties with =
"[*]"
> suffix. Normally these are used for numbering IRQ pins. In order to =
find the
> correct starting number the function started from zero and checked for
> duplicates. This takes incredibly long time with large number of CPUs =
because
> number of IRQ pins on some architectures (like ARM GICv3) gets =
multiplied by
> number of CPUs.
>=20
> The solution is to add one more property which caches last used index =
so that
> duplication check is not repeated thousands of times. Every time an =
array is
> expanded the index is picked up from this cache.
>=20
> The modification decreases qemu startup time with 32 CPUs by a factor =
of 2
> (~10 sec vs ~20 sec).
>=20
> Pavel Fedin (2):
> QOM: Introduce object_property_add_single()
> QOM: object_property_add() performance improvement
>=20
> qom/object.c | 96 =
+++++++++++++++++++++++++++++++++++++++++++-----------------
> 1 file changed, 69 insertions(+), 27 deletions(-)
>=20
> --
> 1.9.5.msysgit.0