Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7038001ybc; Thu, 28 Nov 2019 09:41:38 -0800 (PST) X-Google-Smtp-Source: APXvYqz4WVQRYMHQyWZNab8ZjcjoWpVlOanPOPAMiiJoL5zZpeG/uk2x0tb+Qw+zuZFBQKGua7Jp X-Received: by 2002:a05:6402:28d:: with SMTP id l13mr40292793edv.286.1574962898819; Thu, 28 Nov 2019 09:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574962898; cv=none; d=google.com; s=arc-20160816; b=Ce5HiRftZgCbYotNvuW4wJIQVNCME+FT7bi07ypI9jEwKJ47BnZREUv0ms9yYU+SUP BRTDTJLxtE2lFx93CUpt/2jhBPxraR7Dpwng3Hq4F0YlE4yAnDCL2sXe61Fq6fb7hnNA valgeke9CgdEOJTHvvYj+FnzaVgJ3nhb9v/Y0ZnDC0y00/yXGGiMmFs75On4Sn/L1fBi trcFC7k3/EluFjT2jDQL/A4tO1+zgJ8LkmgD1hggOKXwvBAntEmwiSDLcaJH7XCQMg0q XBAkybWLv5q++mgkeKlWux+xEOTvFugGaMrcZhcKIpLwePEaRQy6Vm4vZuU/MTC8RIe0 hmZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=PBBBa0Fv+v7S0ilL/B/sD/lc0XdgohvUDFBADF2XWDU=; b=DLHIFOU3naVIeaTjHaIE5fARSjF4tYKejZyrH5bJtkYZ5dX1MFsc/UeYi2nnVwYRDj Cg4vqZfox3mwEEQrv2DEXU5n+jkTNE2E4df4nP1n+Vz4liM6D3dJhjK+cbE9jwQJjdJL zHi1biBhaFynxgLN+/2MkYcjkzqSLc55jgjhyv+VdQtw2kI5P8eruLT/7RIqFfQo5YBe br9XI+MWmW0zMA+z5pXbqvwUSGhGCZwv9PHacXs/SEJcUpG/gUeThHHXeyIQs9IGZ82X 5xXQNsWp48Zw95QjFyrFkNjGtO7BXUAXQJ8KbVTF5zgHLL4w5kxK92xvtTYofdg69N6V G//A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 p21si13975013edc.305.2019.11.28.09.41.14; Thu, 28 Nov 2019 09:41:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfK1Rj7 (ORCPT + 99 others); Thu, 28 Nov 2019 12:39:59 -0500 Received: from netrider.rowland.org ([192.131.102.5]:48293 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726609AbfK1Rj7 (ORCPT ); Thu, 28 Nov 2019 12:39:59 -0500 Received: (qmail 21220 invoked by uid 500); 28 Nov 2019 12:39:58 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 28 Nov 2019 12:39:58 -0500 Date: Thu, 28 Nov 2019 12:39:58 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Schmid, Carsten" cc: Andrea Vai , Finn Thain , Ming Lei , Damien Le Moal , 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 Subject: Re: AW: AW: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Nov 2019, Schmid, Carsten wrote: > I have been involved in several benchmarkings of flash devices in the past. > So what we see here is definitely not a device issue regarding wear leveling. > > I wanted to prevent all of you going into the wrong direction, that's why > i wanted Andrea to confirm that it's not a matter of the flash device. > > There are so much items involved into benchmarking flash devices. > But Andrea's observations with factors of 10-30 times slow down > i have never seen before. > > I assume the only thing that you change between the benchmarks > is the kernel (and the modules, of course), right, Andrea? > Then we can rule out cache settings which massively can impact > benchmarks. > > The only thing that makes sense from my POV is: > - collect traces with the kernel before mentioned commit (fast) > - apply patch in doubt > - again collect traces (slow) > - compare the traces > > Then we should be able to see the difference(s). We have already done this. I forget whether the traces are in the email history available in the archives or whether they are stored somewhere else. In any case, my analysis of the traces is in the archives. It seemed very clear that the only difference which mattered was the ordering of the write commands (sequential vs. non-sequential). This was obviously something which the commit in question would affect, and it also seemed likely to cause the device to slow down considerably. Alan Stern > Unfortunately i'm not an expert on the SCSI and USB kernel stuff > involved here. Else i would try to understand what happens and > give you some hints. > > BR > Carsten