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/
Home Products Support Community News


[Xen-devel] [Patch] Fix IDLE issue with sedf scheduler on IA64

To: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>
Subject: [Xen-devel] [Patch] Fix IDLE issue with sedf scheduler on IA64
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Wed, 13 Jul 2005 17:54:19 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 13 Jul 2005 09:53:13 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWHkNam4njROoPTSRq2Lw7NMoU4Sw==
Thread-topic: [Patch] Fix IDLE issue with sedf scheduler on IA64
Hi, Dan,
        This patch fixes strange behavior on IA64, that IDLE is
scheduled more than Dom0 with default sEDF scheduler. 

        The key point is reprogram_ac_timer at the end of ac_timer
dispatcher, which programs local apic timer with expire of next ac_timer
on x86. Higher precision lapic timer can trigger ac_timer more precisely
than simply done in PIT interrupt handler. That works perfectly on x86
because PIT is already dedicated to update system time and wall time,

        However on IA64, there's only one timer source (local sapic
timer), to cover both updating time related statistics and triggering
ac_timer softirq. In this case, the delta between adjacent timer
interrupts can't be changed dynamically, or else system time (especially
NOW()) is inaccurate. So reprogram_ac_timer should always return 1 on

        To make ac_timer softirq triggered more precisely, another
parameter tuned in the patch is the HZ, changed from 100(10ms) to
1024(1ms). Then the cpu_time of IDLE is decreased to about 0.09% from
previous %1.

Signed-off-by Kevin Tian <Kevin.Tian@xxxxxxxxx>


Attachment: patch_idle_ia64
Description: patch_idle_ia64

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [Patch] Fix IDLE issue with sedf scheduler on IA64, Tian, Kevin <=