linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression on rt kernel while using POSIX timers
@ 2017-02-08 18:41 Patel, Vedang
  2017-02-10 19:07 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 20+ messages in thread
From: Patel, Vedang @ 2017-02-08 18:41 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org; +Cc: Hart, Darren

Hi, 

I am trying to reproduce results in the Expected Results section on htt
ps://rt.wiki.kernel.org/index.php/Cyclictest

The results for the POSIX timers were not as I expected. The latency
for real-time kernel (v4.9.4-rt2) was worse compared to the mainline
kernel (v4.9.4). In almost all the cases, the latency is almost doubled
 with the max value reaching about 10 times when performing the tests
under load.

I was using a system with Intel® Atom processor C2758 and running the
following commands with no load and 100% load:
* cyclictest -t1 -p 80 -i 10000 -l 10000
* cyclictest -t1 -p 80 -i 500 -l 100000

I was using hackbench for generating the loads as follows:

./hackbench -p -s 100 -l 10000 -f 100 -P &

Does anyone have know of any known bugs which might be causing this
regression? 

Thanks,
Vedang Patel
Software Engineer
Intel Corporation

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Regression on rt kernel while using POSIX timers
@ 2017-02-13 20:32 Ran Shalit
  0 siblings, 0 replies; 20+ messages in thread
From: Ran Shalit @ 2017-02-13 20:32 UTC (permalink / raw)
  To: Patel, Vedang
  Cc: bigeasy@linutronix.de, linux-rt-users@vger.kernel.org,
	Hart, Darren

On Mon, Feb 13, 2017 at 8:48 PM, Patel, Vedang <vedang.patel@intel.com> wrote:
> On Fri, 2017-02-10 at 20:07 +0100, Sebastian Andrzej Siewior wrote:
>> On 2017-02-08 18:41:25 [+0000], Patel, Vedang wrote:
>> >
>> > Hi,
>> Hi,
>>
>> >
>> > The results for the POSIX timers were not as I expected. The
>> > latency
>> > for real-time kernel (v4.9.4-rt2) was worse compared to the
>> > mainline
>> > kernel (v4.9.4). In almost all the cases, the latency is almost
>> > doubled
>> >  with the max value reaching about 10 times when performing the
>> > tests
>> > under load.
>> Is it also the case if you boost the priority of ktimersoftd/X
>> threads?
>> For clock_nanosleep, the wake-ups happen directly from hard-timer
>> interrupt. For the posix-timer we have to delay those to the
>> ktimersoftd
>> thread which runs usually RT prio 1.
>>
> I am getting very similar results even if I change the priority of
> ktimersoftd to 99. Are there any recent rt patches which might have
> changed the behaviour of POSIX timers?
>
> Also, are POSIX timers really suited for "real-time" applications?I
> believe a similar question was raised by Ran Shalit a few days back:
> http://www.spinics.net/lists/linux-rt-users/msg16249.html
>

Right.
I did  testing of recent kernels 4.1.15,  with Atom , and the
non-posix timers jitter was obviously better compared to non-posix
(42usec vs 180us),
On trying 4.4.x kernel I seen very strange behavior for both timers
(maybe I applied the patch wrongly or needed to disable some features
in config?) ,

So I decided eventually to use the 4.1.15 with non-posix timers only
with our Atom board. I hope that's a good decision.


> Thanks,
> Vedang
>> >
>> > Thanks,
>> > Vedang Patel
>> > Software Engineer
>> > Intel Corporation
>> Sebastian

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-03-20 22:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 18:41 Regression on rt kernel while using POSIX timers Patel, Vedang
2017-02-10 19:07 ` Sebastian Andrzej Siewior
2017-02-13 18:48   ` Patel, Vedang
2017-02-15 16:54     ` bigeasy
2017-02-16  2:05       ` Julia Cartwright
2017-02-16  2:34         ` Patel, Vedang
2017-02-22  1:43           ` Patel, Vedang
2017-03-01 15:22             ` bigeasy
2017-03-01 19:03               ` Tracy Smith
2017-03-02  3:23                 ` Patel, Vedang
2017-03-03 19:41                   ` Julia Cartwright
2017-03-03 20:32                     ` Julia Cartwright
2017-03-03 21:09                     ` Thomas Gleixner
2017-03-03 23:36                       ` Patel, Vedang
2017-03-06 11:29                         ` Thomas Gleixner
2017-03-07  2:01                           ` Patel, Vedang
2017-03-07 17:03                             ` Thomas Gleixner
2017-03-20 22:54                               ` Patel, Vedang
2017-03-03 16:51                 ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2017-02-13 20:32 Ran Shalit

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).