Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp790987pxy; Thu, 22 Apr 2021 13:34:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4ZbQMieGFG1hA/FebGD7gb4OAN57J9rGtuHHYgeKlOD7jLKD3QtVmer5M8VpNLyKJo4oe X-Received: by 2002:a50:ec83:: with SMTP id e3mr351854edr.113.1619123676846; Thu, 22 Apr 2021 13:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619123676; cv=none; d=google.com; s=arc-20160816; b=iDZml7Jualu2dQpzqJE17BR68P2fQFtBotqd7wbHN1SyR0gYhoEnq66tp6nKx/YBrO sZoX+VKX5fxlVa0kuLCPVxkiGW5dhT0NX7wvYYYSFi/SzhyiUpzFeaLnezR9gPIGmohl klP/JJdV0WC2aYt2WxwmzAfCiRz7lsTAHeikyWdKlDjpc/xy9qlpyJK6o4qSOZxBTTMr z5Zhf9sSDnAxU99sU2+yKKSdpzTC9O8NuGt0ROarUpSZfpN4DMO8pqagUoyKjSyQc6OM 9ZMQOdSVAoOUJ2338/4qGL6wzk/8hGPvndo5ZpujLNpI7wEMz1K4ZDtooLLOhDXezMBZ S5jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=vC1xHAkIho9Ukh7HvWx1fHpYYEd6QZIs9EuEZLrOjWc=; b=ReMhR3kbEIPY4ksjmL4fQi3klIUkLAMxHMUPSCJf7q/GRyw4c1WM002ZtRUyl65blM tRHTinRPvlNrxqdtwK6gdpL0w9bL/RDMv/8GJXLloVo+VwhiuX9vXbTKJU2xQoky3a5W WqXr4cbbjbtibP0/3YJSyaUsKp61GCwQsV/Ry5qLeczmaieJL2lERXKetQB1lLbH69SP JxlnvYbAOsTPirq4s6SiUwNBEPK8pTC7nLpzvjmST1sNGp9Sil9Wy7ynk/23M+LAuhbt MsP6MT/w71XWzlHgkREzFsLt+mrs6DT6UCGgIqQiqNOcd7bc/CZSA6PbAx3gXJO755WB U9xg== ARC-Authentication-Results: i=1; mx.google.com; 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 d12si3587427ejj.594.2021.04.22.13.34.11; Thu, 22 Apr 2021 13:34:36 -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; 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 S237002AbhDVUdt (ORCPT + 99 others); Thu, 22 Apr 2021 16:33:49 -0400 Received: from mail-pg1-f171.google.com ([209.85.215.171]:35741 "EHLO mail-pg1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236851AbhDVUds (ORCPT ); Thu, 22 Apr 2021 16:33:48 -0400 Received: by mail-pg1-f171.google.com with SMTP id q10so33658896pgj.2; Thu, 22 Apr 2021 13:33:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vC1xHAkIho9Ukh7HvWx1fHpYYEd6QZIs9EuEZLrOjWc=; b=rGUHO6bnbIhBCUa0/oTssTE4wEitc6hOLPN4I/sle2cUrru4ogTuk3frWvWoj3VnSY RJj2V2faEoOIpd6ylXVF6S2fccsN3futIMlhheiH8KipbB/EzTyLKb+mBjTHPYqqLRR5 BSEzn8FksRyEjTG8P2Y0TJJTawhkkY6yX+MxO28P7B5YGbY3L4aK/czzF4t/VDsPk98p Pgqe3pG7fTq85cHWp2LvbTxDroeU/4aH5v4G0oyGqyYa+13cturukEvkQdG9lr2hixZb 4yO6UsvuNjtr18O21UYTXxZcDoCQeTpZ/jA3NGqBGmoVq1XnbadK7IUtEi8uxzmU8xHr zs8Q== X-Gm-Message-State: AOAM530rzQ26uQKmQJkyRnf325AYaBS9cZ0I79k72JVYSiAPFzAYqmm+ SZOrcK3sSwlPBvS6/XIj1SA= X-Received: by 2002:a63:3812:: with SMTP id f18mr457024pga.380.1619123592619; Thu, 22 Apr 2021 13:33:12 -0700 (PDT) Received: from [192.168.51.110] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id a7sm2768706pfg.65.2021.04.22.13.33.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Apr 2021 13:33:11 -0700 (PDT) Subject: Re: [PATCH v8] bio: limit bio max size To: Changheun Lee , Johannes.Thumshirn@wdc.com, asml.silence@gmail.com, axboe@kernel.dk, damien.lemoal@wdc.com, gregkh@linuxfoundation.org, hch@infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ming.lei@redhat.com, osandov@fb.com, patchwork-bot@kernel.org, tj@kernel.org, tom.leiming@gmail.com Cc: jisoo2146.oh@samsung.com, junho89.kim@samsung.com, mj0123.lee@samsung.com, seunghwan.hyun@samsung.com, sookwan7.kim@samsung.com, woosung2.lee@samsung.com, yt0928.kim@samsung.com References: <20210421094745.29660-1-nanich.lee@samsung.com> From: Bart Van Assche Message-ID: <8799c4da-a07f-1837-2fa8-f968469742f0@acm.org> Date: Thu, 22 Apr 2021 13:33:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210421094745.29660-1-nanich.lee@samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/21 2:47 AM, Changheun Lee wrote: > bio size can grow up to 4GB when muli-page bvec is enabled. > but sometimes it would lead to inefficient behaviors. > in case of large chunk direct I/O, - 32MB chunk read in user space - > all pages for 32MB would be merged to a bio structure if the pages > physical addresses are contiguous. it makes some delay to submit > until merge complete. bio max size should be limited to a proper size. Hi Christoph, Ming and Damien, Can one of you take a look at this patch? Thanks, Bart.