Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2667700pxj; Mon, 17 May 2021 07:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBCqz/Lndgc4zL0HKHg57lbiNeMomOQcFZFraKpc1NmfSCgd+7OQZWVHhuMvBSL7o76F1M X-Received: by 2002:a05:6e02:68c:: with SMTP id o12mr12719893ils.92.1621260435397; Mon, 17 May 2021 07:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621260435; cv=none; d=google.com; s=arc-20160816; b=kXFc3JozLoE5aoKH+ciIYZMsW7e0qeDWS6HHfl1ZNvUBQC1MGGIbuejF0miTEvyHo9 T5vhWrPbVYt0TkskUCZe5Ohr558W/u70gCfYTsLaD5pNQXx8z2M/CqQYXdFLVIGMWKdf a1KtXQx8+QFFghsRKoEQV+Lu9/K5kLiXCC/RYwJ+Gw1QqVjk8SBrO8uokRYZjd1ccyAX jbgHhiOhAGGKP5Ssn4Bw5xjEE2kkG/xh3yT6f7VdRuP4ZuiODbtKobVdMo2cnQiR1H+N QMiG0Rb8VMwqPPaNOzVB9DYu6ZOH1PqCbqjJO9hRBIM3PVGEURLD8ZMLxpFXcQ32fndH iwTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lYg8w1yLBmodofpJzyH7czSJX3G8qcn/lUBXozlYfmo=; b=aMiSoB5cK3l8J5p5gODdrpjnpWf2rckARgrrrVUEBtqonjkWXaky8kpU3grick5WqO XmmBfM9aghNQtC1NfbdTfuFKz9+fPqwagWJ7UXyS+l8HRrRTQeW4mpCuUAOyWGdzbEq6 3gYLzRE94g2QdnGGiYRqX/eO7+NjjiCHPfDgvRstVdQBqIJLCOzXNoNB4ljHKhRN/11r XGKWD1KgU1qTWPouzYECE6jmXA10NkDT61PqAXen4G6i7Dw/i19l8UPGvgiM0lXmrWH4 +VZKBKq5itkyBig9LgKh7Yv3kflzYBEuCrvnhRbC5Md1W8OilAta1VVBUSydTStrurlG hvVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UQ8Es1NI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k8si18830967jav.68.2021.05.17.07.07.00; Mon, 17 May 2021 07:07:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UQ8Es1NI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236042AbhEQKOK (ORCPT + 99 others); Mon, 17 May 2021 06:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236283AbhEQKOJ (ORCPT ); Mon, 17 May 2021 06:14:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EABA7C061573; Mon, 17 May 2021 03:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lYg8w1yLBmodofpJzyH7czSJX3G8qcn/lUBXozlYfmo=; b=UQ8Es1NICSGIPUCaydyjMWO/ez xXqF4mZPQUlN9R/l/pPdrdFfwu7LllJDnk3GJnF+98hqDTDKNKzygj1qOmAf+sbK8cBY+uvpEozm2 /wiNqn/EOqowphFeetCPM0tRjg2nma4BQrcJ+KmFnHMh/GsMa0bRXJw7kg5rBhBDLQDM9+cfgnOXh ZVAiquA9NoNkd3JXYwLBSzh9YoOYTc4vLNgpABbqtJzclWJDBoWbOoNL3jufCtnxe0P/EUW5mqMo/ e3KI1jTcvKgxdPbdHGvF1cuKHyXjzi8acqbJcAbrQNnQgYdeRzo4W6Dgs1AYIB2oo+0m/gs0uIj++ N2ycD2LA==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1liaDo-00CnMC-Se; Mon, 17 May 2021 10:11:39 +0000 Date: Mon, 17 May 2021 11:11:36 +0100 From: Christoph Hellwig To: Changheun Lee Cc: hch@infradead.org, Johannes.Thumshirn@wdc.com, alex_y_xu@yahoo.ca, asml.silence@gmail.com, axboe@kernel.dk, bgoncalv@redhat.com, bvanassche@acm.org, damien.lemoal@wdc.com, gregkh@linuxfoundation.org, jaegeuk@kernel.org, jisoo2146.oh@samsung.com, junho89.kim@samsung.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ming.lei@redhat.com, mj0123.lee@samsung.com, osandov@fb.com, patchwork-bot@kernel.org, seunghwan.hyun@samsung.com, sookwan7.kim@samsung.com, tj@kernel.org, tom.leiming@gmail.com, woosung2.lee@samsung.com, yi.zhang@redhat.com, yt0928.kim@samsung.com Subject: Re: [PATCH v10 0/1] bio: limit bio max size Message-ID: References: <20210514063241.22260-1-nanich.lee@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210514063241.22260-1-nanich.lee@samsung.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 03:32:41PM +0900, Changheun Lee wrote: > I tested 512MB file read with direct I/O. and chunk size is 64MB. > - on SCSI disk, with no limit of bio max size(4GB) : avg. 630 MB/s > - on SCSI disk, with limit bio max size to 1MB : avg. 645 MB/s > - on ramdisk, with no limit of bio max size(4GB) : avg. 2749 MB/s > - on ramdisk, with limit bio max size to 1MB : avg. 3068 MB/s > > I set ramdisk environment as below. > - dd if=/dev/zero of=/mnt/ramdisk.img bs=$((1024*1024)) count=1024 > - mkfs.ext4 /mnt/ramdisk.img > - mkdir /mnt/ext4ramdisk > - mount -o loop /mnt/ramdisk.img /mnt/ext4ramdisk > > With low performance disk, bio submit delay caused by large bio size is > not big protion. So it can't be feel easily. But it will be shown in high > performance disk. So let's attack the problem properly: 1) switch f2fs to a direct I/O implementation that does not suck 2) look into optimizing the iomap code to e.g. submit the bio once it is larger than queue_io_opt() without failing to add to a bio which would be annoying for things like huge pages.