Re: Rescheduling interrupts

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: S.Çağlar <caglar@...>
Cc: LKML <linux-kernel@...>, Arjan van de Ven <arjan@...>
Date: Tuesday, January 22, 2008 - 6:57 am

* S.Çağlar Onur <caglar@pardus.org.tr> wrote:


hm, would be nice to figure out what causes these IPIs. Could you stick 
something like this into arch/x86/kernel/smp_32.c's 
smp_send_reschedule() function [this is the function that generates the 
IPI]:

static void native_smp_send_reschedule(int cpu)
{
        WARN_ON(cpu_is_offline(cpu));
        send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR);
	if (panic_timeout > 0) {
		panic_timeout--;
		printk("IPI from task %s:%d on CPU#%d:\n", 
			current->comm, current->pid, cpu);
		dump_stack();
	}
}

NOTE: if you run an SMP kernel then first remove these two lines from 
kernel/printk.c:

        if (!oops_in_progress && waitqueue_active(&log_wait))
                wake_up_interruptible(&log_wait);

otherwise you'll get lockups. (the IPI is sent while holding the 
runqueue lock, so the printks will lock up)

then wait for the bad condition to occur on your system and generate a 
stream of ~10 backtraces, via:

	echo 10 > /proc/sys/kernel/panic

you should be getting 10 immediate backtraces - please send them to us. 
The backtraces should show the place that generates the wakeups. [turn 
on CONFIG_FRAME_POINTERS=y to get high quality backtraces.]
 
If you do _not_ get 10 immediate backtraces, then something in the 
system is generating such IPIs outside of the scheduler's control. That 
would suggest some other sort of borkage.

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Rescheduling interrupts, S.Çağlar, (Mon Jan 21, 7:19 pm)
Re: Rescheduling interrupts, Ingo Molnar, (Tue Jan 22, 6:57 am)
Re: Rescheduling interrupts, S.Çağlar, (Tue Jan 22, 8:55 am)
Re: Rescheduling interrupts, Ingo Molnar, (Tue Jan 22, 11:23 am)
Re: Rescheduling interrupts, S.Çağlar, (Tue Jan 22, 11:55 am)
Re: Rescheduling interrupts, Ingo Molnar, (Tue Jan 22, 12:05 pm)
Re: Rescheduling interrupts, Vegard Nossum, (Tue May 13, 2:03 pm)
Re: Rescheduling interrupts, Vegard Nossum, (Tue May 13, 3:04 pm)
Re: Rescheduling interrupts, Matt Mackall, (Tue Jan 22, 1:03 pm)
Re: Rescheduling interrupts, Ingo Molnar, (Tue Jan 22, 3:27 pm)
Re: Rescheduling interrupts, S.Çağlar, (Tue Jan 22, 12:11 pm)
Re: Rescheduling interrupts, S.Çağlar, (Tue Jan 22, 12:22 pm)
Re: Rescheduling interrupts, Ingo Molnar, (Tue Jan 22, 11:37 am)
Re: Rescheduling interrupts, S.Çağlar, (Tue Jan 22, 12:00 pm)