public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: "Filip Žaludek" <filip.zaludek@oracle.com>
Cc: linux-usb@vger.kernel.org, Konrad Wilk <konrad.wilk@oracle.com>
Subject: Re: [External] : Re: data throttling under load when serial to usb adapter is used
Date: Mon, 20 Dec 2021 11:45:20 +0100	[thread overview]
Message-ID: <YcBewGmzrjFlVR3y@kroah.com> (raw)
In-Reply-To: <67ff29fb-98cd-1835-ee6e-4eba67ff269c@oracle.com>

On Mon, Dec 20, 2021 at 11:19:03AM +0100, Filip Žaludek wrote:
> 
> > 
> > Using 'cat' is not a good way to ever use a serial port.  Please use a
> > tool that can properly detect and use the serial port flow control
> > settings, which should prevent the issues you are seeing here.
> > 
> > Is socat using flow control?  If so, which settings, hardware or
> > software flow control?
> > 
> > Also please note that the usb-serial devices you are using here are
> > _very_ cheap and not good for huge amounts of data like you seem to want
> > to use here.  I would recommend a much more robust usb-serial device if
> > you need high data rates and good hardware flow control handling.  Most
> > of the time, the devices you have here do not even have any hardware
> > flow control support as the manufacturers do not hook up those lines.
> > So be careful.
> > 
> > thanks,
> > 
> > greg k-h
> > 
> 
> 
> 
>  Yes, you are right! Such gadget hardware is without hw flow control. I am using
> serial line only to capture console logs. I've tested both commands also with
> sw flow control ixon, ixoff with similar results.
> 
>  Hopefully somebody sitting on scarce big iron with both usb port and serial port
> with proper hw flow control from this list gets attracted to kindly re-test.
> 
> Interesting part for me is that only serial to usb direction is failing..

Makes sense, these devices are not designed for lots of high-speed data
being sent to them.  Please use a device that is designed for that if
you wish to do this.

thanks,

greg k-h

  reply	other threads:[~2021-12-20 10:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20  8:11 data throttling under load when serial to usb adapter is used Filip Žaludek
2021-12-20  8:28 ` Greg KH
2021-12-20 10:19   ` [External] : " Filip Žaludek
2021-12-20 10:45     ` Greg KH [this message]
2021-12-20 14:04     ` Johan Hovold

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=YcBewGmzrjFlVR3y@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=filip.zaludek@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --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