From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Mukesh Rathor <mukesh.rathor@oracle.com>
Cc: "kurt.hackel@oracle.com" <kurt.hackel@oracle.com>,
Dan Magenheimer <dan.magenheimer@oracle.com>,
"Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
Keir Fraser <keir.fraser@eu.citrix.com>,
Jan Beulich <JBeulich@novell.com>
Subject: Re: [timer/ticks related] dom0 hang during boot on large 1TB system
Date: Mon, 21 Dec 2009 15:13:36 -0800 [thread overview]
Message-ID: <4B300120.4040405@goop.org> (raw)
In-Reply-To: <20091221144757.1e0f0930@mantra.us.oracle.com>
On 12/21/2009 02:47 PM, Mukesh Rathor wrote:
> delta comes from:
>
> timer_inetrrupt() in time-xen.c :
> ...
> do {
> get_time_values_from_xen(cpu);
>
> /* Obtain a consistent snapshot of elapsed wallclock cycles. */
> ---> delta = delta_cpu =
> shadow->system_timestamp + get_nsec_offset(shadow);
> ---> delta -= processed_system_time;
> delta_cpu -= per_cpu(processed_system_time, cpu);
>
> /*
> * Obtain a consistent snapshot of stolen/blocked cycles. We
> * can use state_entry_time to detect if we get preempted here.
> */
> do {
> sched_time = runstate->state_entry_time;
> barrier();
> stolen = runstate->time[RUNSTATE_runnable] +
> runstate->time[RUNSTATE_offline] -
> per_cpu(processed_stolen_time, cpu);
> blocked = runstate->time[RUNSTATE_blocked] -
> per_cpu(processed_blocked_time, cpu);
> barrier();
> } while (sched_time != runstate->state_entry_time);
> } while (!time_values_up_to_date(cpu));
> ...
>
>
> At first glance, i don't understand the above algorithm. Since you've
> the same code, I assumed you could also compute delta to be a large
> value when dom0 starts, in which case you may observe dom0 hang.
>
There's some code in the pvops kernel which looks vaguely like that, but
it has nothing to do with timer interrupts. Could you be more specific
about what you're referring to?
J
next prev parent reply other threads:[~2009-12-21 23:13 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 4:36 [timer/ticks related] dom0 hang during boot on large 1TB system Mukesh Rathor
2009-12-18 7:02 ` Keir Fraser
2009-12-18 8:42 ` Jan Beulich
2009-12-18 9:13 ` Keir Fraser
2009-12-18 16:35 ` Dan Magenheimer
2009-12-18 17:15 ` Keir Fraser
2009-12-18 19:28 ` Mukesh Rathor
2009-12-18 19:25 ` Mukesh Rathor
2009-12-19 4:43 ` Mukesh Rathor
2009-12-21 9:55 ` Jan Beulich
2009-12-21 18:20 ` Dan Magenheimer
2009-12-21 19:07 ` Keir Fraser
2009-12-21 19:52 ` Mukesh Rathor
2009-12-21 19:55 ` Jeremy Fitzhardinge
2009-12-21 22:47 ` Mukesh Rathor
2009-12-21 23:13 ` Jeremy Fitzhardinge [this message]
2009-12-21 23:57 ` Dan Magenheimer
2009-12-22 4:31 ` Mukesh Rathor
2009-12-22 8:51 ` Jan Beulich
2009-12-22 10:20 ` Keir Fraser
2009-12-22 11:10 ` Jan Beulich
2009-12-22 13:35 ` Keir Fraser
2009-12-22 14:17 ` Jan Beulich
2009-12-22 14:23 ` Jan Beulich
2009-12-22 15:19 ` Keir Fraser
2009-12-22 15:30 ` Dan Magenheimer
2009-12-22 15:36 ` Jan Beulich
2009-12-22 16:05 ` Dan Magenheimer
2009-12-22 17:02 ` Jan Beulich
2009-12-22 18:03 ` Jeremy Fitzhardinge
2010-01-04 8:23 ` Jan Beulich
2010-01-04 22:07 ` Dan Magenheimer
2010-01-04 22:21 ` Ian Campbell
2010-01-05 8:33 ` Jan Beulich
2010-01-05 15:46 ` Dan Magenheimer
2010-01-05 15:54 ` Ian Campbell
2010-01-05 16:08 ` Jan Beulich
2009-12-22 16:33 ` Jan Beulich
2009-12-22 16:42 ` Jan Beulich
2009-12-22 17:27 ` Dan Magenheimer
2009-12-22 17:48 ` Keir Fraser
2009-12-22 18:42 ` Keir Fraser
2009-12-22 23:00 ` Mukesh Rathor
2009-12-21 10:44 ` Keir Fraser
2009-12-21 23:40 ` Mukesh Rathor
2009-12-22 7:35 ` Keir Fraser
2009-12-21 19:17 ` Steve Ofsthun
2009-12-22 4:00 ` Mukesh Rathor
2009-12-22 4:18 ` Mukesh Rathor
2009-12-22 7:59 ` Keir Fraser
2009-12-22 8:05 ` Keir Fraser
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=4B300120.4040405@goop.org \
--to=jeremy@goop.org \
--cc=JBeulich@novell.com \
--cc=Xen-devel@lists.xensource.com \
--cc=dan.magenheimer@oracle.com \
--cc=keir.fraser@eu.citrix.com \
--cc=kurt.hackel@oracle.com \
--cc=mukesh.rathor@oracle.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.