Re: Regarding do_irq code

2010-09-16 Thread Sri Ram Vemulpali
I know what rcu is and the synchronization mechanism. I am trying to understand struct rcu_dynticks and what this "rcu_exit_nohz" does in irq_enter context. Is this something related hrtimers. please clarify, thanks. Regards, Sri Thanks, Sri. On Thu, Sep 16, 2010 at 7:56 PM, Dave Hylands wrote:

Re: Regarding do_irq code

2010-09-16 Thread Dave Hylands
Hi Sri, On Thu, Sep 16, 2010 at 2:29 PM, Sri Ram Vemulpali wrote: > Hi Guys, >       I got stuck at a function to understand which is called in irq_enter > context. >       This function is rcu_exit_nohz(); >       I know rcu is read-copy-update locking mechanism to provide light > weight locking

Regarding do_irq code

2010-09-16 Thread Sri Ram Vemulpali
Hi Guys, I got stuck at a function to understand which is called in irq_enter context. This function is rcu_exit_nohz(); I know rcu is read-copy-update locking mechanism to provide light weight locking to synchronize readers and writers. So now the question is what t

Re: regarding do_irq

2010-09-10 Thread Mulyadi Santosa
Hi... On Fri, Sep 10, 2010 at 21:58, mohit verma wrote: > hi guys, >  this may be out of the topic but it stuck me at this stage so i am asking. perhaps better if you start new thread, with subject like " blah blah (was: blah blah)" :) >  i read that interrupt handler names start from do_X 

Re: regarding do_irq

2010-09-10 Thread mohit verma
hi guys, this may be out of the topic but it stuck me at this stage so i am asking. i read that interrupt handler names start from do_X but what about __do _X. i mean, what do they show?

Re: regarding do_irq

2010-09-09 Thread John Mahoney
rupted task was switched > out and scheduler recognizes a softirq was pending. I know that ksoftirqd is > responsible to execute all pending softirqs , who will invoke this, and for > every periodic time ksoftirqd invokes and executes softirq. Can you please > explain. Thanks. Upon

Re: regarding do_irq

2010-09-09 Thread Dave Hylands
Hi Sri, Replying to the list this time... On Thu, Sep 9, 2010 at 9:58 PM, Sri Ram Vemulpali wrote: > Hi Dave, > Thanks for explanation, but is there any delay between interrupt handler > and softirq execution. Suppose say INT7 triggered and its handler got > executed. Now this handler raised th

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
Hi Dave, Thanks for explanation, but is there any delay between interrupt handler and softirq execution. Suppose say INT7 triggered and its handler got executed. Now this handler raised the softirq and finished its interrupt context. Since interrupts preempts the current running task, after finis

Re: regarding do_irq

2010-09-09 Thread Dave Hylands
Hi Sri, Replying to the list... On Thu, Sep 9, 2010 at 5:08 PM, Sri Ram Vemulpali wrote: > Hi, > Can any one explain, when interrupt handler schedules softirq, for bottom > half work, when is that softirq is executed. Is it immediately after > interrupt handler context or after some time later wh

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
Hi, Can any one explain, when interrupt handler schedules softirq, for bottom half work, when is that softirq is executed. Is it immediately after interrupt handler context or after some time later when scheduler was invoked. I am trying to understand execution context of BHs. I know that tasklet

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
thanks to all On Thu, Sep 9, 2010 at 8:16 AM, Bond wrote: > > > On Thu, Sep 9, 2010 at 1:10 PM, Dave Hylands wrote: > >> Well, check your CPU usage. It's probably less than 100%. Let's say >> it's at 46%. That means that the system is spending 54% of its time >> "doing nothing" or being idle. >

Re: regarding do_irq

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 1:10 PM, Dave Hylands wrote: > Well, check your CPU usage. It's probably less than 100%. Let's say > it's at 46%. That means that the system is spending 54% of its time > "doing nothing" or being idle. > > From a macroscopic level, it looks like the CPU is busy. But from a

Re: regarding do_irq

2010-09-09 Thread Dave Hylands
Hi, On Thu, Sep 9, 2010 at 12:00 AM, Bond wrote: > > > On Thu, Sep 9, 2010 at 12:04 PM, Dave Hylands wrote: >> >> The kernel has the notion of "going idle". This happens whenever there >> is nothing to do. > > Hi Dave from your message I want to ask going idle suppose I am having a > Linux box o

Re: regarding do_irq

2010-09-09 Thread Mulyadi Santosa
On Thu, Sep 9, 2010 at 14:00, Bond wrote: > Hi Dave from your message I want to ask going idle suppose I am having a > Linux box on my system. > Then display manager,polling and other things are constantly happening which > are being handled by the CPU so when does > the kernel goes idle I am not

Re: regarding do_irq

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 12:04 PM, Dave Hylands wrote: > > The kernel has the notion of "going idle". This happens whenever there > is nothing to do. Hi Dave from your message I want to ask going idle suppose I am having a Linux box on my system. Then display manager,polling and other things are c

Re: regarding do_irq

2010-09-08 Thread Dave Hylands
Hi Sri, On Wed, Sep 8, 2010 at 9:14 AM, Sri Ram Vemulpali wrote: > Hi All, >   Can anyone help me to understand what "exit_idle()" function does. The kernel has the notion of "going idle". This happens whenever there is nothing to do. The kernel will enter idle mode, and when some interrupt occu

do_IRQ

2010-09-08 Thread Sri Ram Vemulpali
Can anyone please explain what irq_enter function does which is called from do_irq. Thanks. Sri.

regarding do_irq

2010-09-08 Thread Sri Ram Vemulpali
Hi All, Can anyone help me to understand what "exit_idle()" function does. I am trying to understand the whole process of do_IRQ. Can anyone point to how APIC protocol works and brief view of process before do_IRQ. Thanks, Sri.