On Fri, Mar 07, 2008 at 07:25:37PM +0530, Gautham R Shenoy wrote: > On Fri, Mar 07, 2008 at 02:02:20PM +0100, Dmitry Adamushko wrote: > > Hi, > > > > 'watchdog' is of SCHED_FIFO class. The standard load-balancer doesn't > > move RT tasks between cpus anymore and there is a special mechanism in > > scher_rt.c instead (I think, it's .25 material). > > > > So I wonder, whether __migrate_task() is still capable of properly > > moving a RT task to another CPU (e.g. for the case when it's in > > TASK_RUNNING state) without breaking something in the rt migration > > mechanism (or whatever else) that would leave us with a runqueue in > > the 'inconsistent' state... > > (I've taken a quick look at the relevant code so can't confirm it yet) > > > > maybe it'd be faster if somebody could do a quick test now with the > > following line commented out in kernel/softlockup.c :: watchdog() > > > > - sched_setscheduler(current, SCHED_FIFO, ¶m); > > Commenting out that like seems to work. Passed 500 iterations of > cpu-hotplug without any problems. This seems to unearth another problem. After some 850 successful cpu-hotplug iterations I got this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------[ cut here ]------------ BUG: spinlock recursion on CPU#2, kstopmachine/32521 BUG: spinlock lockup on CPU#1, kstopmachine/32517, cc43db80 Pid: 32517, comm: kstopmachine Not tainted 2.6.25-rc3 #44 [] <0>BUG: spinlock lockup on CPU#0, kstopmachine/32520, cc43db80 _raw_spin_lock+0xd5/0xf9 [] <0>BUG: spinlock lockup on CPU#3, kstopmachine/32522, cc43db80 _spin_lock+0x20/0x28 Pid: 32522, comm: kstopmachine Not tainted 2.6.25-rc3 #44 [] ? [] schedule+0xb0/0x5ab [] schedule+0xb0/0x5ab _raw_spin_lock+0xd5/0xf9 [] ? [] _spin_unlock_irqrestore+0x36/0x3c [] ? _spin_lock+0x20/0x28 [] ? complete+0x34/0x3e [] double_lock_balance+0x3a/0x57 [] do_stop+0xd4/0xfe double_lock_balance+0x3a/0x57 [] ? [] do_stop+0x0/0xfe pull_rt_task+0x79/0x164 [] [] kthread+0x3b/0x64 pre_schedule_rt+0x18/0x1a [] ? [] kthread+0x0/0x64 schedule+0x113/0x5ab [] [] ? kernel_thread_helper+0x7/0x10 _write_unlock_irq+0x22/0x26 ======================= [] ? trace_hardirqs_on+0xe9/0x111 [] do_exit+0x5a6/0x5aa [] ? sample_to_timespec+0x16/0x35 [] ? stopmachine+0x0/0x98 [] kernel_thread_helper+0xd/0x10 ======================= BUG: spinlock lockup on CPU#2, kstopmachine/32521, c065eb00 Pid: 32521, comm: kstopmachine Not tainted 2.6.25-rc3 #44 [] _raw_spin_lock+0xd5/0xf9 [] _spin_lock_irqsave+0x29/0x32 [] ? __wake_up+0x15/0x3b [] __wake_up+0x15/0x3b [] wake_up_klogd+0x2e/0x31 [] release_console_sem+0x1b3/0x1bb [] vprintk+0x2a8/0x301 [] ? __lock_acquire+0xaae/0xaf6 [] printk+0x15/0x17 [] spin_bug+0x47/0xbd [] _raw_spin_lock+0x35/0xf9 [] _spin_lock+0x20/0x28 [] ? task_rq_lock+0x36/0x5d [] task_rq_lock+0x36/0x5d [] try_to_wake_up+0x19/0xd1 [] default_wake_function+0xb/0xd [] autoremove_wake_function+0xf/0x33 [] __wake_up_common+0x2f/0x5a [] __wake_up+0x28/0x3b [] wake_up_klogd+0x2e/0x31 [] release_console_sem+0x1b3/0x1bb [] vprintk+0x2a8/0x301 [] ? _read_unlock+0x1d/0x20 [] ? sock_def_readable+0x61/0x69 [] ? unix_dgram_sendmsg+0x399/0x410 [] printk+0x15/0x17 [] warn_on_slowpath+0x2a/0x51 [] ? sample_to_timespec+0x1/0x35 [] ? __lock_acquire+0xaae/0xaf6 [] ? resched_cpu+0x2c/0x6f [] native_smp_send_reschedule+0x22/0x3f [] __resched_task+0x5f/0x63 [] resched_cpu+0x5f/0x6f [] scheduler_tick+0x214/0x28f [] update_process_times+0x3d/0x49 [] tick_sched_timer+0x6e/0xa6 [] ? tick_sched_timer+0x0/0xa6 [] __run_hrtimer+0x39/0x70 [] hrtimer_interrupt+0xeb/0x154 [] smp_apic_timer_interrupt+0x6c/0x80 [] ? stopmachine+0x0/0x98 [] apic_timer_interrupt+0x33/0x38 [] ? stopmachine+0x0/0x98 [] ? sample_to_timespec+0x16/0x35 [] ? stopmachine+0x91/0x98 [] kernel_thread_helper+0x7/0x10 ======================= BUG: spinlock lockup on CPU#0, kstopmachine/32520, c065eb00 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .config attached. > > > > > > > -- > > Best regards, > > Dmitry Adamushko > > -- > Thanks and Regards > gautham -- Thanks and Regards gautham