From: Stanislav Meduna <stano@meduna.org>
To: "linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>
Subject: posixcputmr and ksoftirqd priorities
Date: Tue, 30 Oct 2012 09:05:22 +0100 [thread overview]
Message-ID: <508F8A42.6040002@meduna.org> (raw)
Hi,
am I right in the suspicion that the events delivered
by timer_create and timerfd_create are routed via ksoftirqd
before being delivered to the application? Is there any
special reason for this?
In any case in the scenario
- posixcputmr prio 99
- thread A prio 45 with a timerfd loop or timer sigwait loop
- thread B prio 25
- ksoftirqd prio 1
the thread A does not see the timer events until thread
B is done, which is a classical priority inversion case.
Boosting the priority of ksoftirqd to 40 solves it.
Yes I have found the Steven's posting with "You can change
the priority of ksoftirqd. In fact, we made the default
for ksoftirqd poor, to force you to change it." Of course
after pulling hair for a few hours and finally identifying
the culprit myself.
Would it be possible to somehow smuggle this important piece
of information into timer_create and timerfd_create manpages?
Otherwise everyone trying to use timers having at least
one thread with lower prio than the thread using them will
fall into it sooner or later. An application programmer
should not have to have an intimate knowledge on how
the events are routed between the kernel tasks...
Regards
--
Stano
reply other threads:[~2012-10-30 8:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=508F8A42.6040002@meduna.org \
--to=stano@meduna.org \
--cc=linux-rt-users@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 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.