Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6061194ybx; Mon, 11 Nov 2019 03:15:06 -0800 (PST) X-Google-Smtp-Source: APXvYqw0bwHY2WgRhz15QyDVyX/pabiiMoSNllwyi45/Y3VN9YEbNnw2wiCbu8LYgPHI6Sbki6JU X-Received: by 2002:aa7:c4c8:: with SMTP id p8mr25714233edr.121.1573470905978; Mon, 11 Nov 2019 03:15:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573470905; cv=none; d=google.com; s=arc-20160816; b=BS9lSEsU1qXXkNj6iHxA7cUozn9YQN1BnEv+2uZJt1g9spGFsMX2CZU3EnEuhtFlpZ G3kZzBn+/JYJM/9HuVeGNm86ED4mMioLA+vYc8KzjbaJUBvvmArn+u8rkLWfJsVzZlMI 8Z8WkpzH2rBzStAMNw6nOil++juS6SX7ik3YzYZGRo23IHVHN3BB9fRqv6dfaU/X+qb/ V3wuu3d7mtET4rpaY1R5Vku4FhoPTZb5aU0uZmZ8s1jfqccES8JF4c3YXkZOLFsWRON9 few/Wm7/wVbM/wXdG/sjMesWtORiOmcaU3wFJ3Zrvd8YLPCksao/aj0g4910xh63dXp8 Gdhg== 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=huepVau9eYwtL+cGD72B7PJ62OYK8YHlVG/n0gyRX58=; b=OQpjP4CDGzx8sroDv9P26ffd4Ax9r8FxPpnVjRkmuJLbluxmU7z104vBIRC3cvW4Z7 qGkwotXMYeZp7f3V3GbnAgpRhboeg7pkAtINyHFLUOFxpRU29S7ZI/k9JfsVTXyxY5YD bPJQfCdijiszBkm0o858P5C/0H6ptiKOXPWVl4XdJEzc0RJwR9Emto+VkWTS797x5rDf aXSbC8a5LugrhyPnBPfffHrMzgcz4a9fcpL1noZ3HGScT5uR7AaTgTmk8ebiww1WwiQj kU/Viz6eGSugVVueoBriJi5afpU7TgmiHDi5jsku8LMwp1Px3CM13KQ8sdpY758lntNZ vxZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@unipv-it.20150623.gappssmtp.com header.s=20150623 header.b=kQInzmaK; 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 dc16si9059173ejb.192.2019.11.11.03.14.42; Mon, 11 Nov 2019 03:15:05 -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=kQInzmaK; 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 S1726893AbfKKLNL (ORCPT + 99 others); Mon, 11 Nov 2019 06:13:11 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35124 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbfKKLNK (ORCPT ); Mon, 11 Nov 2019 06:13:10 -0500 Received: by mail-wr1-f67.google.com with SMTP id s5so3064107wrw.2 for ; Mon, 11 Nov 2019 03:13:06 -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=huepVau9eYwtL+cGD72B7PJ62OYK8YHlVG/n0gyRX58=; b=kQInzmaKutNdAOJ/yrXdo642ND2z7EloykAYSkti3D4LAnjAltx+u5SceqN4I8yY8Z jGhRGn8kJJjVIMq79PqkJYbh3ap2k6Zd2Ur96I0kqpplJChBY8b4377VdIquRxkb9vQ8 Y0yTEVqNAN5kPhbZBIYghehhBRKLqEu0qvrSMs8rBlqYRz/80srP9L+kmpGkg732Vn7F YsISrjZgHuJR38wd8+QEq3iKsBDR04HZEBNAvg0QB4ukyuSbSk6DsK3OYO+OHazWh1z+ 2WQkIEXY1eb2zBzS8fWaJ0bqykiNz+nfA56MqBZi3ormWtr684df5jmAOnFOi8fqmjCE KWfA== 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=huepVau9eYwtL+cGD72B7PJ62OYK8YHlVG/n0gyRX58=; b=UNcccIe2D2o5olVq8HRiCunfXyfx3dI0kzW8iQo9h45UxyQlEljXvyp/jla778Y+qa fdw7y/tBBw+97+22XhNv01DNdj1fThtPKhabNQc0cvlzlCh9uZ/v8WcBd03ZHYqmop3X rLm7skrrQPEe1+fx+WIJF0AAkibP4So86VKReQzPWvnV2ajEJER5x6TMrlcSVJSqmy2+ zgqyGV9oMdQ7MaZ3URYc0TjJxd7CZqLtzwEmIZEP/MTskukAb3aSJex//5BnCvEkl7ll ERzdBpH98qCYWhUO76/X4rvO6GqrzbisTPcpzyon/hnu2NxI2rT83rc5taDwLmi3sRpb 6qGg== X-Gm-Message-State: APjAAAUOa6uMaFeAB2F/LbOmV1sJxpIZqZcz1odAHvgilsP2zPDWf3XW trSd5u3GD3HZ3/buK67CYprnyA== X-Received: by 2002:a5d:6350:: with SMTP id b16mr5315860wrw.357.1573470785783; Mon, 11 Nov 2019 03:13:05 -0800 (PST) Received: from angus.unipv.it (angus.unipv.it. [193.206.67.163]) by smtp.gmail.com with ESMTPSA id h205sm18230112wmf.35.2019.11.11.03.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 03:13:05 -0800 (PST) Message-ID: <6732099548daec7b69afddb04887c5dba4af851d.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 12:13:04 +0100 In-Reply-To: <20191111110558.GA22228@ming.t460p> References: <20191109222828.GA30568@ming.t460p> <928d17b00c66caeef30410cf5a472056ae3722d4.camel@unipv.it> <20191111110558.GA22228@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 lun, 11/11/2019 alle 19.05 +0800, Ming Lei ha scritto: > On Mon, Nov 11, 2019 at 11:50:49AM +0100, Andrea Vai wrote: > > 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] > > Not sure if cfq makes a difference, and I guess you may get same > result > with noop or deadline. However, if you only see good write > performance with > cfq, you may try 'bfq' and see if it works as cfq. > > > > > , i.e. it doesn't show "none". Does it matter? (sorry if it's a > silly > > question) > > We are talking about new kernel in which there can't be 'noop > deadline [cfq]' > any more. And you should see the following output from > '/sys/block/sdf/queue/scheduler' > in the new kernel: > > [mq-deadline] kyber bfq none > > ok sorry I misunderstood, assumed you wanted me to compare the "none" setting in the old kernel with the same setting in the new kernel. Now it's clear to me that you want me to compare the different scheduler settings in the new kernel. Thanks, and bye Andrea