Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp453374rdb; Mon, 18 Sep 2023 23:37:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGm+gBW9AUJks9KdvMN+W2LqP12puFvTkRR6AeSelP5PbcEYNVjln0/feCW2vYM8tKbX8o5 X-Received: by 2002:a17:90a:fa08:b0:276:a310:2be3 with SMTP id cm8-20020a17090afa0800b00276a3102be3mr951816pjb.19.1695105446768; Mon, 18 Sep 2023 23:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695105446; cv=none; d=google.com; s=arc-20160816; b=Lrt63R/nppQ1tdyNFQp56IEb5B356mae0ZOgOrJA50DKJl+NNJpU0a4tjkYJW5hV8/ Zu6KjoEUyFcO7bpzQcm/MK+MPwBq4fvGjEkcl7zgL2EBUafJSUcmGm/V+0AcR6ii/hWj 6Wm99zArjJ7s+X6lkOYYkEceDIRxdxadregDxXX7l8oC+UVLQHFLalLLj0gov+R1glYI GIEzLxoT7PJ2MsA4q6Bf1uu1ZOoNzGRYGoamZCTYCH2oQvLtIAeGsoZNimX44JrrJaop IYdF8USBGOuy7e9VoaLvSVzfdZBmCyFKsPaub8Ye782nhqIRkkdgOGewbn3iW5sZv0kK HaYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=lWf2L/7/0kJstqtATWHSPUN0GZ1y1GJNZk/d2k+mTY0=; fh=o2NEO7whYKTHpWkWTsMRBr9F2jNwUsx+L4V9ynWRZGU=; b=R1bf917ZGtFhw8bSaOCIw9sODnb8ATZAqSSdyOru5Q3SgCQZ+zuywUMtTy+nep2eEy hgQ8ijzSWg58TM0fqQ0ed3woBFfsl99jJcXCDg2aaDYwej2dZc0TQQy+FozgPZ6ZnkSz 5x1Wr00bZc9hvmtrgCpG/5BL3CDBuzkomy3Yb6ZzGwHGUM1+rH4cfS2Qwef3hF+EaXmc OjHwLtgAlzNky2b5Tl1eLdC3cChtNp9NBrGP2z6gxKdYgFExggIIuihu3rTv0KECQ6Rt qDdPA+qWv505VkAZEHc4pNIGE8BzN9fI4gaD7jQC8DBuP2QE6HzM89JPgUB4kJz1ZVjL yFAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qx3HP3fr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h6-20020a17090ac38600b0026b22aaf29bsi11577213pjt.146.2023.09.18.23.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 23:37:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qx3HP3fr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0AFC880A1E37; Mon, 18 Sep 2023 23:37:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbjISGhI (ORCPT + 99 others); Tue, 19 Sep 2023 02:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjISGhG (ORCPT ); Tue, 19 Sep 2023 02:37:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB5C4119; Mon, 18 Sep 2023 23:37:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2128C433C8; Tue, 19 Sep 2023 06:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695105420; bh=fEmXkRf1BlO1aq/3eAd0nY8VtZl1PlGZ/UWAiyLWBro=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Qx3HP3frbS/kXweUYyGCFVJD7mZpTD2UVn6XZsXrerjWiRjyRnzalul/+ToeiMrr2 Jx3j5seVRpfHj88dx9Ufl4FCXDZQ3P+3nBA2iLtXAAL12zJ7j5hJHyf1CNLabIb7cb YhZVkpfKi0NWfBxvyI5mvQU+OJVzSeXT7EdLv/x/r9X/NX7MLd5l6rDrVabKeKVNbN 2EMmz4buEqwbWsHxwJma+z9dv3csHp7IC2aZUJxZZOyo2XPI3MECUMajvEClaFaWLN iFqugf2UZJd/8Vx8atexK9KAXpiRQuGEfK7bcUC/ABdOYyqzAmzbAKo2b14hpf7tgD hkLha342dA0VQ== References: <63b3742c-0efe-c096-c737-a0e0419480bd@outlook.com> <59dd15dd-5b35-871d-6d3a-ec779975b089@outlook.com> <0a72f462-8b8e-4dec-6ce4-f52e33423957@outlook.com> <20230919032138.GC348037@frogsfrogsfrogs> User-agent: mu4e 1.8.10; emacs 27.1 From: Chandan Babu R To: "Darrick J. Wong" Cc: Wang Jianchao , Chandan Babu R , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] xfs: use roundup_pow_of_two instead of ffs during xlog_find_tail Date: Tue, 19 Sep 2023 12:04:44 +0530 In-reply-to: <20230919032138.GC348037@frogsfrogsfrogs> Message-ID: <874jjqk6t2.fsf@debian-BULLSEYE-live-builder-AMD64> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 23:37:13 -0700 (PDT) On Mon, Sep 18, 2023 at 08:21:38 PM -0700, Darrick J. Wong wrote: > On Tue, Sep 19, 2023 at 10:06:56AM +0800, Wang Jianchao wrote: >> Ping ? Do I need other update on this patch ? > > Nope, I think this is ok... > >> Thanks >> Jianchao >> >> On 2023/9/13 09:38, Wang Jianchao wrote: >> > >> > In our production environment, we find that mounting a 500M /boot >> > which is umount cleanly needs ~6s. One cause is that ffs() is >> > used by xlog_write_log_records() to decide the buffer size. It >> > can cause a lot of small IO easily when xlog_clear_stale_blocks() >> > needs to wrap around the end of log area and log head block is >> > not power of two. Things are similar in xlog_find_verify_cycle(). >> > >> > The code is able to handed bigger buffer very well, we can use >> > roundup_pow_of_two() to replace ffs() directly to avoid small >> > and sychronous IOs. >> > >> > Reviewed-by: Dave Chinner >> > Signed-off-by: Wang Jianchao > > ...so let's see if the release manager will take this patch. > > Chandan? Could you pull in the various one-off patches floating around > on the list that have passed review? ;) I had picked this patch along with others sometime last week. I have pushed the new set of commits to official xfs-linux git repository and sent the announcement mail around 30 mins ago. > > Reviewed-by: Darrick J. Wong > > PS: If you'd like to send a pull request to push things along, please do > -- Chandan