From: Grygorii Strashko <grygorii.strashko@ti.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Mugunthan V N <mugunthanvnm@ti.com>,
linux-omap@vger.kernel.org, netdev@vger.kernel.org,
kernel@pengutronix.de
Subject: Re: [PATCH 0/2] net: davinci_cpdma: reduce latency on -rt
Date: Thu, 28 Jul 2016 12:34:19 +0300 [thread overview]
Message-ID: <fc2a3300-4f6b-aff7-995d-77b37bdaab65@ti.com> (raw)
In-Reply-To: <20160727143804.GC5629@pengutronix.de>
On 07/27/2016 05:38 PM, Uwe Kleine-König wrote:
> Hello,
>
> On Wed, Jul 27, 2016 at 05:11:54PM +0300, Grygorii Strashko wrote:
>> On 07/27/2016 10:03 AM, Uwe Kleine-König wrote:
>>> On Tue, Jul 26, 2016 at 05:36:49PM +0300, Grygorii Strashko wrote:
>>>> On 07/26/2016 03:02 PM, Uwe Kleine-König wrote:
>>>>> Hello,
>>>>>
>>>>> these patches are based on next-20160726. I didn't check yet how latency
>>>>> improves by using these patches, but even if the improvment is small,
>>>>> it's still a good idea to have them.
>>>>
>>>> Sry, but how this will affect on -RT? This is not a raw locks, so
>>>> they will be converted to rt-mutexes which are sleepable.
>>>> Or I've missed smth?
>>>
>>> They are still locks after all. On -rt I saw for the relevant
>>> application:
>>>
>>> send package |
>>> take lock |
>>> write pckt to hw |
>>> | rcv irq
>>> | take lock
>>> | schedule
>>> drop lock |
>>> schedule |
>>> | get pckt from hw
>>> | drop lock
>>>
>>> So reducing the time a lock is taken reduces the chances that the lock
>>> is contended for another thread which results in extra context switches.
>>>
>> Thanks a lot for explanation. So, this is not exactly rt-latency reduction,
>> but it might improve net performance on -RT. correct?
>
> Well, it's not really rt related, but if you hit a locked lock on rt it
> hurts more than on !rt. And this results in increased latency.
>
Thanks. I've just wanted to have clear understanding of the [possible] issue.
And I'd be appreciated if you could share and measurement results if you have.
--
regards,
-grygorii
next prev parent reply other threads:[~2016-07-28 9:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 12:02 [PATCH 0/2] net: davinci_cpdma: reduce latency on -rt Uwe Kleine-König
2016-07-26 12:02 ` [PATCH 1/2] net: davinci_cpdma: reduce time holding ctlr->lock in cpdma_control_set Uwe Kleine-König
2016-08-04 15:22 ` Grygorii Strashko
2016-08-09 8:27 ` Mugunthan V N
2016-07-26 12:02 ` [PATCH 2/2] net: davinci_cpdma: reduce time holding chan->lock in cpdma_chan_submit Uwe Kleine-König
2016-07-26 14:25 ` Grygorii Strashko
2016-07-27 7:12 ` Uwe Kleine-König
2016-07-27 14:08 ` Grygorii Strashko
2016-07-27 18:11 ` Ivan Khoronzhuk
2016-07-26 14:36 ` [PATCH 0/2] net: davinci_cpdma: reduce latency on -rt Grygorii Strashko
2016-07-27 7:03 ` Uwe Kleine-König
2016-07-27 14:11 ` Grygorii Strashko
2016-07-27 14:38 ` Uwe Kleine-König
2016-07-28 9:34 ` Grygorii Strashko [this message]
2016-07-28 12:12 ` Uwe Kleine-König
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=fc2a3300-4f6b-aff7-995d-77b37bdaab65@ti.com \
--to=grygorii.strashko@ti.com \
--cc=kernel@pengutronix.de \
--cc=linux-omap@vger.kernel.org \
--cc=mugunthanvnm@ti.com \
--cc=netdev@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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