RE: Debugging kernel semaphore contention and priority inversion

2005-08-18 Thread Mike Galbraith
At 08:50 AM 8/18/2005 -0600, Davda, Bhavesh P \(Bhavesh\) wrote: > Sounds like there must be another player who is RT prio + spinning. Very good! Yes, I left out that piece of detail in my original posting. There is a real low priority (4) SCHED_FIFO (hence still higher than any SCHED_OTHER) ta

RE: Debugging kernel semaphore contention and priority inversion

2005-08-18 Thread Davda, Bhavesh P \(Bhavesh\)
> -Original Message- > From: Keith Mannthey [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 18, 2005 11:40 AM > On 8/17/05, Davda, Bhavesh P (Bhavesh) <[EMAIL PROTECTED]> wrote: > > > From: Keith Mannthey [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, August 17, 2005 5:33 PM > > > >

Re: Debugging kernel semaphore contention and priority inversion

2005-08-18 Thread Keith Mannthey
On 8/17/05, Davda, Bhavesh P (Bhavesh) <[EMAIL PROTECTED]> wrote: > > From: Keith Mannthey [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 17, 2005 5:33 PM > > > > On 8/17/05, Davda, Bhavesh P (Bhavesh) <[EMAIL PROTECTED]> wrote: > > > Is there a way to know which task has a particular (struc

RE: Debugging kernel semaphore contention and priority inversion

2005-08-18 Thread Steven Rostedt
On Thu, 2005-08-18 at 08:50 -0600, Davda, Bhavesh P (Bhavesh) wrote: > > >This is a headless system. > > > > You could try netconsole. > > Haven't heard of it before. Will look into it. But I doubt it will help > pinpoint the semaphore holder, if all I can do is sysrq stuff. Or does this system

Re: Debugging kernel semaphore contention and priority inversion

2005-08-18 Thread Hal Wigoda
will netconsole install on mandriva? On Aug 18, 2005, at 9:50 AM, Davda, Bhavesh P ((Bhavesh)) wrote: -Original Message- From: Mike Galbraith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 11:10 PM At 09:43 PM 8/17/2005 -0600, you wrote: Have you tried sysrq t? See the D

RE: Debugging kernel semaphore contention and priority inversion

2005-08-18 Thread Davda, Bhavesh P \(Bhavesh\)
> -Original Message- > From: Mike Galbraith [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 17, 2005 11:10 PM > At 09:43 PM 8/17/2005 -0600, you wrote: > > > > > > Have you tried sysrq t? See the Documentation/sysrq.txt file. > > > >This is a headless system. > > You could try netcon

RE: Debugging kernel semaphore contention and priority inversion

2005-08-17 Thread Davda, Bhavesh P \(Bhavesh\)
> From: Keith Mannthey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 17, 2005 5:33 PM > > On 8/17/05, Davda, Bhavesh P (Bhavesh) <[EMAIL PROTECTED]> wrote: > > Is there a way to know which task has a particular (struct > semaphore > > *) down()ed, leading to another task's down() blocking

Re: Debugging kernel semaphore contention and priority inversion

2005-08-17 Thread Keith Mannthey
On 8/17/05, Davda, Bhavesh P (Bhavesh) <[EMAIL PROTECTED]> wrote: > Is there a way to know which task has a particular (struct semaphore *) > down()ed, leading to another task's down() blocking on it? I would add a field to struct semaphore that tracks the current process. In your various up and d

Debugging kernel semaphore contention and priority inversion

2005-08-17 Thread Davda, Bhavesh P \(Bhavesh\)
Is there a way to know which task has a particular (struct semaphore *) down()ed, leading to another task's down() blocking on it? I'm trying to debug a priority inversion caused by potentially a real low priority SCHED_OTHER task (potentially a kernel thread like kjournald) holding an inode->i_se