From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-f195.google.com ([209.85.219.195]:35474 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbeIZQTV (ORCPT ); Wed, 26 Sep 2018 12:19:21 -0400 Received: by mail-yb1-f195.google.com with SMTP id o63-v6so11076255yba.2 for ; Wed, 26 Sep 2018 03:07:09 -0700 (PDT) MIME-Version: 1.0 References: <20180906123706.28691-1-const@MakeLinux.com> In-Reply-To: From: Constantine Shulyupin Date: Wed, 26 Sep 2018 13:06:56 +0300 Message-ID: Subject: Re: [PATCH v4] fuse: add max_pages option To: =?UTF-8?B?5YiY56GV54S2?= Cc: Miklos Szeredi , "open list:FUSE: FILESYSTEM IN USERSPACE" , Jonathan Corbet , mitsuo.hayasaka.hu@hitachi.com, Amir Goldstein Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Shuoran, On Wed, Sep 26, 2018 at 12:40 PM 刘硕然 wrote: > I haven't tested the patch yet. But after reviewing the patch, I don't see anything related to BDI_CAP_STRICTLIMIT. So would you please explain a little bit more? Thanks. Bigger size of request reduces total number of requests and reduces overhead of per request operations. > PS: I did try increasing FUSE_MAX_PAGES_PER_REQ, but it seemed not helping in my scenario(writeback cache enabled, 4K writes, total write size is not very large). To utilize FUSE_MAX_PAGES_PER_REQ in kernel it is must to increase KERNEL_BUF_PAGES it libfuse too. I have libfuse patch with configurable max_pages. But 4K writes will not benefit from increase of request size, which now is 128K and proposed size is 1M. Thanks