From: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
To: Claudio Scordino <claudio@evidence.eu.com>
Cc: linux-rt-users@vger.kernel.org,
Alessandro Biasci <a.biasci@evidence.eu.com>
Subject: Re: imx25: maximum latency increased on some tests
Date: Thu, 9 Aug 2012 09:21:43 -0700 [thread overview]
Message-ID: <F0013F69-60D4-4B6F-88DC-AF6ECB851A40@thebigcorporation.com> (raw)
In-Reply-To: <5023901E.5090009@evidence.eu.com>
On Aug 9, 2012, at 3:25 AM, Claudio Scordino <claudio@evidence.eu.com> wrote:
>
>
> PI_STRESS:
>
> Finally, the pi_stress (priority-inheritance code paths for POSIX mutexes) sometimes fails with preempt_rt on the SCHED_FIFO policy (this behavior did not occurred without preempt_rt, even if it is still possible):
>
> $ pi_stress --duration 100 --groups=2
> Starting PI Stress Test
> Number of thread groups: 2
> Duration of test run: 100 seconds
> Number of inversions per group: unlimited
> Test threads using scheduler policy: SCHED_FIFO
> Admin thread priority: 4
> 2 groups of 3 threads will be created
> High thread priority: 3
> Med thread priority: 2
> Low thread priority: 1
> Current Inversions: 2531
> ERROR: WATCHDOG triggered: group 0 is deadlocked!
> ERROR: reporter stopping due to watchdog event
> Stopping test
> Terminated
This possibly related to the test implementation.
In the past there were similar issues in LTP, where a supervisor thread is polling for a signal our completion of another thread that never arrives because the supervisor thread is hogging the CPU (FIFO thread ) and either the other threads never run, or the signal is not being delivered.
In RT it is correct behavior that a CPU-bound thread should preempt other threads and signals.
IIRC there are several ways to correct this, by also raising the prio of softirqd, or by fixing the implementation of the test.
If you could provide a link to the test source, this would be helpful.
First and foremost however, do follow Carsten's recommendation about setting the prio appropriately high.
Thanks
Sven
prev parent reply other threads:[~2012-08-09 16:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 10:25 imx25: maximum latency increased on some tests Claudio Scordino
2012-08-09 10:46 ` Carsten Emde
2012-08-09 16:21 ` Sven-Thorsten Dietrich [this message]
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=F0013F69-60D4-4B6F-88DC-AF6ECB851A40@thebigcorporation.com \
--to=sven@thebigcorporation.com \
--cc=a.biasci@evidence.eu.com \
--cc=claudio@evidence.eu.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).