Linux USB
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.com>
To: "Maciej Żenczykowski" <maze@google.com>,
	"Hiago De Franco" <hiagofranco@gmail.com>
Cc: Francesco Dolcini <francesco@dolcini.it>,
	davem@davemloft.net, edumazet@google.com,
	hiago.franco@toradex.com, kuba@kernel.org,
	linux-usb@vger.kernel.org, pabeni@redhat.com
Subject: Re: Question regarding CDC NCM and VNC performance issue
Date: Tue, 19 Dec 2023 09:45:20 +0100	[thread overview]
Message-ID: <0603f052-df86-4803-b7f3-4a263d7ebcf2@suse.com> (raw)
In-Reply-To: <CANP3RGf6OEA1kksEPSKd1A4U3P-GEp1ySnhi_X1qB_9KeQfMYw@mail.gmail.com>



On 19.12.23 00:00, Maciej Żenczykowski wrote:
> On Mon, Dec 18, 2023 at 1:00 PM Hiago De Franco <hiagofranco@gmail.com> wrote:

Hi,

>> Everything basically worked, without any freezing/slowness (please note
>> that during the test I wasn't using the VNC client, only the arping). I
>> also did it using screen with ssh/serial console disconnected.
>>
>> Although I passed -U flag to arping, I still get replies. Is this
>> expected?
> 
> No. this defeats the purpose of the (since it's not unidirectional).
> Perhaps -A would work better.
> You could also probably pick an ip as the destination that isn't the
> device on the other side of the cable, so that it *doesn't* respond.
> 
> The following seems to work for me:
>    while true; do sudo arping -c 1 -i $DEV -b 1.2.3.4; sleep 10; done
> since nothing responds to 1.2.3.4 on my lan.
> 
> But Oliver's point about it possibly needing 10 or 11 queued packets
> is also interesting...
> though that would be very very weird...

Probably not 10 or 11 but more than 1. Sorry for being unclear. Let me
explain.

The timer should not run for an idle interface, should it?
Thus we have three situations

A - first network packet to be transmitted:
queue it and start a timer

B - further network packet to be transmitted:
queue it and modify the timer

C - enough network packets:
transmit

It seems to me that Hiago has just shown that A works. Lowering the threshold
also solves the issue, so C works. Case B seems to be the issue, yet the test
setup tests case A. That is my issue.

	Regards
		Oliver

  reply	other threads:[~2023-12-19  8:45 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-04 18:37 Question regarding CDC NCM and VNC performance issue Hiago De Franco
2023-12-05  9:50 ` Oliver Neukum
2023-12-05 12:22   ` Hiago De Franco
2023-12-05 12:38     ` Oliver Neukum
2023-12-05 12:55       ` Hiago De Franco
2023-12-05 20:14       ` Hiago De Franco
2023-12-06 12:21         ` Oliver Neukum
2023-12-06 16:23           ` Hiago De Franco
2023-12-07  9:41             ` Oliver Neukum
2023-12-07 10:03               ` Francesco Dolcini
2023-12-07 11:07                 ` Oliver Neukum
2023-12-07 11:38                   ` Maciej Żenczykowski
2023-12-07 18:57                     ` Hiago De Franco
2023-12-07 19:37                       ` Maciej Żenczykowski
2023-12-11 20:28                         ` Hiago De Franco
2023-12-11 20:44                           ` Maciej Żenczykowski
2023-12-12  9:48                             ` Oliver Neukum
2023-12-12 20:32                               ` Hiago De Franco
2023-12-12 21:21                                 ` Oliver Neukum
2023-12-13  1:11                                   ` Maciej Żenczykowski
2023-12-15 21:20                                     ` Hiago De Franco
2023-12-15 21:44                                       ` Maciej Żenczykowski
2023-12-18 14:34                                         ` Oliver Neukum
2023-12-18 20:59                                           ` Hiago De Franco
2023-12-18 23:00                                             ` Maciej Żenczykowski
2023-12-19  8:45                                               ` Oliver Neukum [this message]
2023-12-19 12:19                                                 ` Maciej Żenczykowski
2023-12-19 13:24                                                   ` Oliver Neukum
2023-12-19 16:25                                                     ` Maciej Żenczykowski

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=0603f052-df86-4803-b7f3-4a263d7ebcf2@suse.com \
    --to=oneukum@suse.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=francesco@dolcini.it \
    --cc=hiago.franco@toradex.com \
    --cc=hiagofranco@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=maze@google.com \
    --cc=pabeni@redhat.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