From: Kostya B <bkostya@hotmail.com>
To: <linux-kernel@vger.kernel.org>
Subject: __do_softirq and real-time execution context
Date: Mon, 4 Aug 2008 07:02:53 +0000 [thread overview]
Message-ID: <BAY121-W448F461B7F7E5DA621A237B6780@phx.gbl> (raw)
In-Reply-To: <S1754783AbYHDGgc/20080804063632Z+270@vger.kernel.org>
Hello,
Please consider the following:
__do_softirq could be run from several checkpoints in kernel and even can employ userspace process context.
For example, under heavy network traffic such process could be blocked for a relatively large period until ksoftirqd wakes up and takes control for Rx/Tx.
In the case of regular userspace process the ksoftirqd solves the kernel/user trade-off problem pretty well.
However, in the case of _real-time_ process, such behavior may yield severe outcomes. Real-time (e.g. NTPL FIFO thread) might require short responses and low latency.
The proposal is that __do_softirq should not run its pending tasks in the context of RT process. Just check has_rt_policy() and immediately wake up ksoftirqd.
Regards,
- Kostya
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
next parent reply other threads:[~2008-08-04 7:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <S1754783AbYHDGgc/20080804063632Z+270@vger.kernel.org>
2008-08-04 7:02 ` Kostya B [this message]
2008-08-04 7:41 ` Peter Zijlstra
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=BAY121-W448F461B7F7E5DA621A237B6780@phx.gbl \
--to=bkostya@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®