Linux USB
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: ValdikSS <iam@valdikss.org.ru>
Cc: linux-usb@vger.kernel.org
Subject: Re: USB 1.1 Full Speed OHCI slow/high latency
Date: Fri, 15 Aug 2025 13:07:41 -0400	[thread overview]
Message-ID: <da6326e4-9b47-4347-a044-879b4be58560@rowland.harvard.edu> (raw)
In-Reply-To: <e5d73b85-9c7f-4c74-9a00-700b4b6e7d70@valdikss.org.ru>

On Fri, Aug 15, 2025 at 06:53:33PM +0300, ValdikSS wrote:
> Thanks Alan, this definitely makes things better
> 
> Before the patch:
> 
> Avg delta: 1.916 ms
> Min: 1.443 ms
> Max: 2.891 ms
> 
> After the patch:
> 
> Avg delta: 0.944 ms
> Min: 0.722 ms
> Max: 6.904 ms

I guess that 6.9 ms maximum occurred because the test process was 
preempted.  Not the sort of thing you can easily prevent.

> However the printout is still not in full. Now the same picture prints about
> 4/5 of the page, but still not 100% (previously it failed on 1/3).
> 
> Would the .pcap of the printing process be useful?

I rather doubt it.  You might be able to figure something out by looking 
at the timing of the various transfers, particularly near the end when 
the underflow occurred.  But I don't even know what the printer's timing 
requirements are (and maybe you don't either).

Overall this probably isn't a battle worth fighting.  Either just attach 
the printer to a high-speed hub or get a better printer.

Alan Stern

  reply	other threads:[~2025-08-15 17:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14  1:56 USB 1.1 Full Speed OHCI slow/high latency ValdikSS
2025-08-14  6:01 ` Greg KH
2025-08-14 14:24 ` Alan Stern
2025-08-14 15:11   ` ValdikSS
2025-08-14 16:40     ` Alan Stern
2025-08-15  8:39       ` ValdikSS
2025-08-15 14:52         ` Alan Stern
2025-08-15 15:53           ` ValdikSS
2025-08-15 17:07             ` Alan Stern [this message]
2025-08-15 18:13               ` ValdikSS
2025-08-16  2:04                 ` Alan Stern
2025-09-21 23:11                   ` ValdikSS
2025-09-22 14:16                     ` Alan Stern
2025-09-22 14:38                       ` ValdikSS
2025-09-22 14:43                         ` Alan Stern
2025-09-22 14:48                           ` [PATCH] usb: ohci: delay endpoint descriptor unlinking to reduce transfer latency ValdikSS
2025-10-01 19:27                             ` Alan Stern
2025-10-01 22:34                               ` [PATCH v2] " ValdikSS
2025-10-02 17:05                                 ` Alan Stern
2025-10-22 13:39                               ` [PATCH v2 RESEND] " ValdikSS

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=da6326e4-9b47-4347-a044-879b4be58560@rowland.harvard.edu \
    --to=stern@rowland.harvard.edu \
    --cc=iam@valdikss.org.ru \
    --cc=linux-usb@vger.kernel.org \
    /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