Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6655946ybl; Mon, 23 Dec 2019 09:23:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwRqbiiVfxkiD3iCKrXu7+4ybQcRZ5xVwTqrWCqZChW1To3yVt1pwaYW5mkSXW/pew9MAt+ X-Received: by 2002:a9d:3b5:: with SMTP id f50mr32422264otf.354.1577121831255; Mon, 23 Dec 2019 09:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577121831; cv=none; d=google.com; s=arc-20160816; b=fsLDqKC215oV+bjoIb0hQeQNR2RoY99VxTfURnoHP4NZePjoRdSRDgCx68pD3L9Ovf CNeOWy/ijDZUMOl1uRZFDdBsYT2Zunc7pPOGK0zWYwYscrSXhicZ9hwotVQqWdTslXHS /GbfLNRRtbOxckrWTRXmVBLmx6a783MI/37/l+HiHu4qU+vXKD6DNl7u51+fAFDdUfiP heXw6aTPUrPovCc7OvlZv470hOrRTpt31iuoVsV1fNy+Vx9kFsKsDdJARf9ptg90ue0g 79qMuePp8HJnwl8kClA8qWdNrAfimQ0FCHU7fp3BhM4P3Pl6KMjAdqHwd0ESpZQMuKLa JzMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ELAAYUnLhgpYIWysPn4marauwWjfMiLvJYho9FP26Tk=; b=UU6nmgqPCR/1/BdNGbw6weEOdoEkyMPsWoKr+JyRbzvy7zI8+G+vZP8ErsXT3uxGg8 NYabAnm7wuZ8fl/a/xT6rt5WjA/M6pEhZYMv6u4U9GTEDtfZa63ygK1eXufyvEfSxk+b z9G5zsLGRcrY5k1NhTnyTXgoXtYzviXzKyJvVznwf/0x3UtDg13xT7G6/YXB3TheqZ9S hGwBFgd17yAcBnZMkDC8dWLVD4tFHDKzpX6wb2ct4XqLRIsYEdAuC5SiGpJ3kTPQv732 UjbKiTZk3Vhf9CrrIZSzjJVk1Q2GNbCBTirVCISbXz53w/RvyikV+Gdpd0j6SnFurygo YClg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si1722371oth.174.2019.12.23.09.23.30; Mon, 23 Dec 2019 09:23:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbfLWRX2 (ORCPT + 99 others); Mon, 23 Dec 2019 12:23:28 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:37371 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726840AbfLWRX2 (ORCPT ); Mon, 23 Dec 2019 12:23:28 -0500 Received: from callcc.thunk.org (guestnat-104-133-0-111.corp.google.com [104.133.0.111] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id xBNHMvOs026152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Dec 2019 12:22:58 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 94F14420822; Mon, 23 Dec 2019 12:22:57 -0500 (EST) Date: Mon, 23 Dec 2019 12:22:57 -0500 From: "Theodore Y. Ts'o" To: Andrea Vai Cc: Ming Lei , "Schmid, Carsten" , Finn Thain , Damien Le Moal , Alan Stern , Jens Axboe , Johannes Thumshirn , USB list , SCSI development list , Himanshu Madhani , Hannes Reinecke , Omar Sandoval , "Martin K. Petersen" , Greg KH , Hans Holmberg , Kernel development list , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: AW: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 Message-ID: <20191223172257.GB3282@mit.edu> References: <20191211024137.GB61323@mit.edu> <20191211040058.GC6864@ming.t460p> <20191211160745.GA129186@mit.edu> <20191211213316.GA14983@ming.t460p> <20191218094830.GB30602@ming.t460p> <20191223130828.GA25948@ming.t460p> <20191223162619.GA3282@mit.edu> <4c85fd3f2ec58694cc1ff7ab5c88d6e11ab6efec.camel@unipv.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4c85fd3f2ec58694cc1ff7ab5c88d6e11ab6efec.camel@unipv.it> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Dec 23, 2019 at 05:29:27PM +0100, Andrea Vai wrote: > I run the cp command from a bash script, or from a bash shell. I don't > know if this answer your question, otherwise feel free to tell me a > way to find the answer to give you. What distro are you using, and/or what package is the cp command coming from, and what is the package name and version? Also, can you remind me what the bash script is and how many files you are copying? Can you change the script so that the cp command is prefixed by: "strace -tTf -o /tmp/st " e.g., strace -tTf -o /tmp/st cp And then send me the /tmp/st file. This will significantly change the time, so don't do this for measuring performance. I just want to see what the /bin/cp command is *doing*. - Ted