* better performance during stress
@ 2017-12-04 17:06 Ran Shalit
2017-12-04 19:11 ` Daniel Bristot de Oliveira
0 siblings, 1 reply; 4+ messages in thread
From: Ran Shalit @ 2017-12-04 17:06 UTC (permalink / raw)
To: linux-rt-users
Hello,
I would like to ask if anyone familiar with results showing better
performance during stress.
We expected (and seen) usually degraded performance during stress, so
such result is a surprise.
I use cyclictest and see that both average and maximum have lower
value during stress.
The chip is i7.
Thank you.
Ran
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: better performance during stress
2017-12-04 17:06 better performance during stress Ran Shalit
@ 2017-12-04 19:11 ` Daniel Bristot de Oliveira
2017-12-04 20:29 ` Ran Shalit
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Bristot de Oliveira @ 2017-12-04 19:11 UTC (permalink / raw)
To: Ran Shalit, linux-rt-users
On 12/04/2017 06:06 PM, Ran Shalit wrote:
> Hello,
>
>
> I would like to ask if anyone familiar with results showing better
> performance during stress.
> We expected (and seen) usually degraded performance during stress, so
> such result is a surprise.
> I use cyclictest and see that both average and maximum have lower
> value during stress.
> The chip is i7.
Stress runs a busy loop in user-space, hence the preempt/irqs are
always enabled. Moreover, it avoids letting the processor going to idle,
avoiding "exit from idle" latencies.
Using a stress thread per CPU will probably give you better results than
just letting the system going idle.
You should use rteval as a workload:
https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/rteval
-- Daniel
> Thank you.
> Ran
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: better performance during stress
2017-12-04 19:11 ` Daniel Bristot de Oliveira
@ 2017-12-04 20:29 ` Ran Shalit
2017-12-05 11:16 ` Daniel Bristot de Oliveira
0 siblings, 1 reply; 4+ messages in thread
From: Ran Shalit @ 2017-12-04 20:29 UTC (permalink / raw)
To: Daniel Bristot de Oliveira; +Cc: linux-rt-users
On Mon, Dec 4, 2017 at 9:11 PM, Daniel Bristot de Oliveira
<daniel@bristot.me> wrote:
>
>
> On 12/04/2017 06:06 PM, Ran Shalit wrote:
>> Hello,
>>
>>
>> I would like to ask if anyone familiar with results showing better
>> performance during stress.
>> We expected (and seen) usually degraded performance during stress, so
>> such result is a surprise.
>> I use cyclictest and see that both average and maximum have lower
>> value during stress.
>> The chip is i7.
>
> Stress runs a busy loop in user-space, hence the preempt/irqs are
> always enabled.
I understand the comments that comes later, but not this one above.
Can you please explain?
Thanks
>Moreover, it avoids letting the processor going to idle,
> avoiding "exit from idle" latencies.
>
> Using a stress thread per CPU will probably give you better results than
> just letting the system going idle.
>
> You should use rteval as a workload:
>
> https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/rteval
>
> -- Daniel
>> Thank you.
>> Ran
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: better performance during stress
2017-12-04 20:29 ` Ran Shalit
@ 2017-12-05 11:16 ` Daniel Bristot de Oliveira
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Bristot de Oliveira @ 2017-12-05 11:16 UTC (permalink / raw)
To: Ran Shalit; +Cc: linux-rt-users
On 12/04/2017 09:29 PM, Ran Shalit wrote:
>> Stress runs a busy loop in user-space, hence the preempt/irqs are
>> always enabled.
> I understand the comments that comes later, but not this one above.
> Can you please explain?
>
A "latency" you see on cyclictest is a side effect of either IRQs being
masked, or the preemption being disabled.
However, a process always returns to user-space with both interrupts and
preemption enabled. So, a task in user-space will not cause latencies.
As stress runs a busy loop in user-space... it will not cause latencies.
-- Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-05 11:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 17:06 better performance during stress Ran Shalit
2017-12-04 19:11 ` Daniel Bristot de Oliveira
2017-12-04 20:29 ` Ran Shalit
2017-12-05 11:16 ` Daniel Bristot de Oliveira
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).