Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF71EC61DA4 for ; Sat, 4 Mar 2023 00:46:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjCDAq5 (ORCPT ); Fri, 3 Mar 2023 19:46:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjCDAq4 (ORCPT ); Fri, 3 Mar 2023 19:46:56 -0500 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0CDB637CF for ; Fri, 3 Mar 2023 16:46:54 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0Vd0zWbd_1677890809; Received: from 192.168.31.66(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0Vd0zWbd_1677890809) by smtp.aliyun-inc.com; Sat, 04 Mar 2023 08:46:50 +0800 Message-ID: <6ecbe86b-f97f-30f6-9a6e-cb3090ec35cf@linux.alibaba.com> Date: Sat, 4 Mar 2023 08:46:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [LSF/MM/BFP TOPIC] Composefs vs erofs+overlay Content-Language: en-US To: Alexander Larsson , lsf-pc@lists.linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, Amir Goldstein , Christian Brauner , Gao Xiang , Giuseppe Scrivano , Dave Chinner , Vivek Goyal , Miklos Szeredi References: From: Jingbo Xu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 3/3/23 9:57 PM, Alexander Larsson wrote: > On Mon, Feb 27, 2023 at 10:22 AM Alexander Larsson wrote: > > * Erofs on top of direct-io enabled loopback causes quite a drop in > performance, which I don't really understand. Especially since its > reporting the same memory use as non-direct io. I guess the > double-cacheing in the later case isn't properly attributed to the > cgroup so the difference is not measured. However, why would the > double cache improve performance? Maybe I'm not completely > understanding how these things interact. > Loop in BUFFERED mode actually calls .read_iter() of the backing file to read from it, e.g. ext4_file_read_iter()->generic_file_read_iter(), where heuristic readahead is also done. -- Thanks, Jingbo