From: Konrad Rzeszutek Wilk <konrad@darnok.org>
To: xen-devel@lists.xensource.com, konrad.wilk@oracle.com,
George.Dunlap@eu.citrix.com, keir@xen.org
Subject: issues with PLE and/or scheduler.
Date: Tue, 20 Dec 2011 16:41:07 -0400 [thread overview]
Message-ID: <20111220204107.GA768@andromeda.dapyr.net> (raw)
Hey folks,
I am sending this on behalf of Andrew since our internal email system
is dropping all xen-devel mailing lists :-(
Anyhow:
This is with xen-4.1-testing cs 23201:1c89f7d29fbb
and using the default "credit" scheduler.
I've run into an interesting issue with HVM guests which
make use of Pause Loop Exiting (ie. on westmere systems;
and also on romley systems): after yielding the cpu, guests
don't seem to receive timer interrupts correctly..
Some background: for historical reasons (ie old templates) we boot
OL/RHEL guests with the following settings:
kernel parameters: clock=pit nohpet nopmtimer
vm.cfg: timer_mode = 2
With PLE enabled, 2.6.32 guests will crash early on with:
..MP-BIOS bug: 8254 timer not connected to IO-APIC
# a few lines omitted..
Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with
apic=debug
While 2.6.18-238 (ie OL/RHEL5u6) will fail to find the timer, but
continue and lock up in the serial line initialization.
..MP-BIOS bug: 8254 timer not connected to IO-APIC
# continues until lock up here:
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
Instrumenting the 2.6.32 code (ie timer_irq_works()) shows that jiffies
isn't advancing (or only 1 or 2 ticks are being received, which is insufficient
for "working"). This is on a "quiet" system with no other activity.
So, even though the guest has voluntarily yielded the cpu (through PLE),
I would still expect it to receive every clock tick (even with timer_mode=2)
as there is no other work to do on the system.
Disabling PLE allows both 2.6.18 and 2.6.32 guests to boot.. [As an
aside, so does setting ple_gap to 41 (ie prior to 21355:727ccaaa6cce) --
the perf counters show no exits happening, so this is equivalent to disabling PLE.]
I'm hoping someone who knows the scheduler well will be able to quickly
decide whether this is a bug or a feature...
Andrew
next reply other threads:[~2011-12-20 20:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 20:41 Konrad Rzeszutek Wilk [this message]
2011-12-20 20:41 ` issues with PLE and/or scheduler Konrad Rzeszutek Wilk
2011-12-21 1:28 ` Shan, Haitao
2011-12-21 10:34 ` Zhang, Xiantao
2011-12-21 11:58 ` Keir Fraser
2011-12-21 16:20 ` Zhang, Xiantao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111220204107.GA768@andromeda.dapyr.net \
--to=konrad@darnok.org \
--cc=George.Dunlap@eu.citrix.com \
--cc=keir@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.