Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2710461ybi; Sun, 28 Jul 2019 15:56:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0GqU5X2/jtR/mZQ/i2z+qJHVO2/7GmVE7qjxWwdb4NxdZMqh4YSIWv571pU5tESmm97z4 X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr111560189pjb.15.1564354584371; Sun, 28 Jul 2019 15:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564354584; cv=none; d=google.com; s=arc-20160816; b=rSaSuatkmXAneOsMfNLdTzw66icW8m5eEQPT3Lv46bYBS3gBOpwQdh65O4nbM+xGEX VLkMqzaNWZ2Mki6hw05LhwRrBmzFVLukBzU5de97BYnE6fiKU/wrVT+gNjOi2OXgSJoO kfo2EV2Ype8NXCtvVTdBPNK/8ZP9Wb654ZPoA636a9Prsg8HWSTsFEvjyFviZbf+jZwH /ocaU8uoqPCp9X5Lzkly1a1I9NjFU5EeQtMlwssk+Y569Ud0SytaU00K1UVRYwAhVSkz ZjHYiwyMZMj/yrwYPyQ7wF1cK/t8rWcZYneTN7tSNERB9h6wuKJuJRH56TGSpYNw5Lvy P58w== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nLyhcHAsl3U4aFbUJrPpiowBtM/DZ0sGQ4IQ1k1GVMk=; b=z3IQzOxnrPQQO8894pXxbBjGCmA7/dx+cG5++euxI5kxPLgcjnJR096evb++eIxedY WTWjTSWCc+pNwCSm7JWYJNfM2UPop/+NuokL5+yxNtIJPKLiiN35X1dnYTlBMUnzNDr6 WNBqUYBytONksLgq7peOBf/4ydlBpqgkcogDv+85De7AFHlv2dC9sTkzBFbMPxLaQ0wM dwkKQ6SD7F/xPJxPcAlpfcspS93c1vO045bMUaDl43Jl7GATZZ5ctE7Tzkohk0dbaJjM +cu3KHfTN1P/RH0FdYRUEs7vQqsqLETu5xeVXmIOSYEaKVJ349CCN5qcbTHo+wieAByP 1wjQ== 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 x22si23556569pln.150.2019.07.28.15.55.57; Sun, 28 Jul 2019 15:56:24 -0700 (PDT) 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 S1726103AbfG1Wwe (ORCPT + 99 others); Sun, 28 Jul 2019 18:52:34 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:38139 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfG1Wwe (ORCPT ); Sun, 28 Jul 2019 18:52:34 -0400 Received: from dread.disaster.area (pa49-195-139-63.pa.nsw.optusnet.com.au [49.195.139.63]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id 231CE369F52; Mon, 29 Jul 2019 08:52:29 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92) (envelope-from ) id 1hrs0g-0008Bg-B7; Mon, 29 Jul 2019 08:51:22 +1000 Date: Mon, 29 Jul 2019 08:51:22 +1000 From: Dave Chinner To: Joseph Qi Cc: Andreas Dilger , Joseph Qi , Theodore Ts'o , Jan Kara , Ext4 Developers List , Xiaoguang Wang , Liu Bo Subject: Re: [RFC] performance regression with "ext4: Allow parallel DIO reads" Message-ID: <20190728225122.GG7777@dread.disaster.area> References: <29d50d24-f8e7-5ef4-d4d8-3ea6fb1c6ed3@gmail.com> <6DADA28C-542F-45F6-ADB0-870A81ABED23@dilger.ca> <15112e38-94fe-39d6-a8e2-064ff47187d5@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <15112e38-94fe-39d6-a8e2-064ff47187d5@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=P6RKvmIu c=1 sm=1 tr=0 cx=a_idp_d a=fNT+DnnR6FjB+3sUuX8HHA==:117 a=fNT+DnnR6FjB+3sUuX8HHA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=0o9FgrsRnhwA:10 a=pGLkceISAAAA:8 a=7-415B0cAAAA:8 a=N5NhmcLlKfNiVwXJOTYA:9 a=QEXdDO2ut3YA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Jul 26, 2019 at 09:12:07AM +0800, Joseph Qi wrote: > > > On 19/7/26 05:20, Andreas Dilger wrote: > > > >> On Jul 23, 2019, at 5:17 AM, Joseph Qi wrote: > >> > >> Hi Ted & Jan, > >> Could you please give your valuable comments? > > > > It seems like the original patches should be reverted? There is no data > > From my test result, yes. > I've also tested libaio with iodepth 16, it behaves the same. Here is the test > data for libaio 4k randrw: > > ------------------------------------------------------------------------------------------- > w/ parallel dio reads | READ 78313KB/s, 19578, 1698.70us | WRITE 78313KB/s, 19578, 4837.60us > ------------------------------------------------------------------------------------------- > w/o parallel dio reads| READ 387774KB/s, 96943, 1009.73us | WRITE 387656KB/s,96914, 308.87us > ------------------------------------------------------------------------------------------- > > Since this commit went into upstream long time ago,to be precise, Linux > 4.9, I wonder if someone else has also observed this regression, or > anything I missed? I suspect that the second part of this set of mods that Jan had planned to do (on the write side to use shared locking as well) did not happen and so the DIO writes are serialising the workload. Cheers, Dave. -- Dave Chinner david@fromorbit.com