All of lore.kernel.org
 help / color / mirror / Atom feed
* /proc/interrupts on unprivileged domains
@ 2004-12-15 23:12 Diwaker Gupta
  2004-12-15 23:21 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Diwaker Gupta @ 2004-12-15 23:12 UTC (permalink / raw)
  To: xen-devel

Hi everyone,

I'm trying to understand the values in /proc/interrupts of
unprivileged domains. Specifically, I'm interested in the value of the
timer interrupt. AFAIK, this value reflects the number of times this
domain received the timer interrupt from Xen? Equivalently, the number
of times the timer_interrupt() function (and thus the
do_timer_interrupt) function of the guest OS (linux, in this case)
were called? Please correct me if I'm wrong.

If that is indeed the case, then my real curiosity is this -- what
parameters affect this number? Again, AFAIK Xen gives a timer
interrupt periodically to a currently running domain, and also when a
domain gets scheduled. But how does this indirectly depend on other
parameters -- like the cpu frequency, the system time, the tsc
timestamp value and so on.

TIA
Diwaker

PS: I'm afraid I might not have been very articular in this email, but
I'm happy to give clarifications :)
-- 
Diwaker Gupta
http://resolute.ucsd.edu/diwaker


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /proc/interrupts on unprivileged domains
  2004-12-15 23:12 /proc/interrupts on unprivileged domains Diwaker Gupta
@ 2004-12-15 23:21 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2004-12-15 23:21 UTC (permalink / raw)
  To: Diwaker Gupta; +Cc: xen-devel

> Hi everyone,
> 
> I'm trying to understand the values in /proc/interrupts of
> unprivileged domains. Specifically, I'm interested in the value of the
> timer interrupt. AFAIK, this value reflects the number of times this
> domain received the timer interrupt from Xen? Equivalently, the number
> of times the timer_interrupt() function (and thus the
> do_timer_interrupt) function of the guest OS (linux, in this case)
> were called? Please correct me if I'm wrong.

All correct.

> If that is indeed the case, then my real curiosity is this -- what
> parameters affect this number? Again, AFAIK Xen gives a timer
> interrupt periodically to a currently running domain, and also when a
> domain gets scheduled.

Xen gives a domain an interrupt every 10ms while it runs, and every
time the domain is rescheduled. It also gives an interrupt whenever
the domain's prgrammable one-shot timer expires (used by Linux to set
an appropriate  timeout whenever it blocks).

> But how does this indirectly depend on other
> parameters -- like the cpu frequency, the system time, the tsc
> timestamp value and so on.

It doesn't. :-)

 -- Keir


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-15 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-15 23:12 /proc/interrupts on unprivileged domains Diwaker Gupta
2004-12-15 23:21 ` Keir Fraser

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.