From: Andrea Arcangeli <andrea@suse.de>
To: Mike Kravetz <kravetz@us.ibm.com>
Cc: Ian Collinson <icollinson@imerge.co.uk>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: realtime scheduling problems with 2.4 linux kernel >= 2.4.10
Date: Fri, 31 May 2002 21:41:25 +0200 [thread overview]
Message-ID: <20020531194125.GK1172@dualathlon.random> (raw)
In-Reply-To: <C0D45ABB3F45D5118BBC00508BC292DB09C992@imgserv04> <20020531112847.B1529@w-mikek2.des.beaverton.ibm.com>
On Fri, May 31, 2002 at 11:28:47AM -0700, Mike Kravetz wrote:
> On Thu, May 30, 2002 at 06:54:46PM +0100, Ian Collinson wrote:
> >
> > We're having problems with realtime scheduling (SCHED_RR and
> > SCHED_FIFO), on 2.4 kernels >= 2.4.10 (built for i386, no SMP). We have an
> > app that uses real-time scheduled threads. To aid debugging, in case of
> > realtime threads spinning and locking the system, we always keep a bash
> > running on a (text) console, at SCHED_RR, priority 99 (a higher priority
> > than any threads in our app). We test that this is a valid approach by
> > running a lower priority realtime app, on another console, that sits in an
> > infinite busy loop. This has always worked, and we've been able to
> > successfully use the high-priority bash to run gdb, and so on. This is also
> > what the man page for sched_setscheduler suggests, to avoid total system
> > lock up.
>
> <snip>
>
> > Then I switch back to the first console, with its priority 99 bash.
> > I am able to type away for 10 seconds, until the priority 50 process starts,
> > at which point the shell locks up. I can get the same effect on one
> > console with:
> >
> > > ( sleep 10; realtime -rr 50 eat_cpu ) & realtime -rr 99 bash
> >
> > Previously, the high-priority shell would never lock up. Now it
> > does.
>
> This works fine for me on 2.4.17 with a SERIAL console. Could this
> be related to some differences (new features) in the VGA console?
> I am totally ignorant of how the consoles work.
I tried it under uml on 2.4.19pre9aa2 and it worked fine there too.
Andrea
next prev parent reply other threads:[~2002-05-31 19:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-30 17:54 realtime scheduling problems with 2.4 linux kernel >= 2.4.10 Ian Collinson
2002-05-31 18:28 ` Mike Kravetz
2002-05-31 19:41 ` Andrea Arcangeli [this message]
2002-06-01 17:05 ` Andi Kleen
2002-06-03 16:03 ` Mike Kravetz
2002-06-03 20:08 ` Andrew Morton
2002-06-03 20:13 ` Robert Love
2002-06-03 21:09 ` Andrew Morton
2002-06-03 21:07 ` Andrea Arcangeli
2002-06-03 20:12 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2002-06-05 11:53 Ian Collinson
2002-06-05 12:17 ` Andi Kleen
2002-06-05 18:05 ` george anzinger
2002-06-05 18:13 ` Robert Love
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=20020531194125.GK1172@dualathlon.random \
--to=andrea@suse.de \
--cc=icollinson@imerge.co.uk \
--cc=kravetz@us.ibm.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