Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6749531rwb; Tue, 22 Nov 2022 18:55:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R3Y5S1PQbyxhtHmFON9YvWtdomBI3zwqKdVUPfgjVoxv/otw7udNNWh5Hs4kKnOeD0UvK X-Received: by 2002:a62:1d86:0:b0:56d:d08c:baf0 with SMTP id d128-20020a621d86000000b0056dd08cbaf0mr7615238pfd.72.1669172105423; Tue, 22 Nov 2022 18:55:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669172105; cv=none; d=google.com; s=arc-20160816; b=mI7owV/7PQPiE1owJg2vEq6QPoNIMDJCKuNz9GkxNc8Vm20SnVGzHz2msHHprxWhBh 9HvV6k5JFg7baT5U0XO1yBX5Ed8Ew1aaiSSnlBdUer/Op5Rh1QL0rIJslQrpkp/KNokG RiAI24wskEnnAP9y5MSziWGOvHLuQnz3bTssTknLavAFif44RcX8NkD7po+jGZO3Hx4Q rWB5PgE6F81sLWFSRaB1WzKJcZTKQ0gSp+U9/8fEGr3MSBQdtJSNUvKrCcgUkp2ZVBcW 6DG1NXSt5b8AWqs9XjyPVS0sgBDCvcLXt5u9EbV+XxTKLrTuo937WoTnHNyZ1AdCa9UQ 2isw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=00RzDuciGC3lT3xwhCdi5LokzQVvWdDHLPqjXqGdFJg=; b=dtr7sU3woPJtUyxJh/dOkUVkZyeDUtpULUZJEp9i0EgeebQiZuRsr+Li/IEnCvnCXb +m5wFo/dawAXiAyKZXKlRl0JvwCGe59ao6JaxwmFFw/gaC22ygeBIvnyiFBaQWVkotm8 hq8Oo3hplEkoDr3kXi4lUQgKzzbtFJcVKZByswliz319307eMiZoLNX63CACzHWAiLMa OKE8cC+cmj13gk6lBT++o1LoLxsJ+k0YLfBfat3i99TdXQO8WZi36+f1Dz3gVU4h8nE3 2IiMU8sOfZHii8ToHIMLISksEVO0NwUvDrxllOs3adujrgK1yLK8vMBYh4ux9yKXCmH0 LNfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XxOYWYfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a170902c1ca00b00188f3b1d0d0si13795768plc.376.2022.11.22.18.54.54; Tue, 22 Nov 2022 18:55:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XxOYWYfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235549AbiKWC0U (ORCPT + 89 others); Tue, 22 Nov 2022 21:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234134AbiKWC0T (ORCPT ); Tue, 22 Nov 2022 21:26:19 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DFDDB879; Tue, 22 Nov 2022 18:26:18 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id 7so19405978ybp.13; Tue, 22 Nov 2022 18:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=00RzDuciGC3lT3xwhCdi5LokzQVvWdDHLPqjXqGdFJg=; b=XxOYWYfkLXZKqUD3n+fJDAFgrClq2Sb81DA9yBIghAtY0oN4Nicw54fBJN26uBoMAW CGE2l0OYqyl+K9YgzLCMSLDmPTBonACWL1AQ5Up02om+CQMp1m9X6OHp2UQGg1ZoJNDm Gzk4QLk6AWIvfTz+i+IWzkn7gG94jmKX0BAJI/VKczV+onDlpPyEZSVe/XX5/qoS8r5i zF9LRUyS0/9vEXBOXQuIV3vLk6ajTk73xwa83CRhfT7AyZQkEQulpme3Z+a++WxExI0e TCDYAL/8MldvAoBL6L6IFvTle63L4kzodOdmgc8aEoxGPbGRslThdQ2XdvF6Rwm561RZ zJJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=00RzDuciGC3lT3xwhCdi5LokzQVvWdDHLPqjXqGdFJg=; b=pbL1jYAuFbyu410YlNfDVoDxctVrMwjJJAuagngBoM4RK6B7sIxp4U/9eFlUCYqGwV cGauLETFMlaOXsxRYI28S0DqPVBJu0ttQ+hrH40kyJ3hQeXgIMruP7CblWaA9/mTMmhT ceLFNAS0rQKbEaZ/4IowSoUKwSPtx+foJa7Kj6K8KtnnLgXqpmxQaKTJ3PeDXvHrCTGU n63d3hlsELZvrvqo8+ptp06ZWVpLJOF790Px502x9z9ihIwtUj69aLsjmZNdP2GYFqWi D0DW2EKfJdaohaKgb6xvJH32mI5kI8NWo2D1LHwHPBKIQaSVT3C44V9kgkolb0ztnMpt Jw4A== X-Gm-Message-State: ANoB5plrwFPQas1KFGPLARigGBiBY2RAQFoL3ZcZ9t2GzZv2sFXa4zzF kYMLw6oqTqSEkGoEbYtjRsDyn44JL0k7W1Na2YY= X-Received: by 2002:a25:e70f:0:b0:6ef:aa80:9083 with SMTP id e15-20020a25e70f000000b006efaa809083mr2100761ybh.407.1669170377646; Tue, 22 Nov 2022 18:26:17 -0800 (PST) MIME-Version: 1.0 References: <20221017202451.4951-1-vishal.moola@gmail.com> <20221017202451.4951-15-vishal.moola@gmail.com> <9c01bb74-97b3-d1c0-6a5f-dc8b11113e1a@kernel.org> In-Reply-To: From: Vishal Moola Date: Tue, 22 Nov 2022 18:26:05 -0800 Message-ID: Subject: Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag() To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, fengnan chang , linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 14, 2022 at 1:38 PM Vishal Moola wrote: > > On Sun, Nov 13, 2022 at 11:02 PM Chao Yu wrote: > > > > On 2022/10/18 4:24, Vishal Moola (Oracle) wrote: > > > Converted the function to use a folio_batch instead of pagevec. This is in > > > preparation for the removal of find_get_pages_range_tag(). > > > > > > Also modified f2fs_all_cluster_page_ready to take in a folio_batch instead > > > of pagevec. This does NOT support large folios. The function currently > > > > Vishal, > > > > It looks this patch tries to revert Fengnan's change: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01fc4b9a6ed8eacb64e5609bab7ac963e1c7e486 > > > > How about doing some tests to evaluate its performance effect? > > Yeah I'll play around with it to see how much of a difference it makes. I did some testing. Looks like reverting Fengnan's change allows for occasional, but significant, spikes in write latency. I'll work on a variation of the patch that maintains the use of F2FS_ONSTACK_PAGES and send that in the next version of the patch series. Thanks for pointing that out! How do the remaining f2fs patches in the series look to you? Patch 16/23 f2fs_sync_meta_pages() in particular seems like it may be prone to problems. If there are any changes that need to be made to it I can include those in the next version as well.