From: "Gregory Haskins" <ghaskins@novell.com>
To: "Daniel Walker" <dwalker@dwalker1.mvista.com>,
"Max Krasnyanskiy" <maxk@qualcomm.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
"LKML" <linux-kernel@vger.kernel.org>,
<linux-rt-users@vger.kernel.org>
Subject: Re: CPU hotplug and IRQ affinity with 2.6.24-rt1
Date: Mon, 04 Feb 2008 20:27:07 -0700 [thread overview]
Message-ID: <47A7913B.BA47.005A.0@novell.com> (raw)
In-Reply-To: <20080205025144.GA31774@dwalker1.mvista.com>
Hi Daniel,
See inline...
>>> On Mon, Feb 4, 2008 at 9:51 PM, in message
<20080205025144.GA31774@dwalker1.mvista.com>, Daniel Walker
<dwalker@dwalker1.mvista.com> wrote:
> On Mon, Feb 04, 2008 at 03:35:13PM -0800, Max Krasnyanskiy wrote:
>> This is just an FYI. As part of the "Isolated CPU extensions" thread Daniel
> suggest for me
>> to check out latest RT kernels. So I did or at least tried to and
> immediately spotted a couple
>> of issues.
>>
>> The machine I'm running it on is:
>> HP xw9300, Dual Opteron, NUMA
>>
>> It looks like with -rt kernel IRQ affinity masks are ignored on that
>> system. ie I write 1 to lets say /proc/irq/23/smp_affinity but the
>> interrupts keep coming to CPU1. Vanilla 2.6.24 does not have that issue.
>
> I tried this, and it works according to /proc/interrupts .. Are you
> looking at the interrupt threads affinity?
>
>> Also the first thing I tried was to bring CPU1 off-line. Thats the fastest
>> way to get irqs, soft-irqs, timers, etc of a CPU. But the box hung
>> completely. It also managed to mess up my ext3 filesystem to the point
>> where it required manual fsck (have not see that for a couple of
>> years now). I tried the same thing (ie echo 0 >
>> /sys/devices/cpu/cpu1/online) from the console. It hang again with the
>> message that looked something like:
>> CPU1 is now off-line
>> Thread IRQ-23 is on CPU1 ...
>
> I get the following when I tried it,
>
> BUG: sleeping function called from invalid context bash(5126) at
> kernel/rtmutex.c:638
> in_atomic():1 [00000001], irqs_disabled():1
> Pid: 5126, comm: bash Not tainted 2.6.24-rt1 #1
> [<c010506b>] show_trace_log_lvl+0x1d/0x3a
> [<c01059cd>] show_trace+0x12/0x14
> [<c0106151>] dump_stack+0x6c/0x72
> [<c011d153>] __might_sleep+0xe8/0xef
> [<c03b2326>] __rt_spin_lock+0x24/0x59
> [<c03b2363>] rt_spin_lock+0x8/0xa
> [<c0165b2f>] kfree+0x2c/0x8d
Doh! This is my bug. Ill have to come up with a good way to free that memory under atomic, or do this another way. Stay tuned.
> [<c011eacb>] rq_attach_root+0x67/0xba
> [<c01209ae>] cpu_attach_domain+0x2b6/0x2f7
> [<c0120a12>] detach_destroy_domains+0x23/0x37
> [<c0121368>] update_sched_domains+0x2d/0x40
> [<c013b482>] notifier_call_chain+0x2b/0x55
> [<c013b4d9>] __raw_notifier_call_chain+0x19/0x1e
> [<c01420d3>] _cpu_down+0x84/0x24c
> [<c01422c3>] cpu_down+0x28/0x3a
> [<c029f59e>] store_online+0x27/0x5a
> [<c029c9dc>] sysdev_store+0x20/0x25
> [<c019a695>] sysfs_write_file+0xad/0xde
> [<c0169929>] vfs_write+0x82/0xb8
> [<c0169e2a>] sys_write+0x3d/0x61
> [<c0104072>] sysenter_past_esp+0x5f/0x85
> =======================
> ---------------------------
> | preempt count: 00000001 ]
> | 1-level deep critical section nesting:
> ----------------------------------------
> .. [<c03b25e2>] .... __spin_lock_irqsave+0x14/0x3b
> .....[<c011ea76>] .. ( <= rq_attach_root+0x12/0xba)
>
> Which is clearly a problem ..
>
> (I added linux-rt-users to the CC)
>
> Daniel
> -
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-02-05 3:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 23:35 CPU hotplug and IRQ affinity with 2.6.24-rt1 Max Krasnyanskiy
2008-02-05 2:51 ` Daniel Walker
2008-02-05 3:27 ` Gregory Haskins [this message]
2008-02-05 4:21 ` Max Krasnyansky
2008-02-05 5:02 ` Gregory Haskins
2008-02-05 16:59 ` Daniel Walker
2008-02-05 17:13 ` Gregory Haskins
2008-02-05 18:25 ` Gregory Haskins
2008-02-05 21:58 ` Daniel Walker
2008-02-05 22:03 ` Gregory Haskins
2008-02-05 14:00 ` Gregory Haskins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47A7913B.BA47.005A.0@novell.com \
--to=ghaskins@novell.com \
--cc=dwalker@dwalker1.mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=maxk@qualcomm.com \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.