From: Steven Rostedt <rostedt@goodmis.org>
To: Frank Rowand <frank.rowand@am.sony.com>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com
Subject: Re: [PATCH] lost softirq, 2.6.24-rc7
Date: Tue, 15 Jan 2008 19:39:46 -0500 [thread overview]
Message-ID: <20080116003946.GE30532@goodmis.org> (raw)
In-Reply-To: <1200435326.4092.9.camel@bx740>
On Tue, Jan 15, 2008 at 02:15:26PM -0800, Frank Rowand wrote:
> From: Frank Rowand <frank.rowand@am.sony.com>
>
> (Ingo, there is a question for you after the description, just before the
> patch.)
>
> When running an interrupt and network intensive stress test with PREEMPT_RT
> enabled, the target system stopped processing received network packets.
> skbs from received packets were being queued by net_rx_action(), but the
> NET_RX_SOFTIRQ softirq was never running to remove the skbs from the queue.
> Since the target system root file system is NFS mounted, the system is now
> effectively hung.
>
> A pseudocode description of how this state was reached follows.
> Each level of indentation represents a function call from the previous line.
>
>
> ethernet driver irq handler receives packet
> netif_rx()
> queues skb (qlen == 1), raises NET_RX_SOFTIRQ
>
> on return from irq
> ___do_softirq() [ 1 ]
> Reset the pending bitmask
Frank,
This path should not be hit when running with PREEMPT_RT. The softirqs
are now all separate, and are not run in batch in ksoftirqd. In fact,
ksoftirqd should not be running at all with PREEMPT_RT.
-- Steve
> net_rx_action()
> dequeues skb (qlen == 0)
> jiffies incremented, so
> break out of processing
> and raise NET_RX_SOFTIRQ
> (but don't deassert NAPI_STATE_SCHED)
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> ksoftirqd thread runs
> process TIMER_SOFTIRQ
> process RCU_SOFTIRQ
> << ksoftirqd sleeps >>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> ___do_softirq() [ 2 ]
> Reset the pending bitmask
> finds NET_RX_SOFTIRQ raised but already running
> << ___do_softirq() [ 2 ] completes >>
>
> << ___do_softirq() [ 1 ] resumes >>
> the pending bitmask is empty, so NET_RX_SOFTIRQ is lost
>
>
>
next prev parent reply other threads:[~2008-01-16 0:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 22:15 [PATCH] lost softirq, 2.6.24-rc7 Frank Rowand
2008-01-16 0:39 ` Steven Rostedt [this message]
2008-01-16 2:17 ` Rowand, Frank
2008-01-16 2:29 ` Steven Rostedt
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=20080116003946.GE30532@goodmis.org \
--to=rostedt@goodmis.org \
--cc=frank.rowand@am.sony.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox