WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] [IA64] improve response time in dom 0

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [IA64] improve response time in dom 0 at creating a guest domain
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Aug 2008 05:51:06 -0700
Delivery-date: Mon, 11 Aug 2008 05:56:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1217906378 -32400
# Node ID 678ad99920c897f247c37d3de14827c547e664c5
# Parent  0deba952a6d3d2a58c404feefea2bccb3071089a
[IA64] improve response time in dom 0 at creating a guest domain

The hypercall takes several hundred mili seconds,
and it takes around 5 mili seconds with my new patch.
Time of one hypercall should be smaller than a vcpu time slice.

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
---
 arch/ia64/xen/xcom_privcmd.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff -r 0deba952a6d3 -r 678ad99920c8 arch/ia64/xen/xcom_privcmd.c
--- a/arch/ia64/xen/xcom_privcmd.c      Mon Jul 28 17:24:40 2008 +0900
+++ b/arch/ia64/xen/xcom_privcmd.c      Tue Aug 05 12:19:38 2008 +0900
@@ -437,15 +437,18 @@ xencomm_privcmd_memory_reservation_op(pr
                 *   may cause the soft lockup warning.
                 *   In order to avoid the warning, we limit
                 *   the number of extents and repeat the hypercall.
-                *   The following value is determined by experimentation.
-                *   If the following limit causes soft lockup warning,
+                *   The following value is determined by evaluation.
+                *   Time of one hypercall should be smaller than
+                *   a vcpu time slice. The time with current
+                *   MEMORYOP_MAX_EXTENTS is around 5 msec.
+                *   If the following limit causes some issues,
                 *   we should decrease this value.
                 *
                 *   Another way would be that start with small value and
                 *   increase adoptively measuring hypercall time.
                 *   It might be over-kill.
                 */
-#define MEMORYOP_MAX_EXTENTS   (MEMORYOP_XENCOMM_LIMIT / 4)
+#define MEMORYOP_MAX_EXTENTS   (MEMORYOP_XENCOMM_LIMIT / 512)
 
                while (nr_extents > 0) {
                        xen_ulong_t nr_tmp = nr_extents;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] [IA64] improve response time in dom 0 at creating a guest domain, Xen patchbot-linux-2.6.18-xen <=