Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6038289ybx; Mon, 11 Nov 2019 02:52:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyI73Bo4oMG6z9wsOMO19PIQfqUNAQxZ8a6cArkA2peRrTIeGAAv80XQVMtCfyKQou1fN2g X-Received: by 2002:a17:906:7051:: with SMTP id r17mr21288425ejj.155.1573469560317; Mon, 11 Nov 2019 02:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573469560; cv=none; d=google.com; s=arc-20160816; b=bMI4j2Ynof2iuoCgQNxinoA4Ba42z1tl9QetI7wjMW5KJ3SVY4+yYXIMS+QNMYlbqi xUc3A65YWUQxxC2qV6v9IArPzMlQ/jZV9AlREeVwn1A4KKqq5n9II9uqrcVofoh3Yw+U E2+2OOgxuoMBSdF1kgU92vbb5cHbB/oQQmQV+E0otVnfRZF3uaXRMtuDPly7+zh7D27y sVhxuTebiNWCBxSJa5f98EwaE3xS8+M7QrTJ8ec7utHSDbpgKP61AsdD6KhVLtM+plbp 8BStMZB73xwPpasJS4PjjyCsWr9j6Q+4DzI6ug0ZcI3rUYlm7/Uh4eyeBSrnbA0k3EEW ZNXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=Ulc0hnxpi87Lr8FUalzRyArJnedsSnF+Woyt7C2r5m4=; b=TE6Xr+oUxA8bv4xsZdRZfGrayJAzLjCMyZHHi8vUAFm0RCA9rX8NriakBJQ4rPrf6B uFfeYI1aF+s/0q2gQDHWCdxON1Bq3756peSk+hRvim3zpsaaG6xpKhtElVtawSzUrKvQ 1e0QYFNJRA8CebWN7mBpQCFe1gz4k8Vf+zqjvYyHhyt9EHzXn/e8h3FVdrQ3ysdF7Alq Y6gaUCtbZqAeghTzlT4Odv0X6UqKPaTArK3RHc7iQOdycgtgvmD0Nx/em5won4AjBute Q7oSsnQZP4oDB8VcbFpENozLUoguztQGBFFkya43zCmXL7o7NLACmZ8j/IPYTwRDrx0x 71tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@unipv-it.20150623.gappssmtp.com header.s=20150623 header.b="dL1SG9/9"; 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 o3si11276601edi.374.2019.11.11.02.52.17; Mon, 11 Nov 2019 02:52:40 -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; dkim=pass header.i=@unipv-it.20150623.gappssmtp.com header.s=20150623 header.b="dL1SG9/9"; 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 S1726970AbfKKKuz (ORCPT + 99 others); Mon, 11 Nov 2019 05:50:55 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36817 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbfKKKuz (ORCPT ); Mon, 11 Nov 2019 05:50:55 -0500 Received: by mail-wr1-f67.google.com with SMTP id r10so14092886wrx.3 for ; Mon, 11 Nov 2019 02:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unipv-it.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Ulc0hnxpi87Lr8FUalzRyArJnedsSnF+Woyt7C2r5m4=; b=dL1SG9/9kP2mYzkV0eX8bDgfamaptCdSzbkQDOjY1N4J1lsclv9eKhS7uGgia6dIrw H/2V0ytIa59J7Kw2PBWz7aCcertcLxEfQImQ7YG/PCJaC0GrRTS9Y5TenUgz3gIoZDnF MZquTjxYbZphx0xK/1xMP9sAsCGfUnoPOJsJREP1895MNR/0nIWVfuex33PNK0FFaLdb KBPMFro0y7Tl0cx3nnUWBK6TMibiWL40JJuBvhUipEuF2iDLu/sqqO9LQsak5N+Z50MC gb1pvFLJ6WiE0rrmFVTug6CLYnGv+8gSmTnx2YNPdhz68eLf59KswFUI4D8ESd6rpb1b 0XpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Ulc0hnxpi87Lr8FUalzRyArJnedsSnF+Woyt7C2r5m4=; b=OPn41knfU0Kyir5eRoS62swBNa4se+R8RuGlMqJe+ow2l+TrnaW9yIWCzOhRiK41R5 lDvKaqLBMcOj8h7SsvKZWle5/aOTyldmIsYsRJ/67hkK6qsoUBRgxK0aZsafvQX+pdBb nPk9zI9I72s6Q8eo2HYB9HclGilxl3/JTwwsZdDCepzJPQTJBDmkU707cJd8bhl49cPB 1rhCxRdbVrCA5FD+cZ4aMvjHxFzde7H7MeTAnXX4N6EdOwRMfEZFKLdYgNfsTzrl5h9z VzZR7S+j33P3w0dDYgQesmG1XvsPwaAy2NVAAhvRSUoGusFpYhMH6Iwz7NBfOAwQO3Hp 3W3A== X-Gm-Message-State: APjAAAWL3BQH223CFz2P7aSCRMrTcLqdx4VXfFnsbO7XC6KXlViKcWLq m19ap4ke7n3N51rwImAmxzoS7A== X-Received: by 2002:adf:e78c:: with SMTP id n12mr18721260wrm.94.1573469451440; Mon, 11 Nov 2019 02:50:51 -0800 (PST) Received: from angus.unipv.it (angus.unipv.it. [193.206.67.163]) by smtp.gmail.com with ESMTPSA id p1sm7108872wmc.38.2019.11.11.02.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 02:50:50 -0800 (PST) Message-ID: <928d17b00c66caeef30410cf5a472056ae3722d4.camel@unipv.it> Subject: Re: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6 From: Andrea Vai To: Ming Lei Cc: 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 Date: Mon, 11 Nov 2019 11:50:49 +0100 In-Reply-To: <20191109222828.GA30568@ming.t460p> References: <20191109222828.GA30568@ming.t460p> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il giorno dom, 10/11/2019 alle 06.28 +0800, Ming Lei ha scritto: > On Thu, Nov 07, 2019 at 07:59:44PM +0100, Andrea Vai wrote: > > [Sorry for the duplicate message, it didn't reach the lists due to > > html formatting] > > Il giorno gio 7 nov 2019 alle ore 08:54 Damien Le Moal > > ha scritto: > > > > > > On 2019/11/07 16:04, Andrea Vai wrote: > > > > Il giorno mer, 06/11/2019 alle 22.13 +0000, Damien Le Moal ha > scritto: > > > >> > > > >> > > > >> Please simply try your write tests after doing this: > > > >> > > > >> echo mq-deadline > /sys/block/ > > >> disk>/queue/scheduler > > > >> > > > >> And confirm that mq-deadline is selected with: > > > >> > > > >> cat /sys/block//queue/scheduler > > > >> [mq-deadline] kyber bfq none > > > > > > > > ok, which kernel should I test with this: the fresh git > cloned, or the > > > > one just patched with Alan's patch, or doesn't matter which > one? > > > > > > Probably all of them to see if there are any differences. > > > > with both kernels, the output of > > cat /sys/block/sdh/queue/schedule > > > > already contains [mq-deadline]: is it correct to assume that the > echo > > command and the subsequent testing is useless? What to do now? > > Another thing we could try is to use 'none' via the following > command: > > echo none > /sys/block/sdh/queue/scheduler #suppose 'sdh' points > to the usb storage disk > > Because USB storage HBA is single hw queue, which depth is 1. This > way > should change to dispatch IO in the order of bio submission. > > Andrea, could you switch io scheduler to none and update us if > difference > can be made? Of course I would to it, but I see that with the "good" kernel the output of "cat /sys/block/sdf/queue/scheduler" (yes, now it's sdf) is noop deadline [cfq] , i.e. it doesn't show "none". Does it matter? (sorry if it's a silly question) Thanks, and bye Andrea