From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Ferenc Fejes <ferenc.fejes@ericsson.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "marton12050@gmail.com" <marton12050@gmail.com>,
"peti.antal99@gmail.com" <peti.antal99@gmail.com>
Subject: Re: igc: missing HW timestamps at TX
Date: Thu, 11 Aug 2022 10:33:43 -0300 [thread overview]
Message-ID: <87tu6i6h1k.fsf@intel.com> (raw)
In-Reply-To: <d5571f0ea205e26bced51220044781131296aaac.camel@ericsson.com>
Hi Ferenc,
Ferenc Fejes <ferenc.fejes@ericsson.com> writes:
> Hi Vinicius!
>
> On Tue, 2022-07-19 at 09:40 +0200, Fejes Ferenc wrote:
>> Hi Vinicius!
>>
>> On Mon, 2022-07-18 at 11:46 -0300, Vinicius Costa Gomes wrote:
>> > Hi Ferenc,
>> >
>> > Ferenc Fejes <ferenc.fejes@ericsson.com> writes:
>> >
>> > > (Ctrl+Enter'd by mistake)
>> > >
>> > > My question here: is there anything I can quickly try to avoid
>> > > that
>> > > behavior? Even when I send only a few (like 10) packets but on
>> > > fast
>> > > rate (5us between packets) I get missing TX HW timestamps. The
>> > > receive
>> > > side looks much more roboust, I cannot noticed missing HW
>> > > timestamps
>> > > there.
>> >
>> > There's a limitation in the i225/i226 in the number of "in flight"
>> > TX
>> > timestamps they are able to handle. The hardware has 4 sets of
>> > registers
>> > to handle timestamps.
>> >
>> > There's an aditional issue that the driver as it is right now, only
>> > uses
>> > one set of those registers.
>> >
>> > I have one only briefly tested series that enables the driver to
>> > use
>> > the
>> > full set of TX timestamp registers. Another reason that it was not
>> > proposed yet is that I still have to benchmark it and see what is
>> > the
>> > performance impact.
>>
>> Thank you for the quick reply! I'm glad you already have this series
>> right off the bat. I'll be back when we done with a quick testing,
>> hopefully sooner than later.
>
> Sorry for the late reply. I had time for a few tests, with the patch.
> For my tests it looks much better. I send a packet in every 500us with
> isochron-send, TX SW and HW timestamping enabled and for 10000 packets
> I see zero lost timestamp. Even for 100000 packets only a few dropped
> HW timestamps visible.
>
> With iperf TCP test line-rate achiveable just like without the patch.
>
That's very good to know.
>> >
>> > If you are feeling adventurous and feel like helping test it, here
>> > is
>> > the link:
>> >
>> > https%3A%2F%2Fgithub.com%2Fvcgomes%2Fnet-next%2Ftree%2Figc-
>> > multiple-tstamp-timers-lock-new
>> >
>
> Is there any test in partucular you interested in? My testbed is
> configured so I can do some.
>
The only thing I am worried about is, if in the "dropped" HW timestamps
case, if all the timestamp slots are indeed full, or if there's any bug
and we missed one timestamp.
Can you verify that for for every dropped HW timestamp in your
application, can you see that 'tx_hwtstamp_skipped' (from 'ethtool -S')
increases everytime the drop happens? Seeing if 'tx_hwtstamp_timeouts'
also increases would be useful as well.
If for every drop there's one 'tx_hwtstamp_skipped' increment, then it
means that the driver is doing its best, and the workload is requesting
more timestamps than the system is able to handle.
If only 'tx_hwtstamp_timeouts' increases then it's possible that there
could be a bug hiding still.
>> >
>> > Cheers,
>>
>> Best,
>> Ferenc
>
> Best,
> Ferenc
>
Cheers,
--
Vinicius
next prev parent reply other threads:[~2022-08-11 13:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-17 14:42 igc: missing HW timestamps at TX Ferenc Fejes
2022-07-17 14:46 ` Ferenc Fejes
2022-07-18 14:46 ` Vinicius Costa Gomes
2022-07-19 7:40 ` Ferenc Fejes
2022-08-11 8:54 ` Ferenc Fejes
2022-08-11 13:33 ` Vinicius Costa Gomes [this message]
2022-08-12 14:13 ` Ferenc Fejes
2022-08-12 20:16 ` Vladimir Oltean
2022-08-15 6:47 ` Ferenc Fejes
2022-08-15 22:04 ` Vinicius Costa Gomes
2022-08-16 9:33 ` Vladimir Oltean
2022-08-17 7:44 ` Ferenc Fejes
2022-08-15 21:39 ` Vinicius Costa Gomes
2022-08-15 22:26 ` Vladimir Oltean
2022-08-15 23:07 ` Vinicius Costa Gomes
2022-08-16 8:51 ` Kurt Kanzenbach
2022-08-16 20:45 ` Vinicius Costa Gomes
2022-08-17 6:10 ` Kurt Kanzenbach
2022-08-17 19:24 ` Vinicius Costa Gomes
2022-08-16 9:10 ` Vladimir Oltean
2022-08-16 18:11 ` Vinicius Costa Gomes
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=87tu6i6h1k.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=ferenc.fejes@ericsson.com \
--cc=marton12050@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=peti.antal99@gmail.com \
/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).