From: "Andrew A." <aathan-linux-kernel-1542@cloakmail.com>
To: "Alan Cox" <alan@lxorguk.ukuu.org.uk>,
"Andrew" <aathan-linux-kernel-1542@cloakmail.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
<roland@topspin.com>, "Andrew Morton" <akpm@osdl.org>
Subject: RE: Consistent lock up 2.6.10-rc1-bk7 (mutex/SCHED_RR bug?)
Date: Fri, 29 Oct 2004 12:43:11 -0400 [thread overview]
Message-ID: <OMEGLKPBDPDHAGCIBHHJGEMIFCAA.aathan-linux-kernel-1542@cloakmail.com> (raw)
In-Reply-To: <1099062404.13098.59.camel@localhost.localdomain>
Alan:
Thanks for your note. The application in question is not "hard RT" and I am using SCHED_RR to improve latency, rather than
guarantee a particular latency number. Also, since I am using the ACE framework, and don't have the time to detangle its
protability preprocesor macros to add support for a different futex/mutex mechanism, I'm inclined to use stock code. I did dig up
Inaky's work which is a fusyn mapping to existing futex calls--I might try that.
However, would any of that really solve this problem? That is, do lower priority non-RR tasks and/or kernel signal delivery benefit
from additional scheduled time under those patches?
I suspect what is happening here is that my process is essentially in a
while(1)
{
lock();
unlock();
}
loop from two or mode SCHED_RR threads running at nice -15. They seem to be unkillable.
However, should we really dismiss the possibility that the problem could be that these threads are in some kind of deadlock that
involves the scheduler?
A.
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Alan Cox
Sent: Friday, October 29, 2004 11:07 AM
To: Andrew
Cc: Linux Kernel Mailing List; roland@topspin.com; Andrew Morton
Subject: RE: Consistent lock up 2.6.10-rc1-bk7 (mutex/SCHED_RR bug?)
On Gwe, 2004-10-29 at 15:26, Andrew wrote:
> Although it appears I need to fix an applicaiton bug, is it normal/desirable for an application calling system mutex facilities to
> starve the system so completely, and/or become "unkillable"?
If it is SCHED_RR then it may get to hog the processor but it should not
be doing worse than that and should be killable by something higher
priority.
You are right to suspect futexes don't deal with hard real time but the
failure you see isnt the intended failure case.
[Inaky has posted some drafts of a near futex efficient lock system that
ought to work for real time use btw]
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2004-10-29 16:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OMEGLKPBDPDHAGCIBHHJMEIDFCAA.aathan-linux-kernel-1542@cloakmail.com>
2004-10-29 14:26 ` Consistent lock up 2.6.10-rc1-bk7 (mutex/SCHED_RR bug?) Andrew
2004-10-29 15:07 ` Alan Cox
2004-10-29 16:43 ` Andrew A. [this message]
2004-10-29 17:06 ` Chris Wright
2004-10-29 17:44 ` Andrew A.
2004-10-29 20:32 ` Chris Wright
2004-10-29 15:36 ` Andrew A.
2004-10-29 15:52 ` Andrew A.
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=OMEGLKPBDPDHAGCIBHHJGEMIFCAA.aathan-linux-kernel-1542@cloakmail.com \
--to=aathan-linux-kernel-1542@cloakmail.com \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@topspin.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