linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Andrea Vai <andrea.vai@unipv.it>
Cc: linux-usb@vger.kernel.org
Subject: Re: Slow I/O on USB media
Date: Thu, 30 May 2019 06:25:22 -0700	[thread overview]
Message-ID: <20190530132522.GA21005@kroah.com> (raw)
In-Reply-To: <2a9e1be71a2c6c940dac904752fdd34129745444.camel@unipv.it>

On Thu, May 30, 2019 at 03:18:14PM +0200, Andrea Vai wrote:
> Hi,
>   I have a problem as described at [1], sorry for misunderstanding the
> right place to report it.
> 
> The last kernel I can easily install and test was 5.0.17, but please
> tell me if I should install a newer version (or anything else I should
> do). I just tried installing 5.1.5 but suddenly stopped as I have
> problem in compilation (please be patient with me, because I am not an
> expert).
> 
> Here follows the bug report content:
> 
> I am experiencing slow I/O performance since kernel 5.0.1. File
> operations are roughly 10 times slower than they used to be using
> kernel up to 4.20. The problem is present when I use an USB pendrive,
> and does not happen when I copy a file from an internal SATA to
> another internal SATA hard disk.
> 
> You can see the discussion in the dar (backup software) mailing list
> [2], because I first noticed the problem using dar, but then
> discovered that also usual file operations such as "cp" suffer the
> same problem.
> 
> Steps to Reproduce:
> Copy a file (e.g. roughly 1GB) from an internal SATA HD to an USB
> pendrive using "cp", using kernel 5.0.1+
> 
> Actual Results:
> The file is copied in about 12 minutes
> 
> Expected Results:
> The file is copied in about 1 minute (as it happens with kernel up to
> 4.20.13)
> 
> Running Fedora 29 on a Desktop PC.
> Kernels found to be affected: e.g. 5.0.7, 5.0.9, 5.0.10, 5.0.13,
> 5.0.14, 5.0.17.

Any chance you can use 'git bisect' to find the offending commit?

And did you accidentally turn on "sync" for the filesystem?  How do you
know the old kernel really flushed the buffers out in 1 minute?  But 12
minutes is really long, did anything else change in your userspace
between the kernel changes as well?

thanks,

greg k-h

  reply	other threads:[~2019-05-30 13:25 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30 13:18 Slow I/O on USB media Andrea Vai
2019-05-30 13:25 ` Greg KH [this message]
2019-06-03 11:13   ` Andrea Vai
2019-06-04  5:43     ` Greg KH
2019-06-04  7:26       ` Andrea Vai
2019-06-05  7:36       ` Andrea Vai
2019-06-05 14:26         ` Alan Stern
2019-06-05 15:46           ` Andrea Vai
2019-06-05 16:11             ` Alan Stern
2019-06-05 14:55         ` Greg KH
     [not found]           ` <0c2adde7154b0a6c8b2ad7fc5258916731b78775.camel@unipv.it>
2019-06-05 16:23             ` Andrea Vai
2019-06-05 17:39               ` Greg KH
2019-06-06  8:41                 ` Andrea Vai
2019-06-06  9:03                 ` Andrea Vai
2019-06-06 14:00                 ` Andrea Vai
2019-06-06 14:30                   ` Alan Stern
2019-06-06 14:47                   ` Greg KH
2019-06-07  7:59                     ` Andrea Vai
2019-06-08  7:43                     ` Andrea Vai
2019-06-08  9:29                       ` Andrea Vai
2019-06-10 14:38                         ` Greg KH
2019-06-11  6:48                           ` Andrea Vai
2019-06-10 14:40                         ` Alan Stern
2019-06-10 14:55                           ` Andrea Vai
2019-06-10 16:20                             ` Alan Stern
2019-06-17 15:52                           ` Andrea Vai
2019-06-17 16:14                             ` Alan Stern
2019-06-17 16:34                               ` Andrea Vai
2019-06-17 17:28                                 ` Alan Stern
2019-07-01 17:52                                   ` Andrea Vai
2019-07-01 18:57                                     ` Alan Stern
2019-06-10 14:37                       ` Greg KH

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=20190530132522.GA21005@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=andrea.vai@unipv.it \
    --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;
as well as URLs for NNTP newsgroup(s).