Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1040409pxm; Wed, 23 Feb 2022 16:36:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI3XzmCNeKATgC2stMwdWNvFq/0eKKVHKUfP+6n7CL+YzTiIg7ncW3yoOpDbhyzCIVkeyf X-Received: by 2002:a17:90a:7885:b0:1b9:b61a:aafb with SMTP id x5-20020a17090a788500b001b9b61aaafbmr166686pjk.202.1645662982828; Wed, 23 Feb 2022 16:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645662982; cv=none; d=google.com; s=arc-20160816; b=bq/NuRh0wSv/Z4dlSSx6R9x1pqsnsN2fChX0thTNXRvDcCBCcoGeNxHlEY7/Vjv/lC JUBPJhrbI+vTXW2ZJ5N1zVNqkXJBfdGUuSK25ZCFNRgwiKO4FRthNsI10SL9DPlImiUg KWn8TJWY5KeAXxXIIPC+Xkv5GC95EfpDEQJTFutyXGdieazkkObqJ1BFOWM6+zCiiq1S z4Q/hc0KHqrm2abyIql6nmDTEX4SAcrpTLrLDNSzLZkBSqPpsAU6RejfT8ajcyaQQfIa lgOtLFH/FgNX9Lj8yhcdcJEH3cjwr4XrWBFS2S0Eif/ExTgd2A9gj0XoNkGzRDHeFSA1 ccDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=lHKLDcXaApTqsl2KQS4V+/Sm+LIozq5sgKx8GXifXUE=; b=bC8626dXrabte7Q2NpvW97OjjrcdPHtaXiMMHwsRaMtIQPfKvGTjfHjVomyxNmNuHb BUjONr9O+Wi5YxSOun9hTiJlXnM8tM18SUmDp/YA3RBCjL0/akEcl3gUfnQ8EbdDU8D+ R3njy5lowYBjVwjWpWwvqdg+RijLPCtmLzFovCs5EtGbPR+p0+dsUp3WiOm5HRpv2UuA TTrH82TAys/Ud02LOgMBFsZblOHeWdQdOabp1vxNDU54v5zelt/gDWfk08y7k88S2C7I gTMJWwxWnS0Yr9q5ohmVCusdqCMyPXq8Rc/lFnJX0pb1AvNwS596hzE2oKSWMk4uyImD guxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="egv/jm8R"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=DjQTeQ5j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a15si847760pfv.342.2022.02.23.16.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 16:36:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="egv/jm8R"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=DjQTeQ5j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EC2469BB81; Wed, 23 Feb 2022 16:35:24 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240190AbiBWLxt (ORCPT + 99 others); Wed, 23 Feb 2022 06:53:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235966AbiBWLxs (ORCPT ); Wed, 23 Feb 2022 06:53:48 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84C3E57B1A; Wed, 23 Feb 2022 03:53:20 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 40A3F1F43D; Wed, 23 Feb 2022 11:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1645617199; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lHKLDcXaApTqsl2KQS4V+/Sm+LIozq5sgKx8GXifXUE=; b=egv/jm8RvovquqsfWcuJRwBtKBVUu7OVZoV08A97BI/bojJrZKRGrPOawsaSoFdwUgRrJ1 Y8yOK1HZXCJlxhkg+3ItPW4f4Y7L7OGxC1fDYlJbmwORfiSY2i+owYRWiMkGiTWKBIJNSz GYOIjG7+B3d4gYXjP41jiRgKBHjUWo8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1645617199; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lHKLDcXaApTqsl2KQS4V+/Sm+LIozq5sgKx8GXifXUE=; b=DjQTeQ5j1zEB52lzsMsHmvZJjvTFizTsSZHs11jPamrSA1NDxfM+1XbJwJl372CHKtWIq6 AgOLK5j3rK2xnAAA== Received: from quack3.suse.cz (unknown [10.163.28.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 308D7A3B81; Wed, 23 Feb 2022 11:53:19 +0000 (UTC) Received: by quack3.suse.cz (Postfix, from userid 1000) id 67980A0605; Wed, 23 Feb 2022 12:53:13 +0100 (CET) Date: Wed, 23 Feb 2022 12:53:13 +0100 From: Jan Kara To: Ritesh Harjani Cc: Jan Kara , linux-ext4@vger.kernel.org, Harshad Shirwadkar , Theodore Ts'o , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 3/9] ext4: Add couple of more fast_commit tracepoints Message-ID: <20220223115313.3s73bu7p454bodvl@quack3.lan> References: <90608d31b7ad8500c33d875d3a7fa50e3456dc1a.1645558375.git.riteshh@linux.ibm.com> <20220223094057.53zcovnazrqwbngw@quack3.lan> <20220223101159.ekwbylvbmec5v35q@riteshh-domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220223101159.ekwbylvbmec5v35q@riteshh-domain> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed 23-02-22 15:41:59, Ritesh Harjani wrote: > On 22/02/23 10:40AM, Jan Kara wrote: > > On Wed 23-02-22 02:04:11, Ritesh Harjani wrote: > > > This adds two more tracepoints for ext4_fc_track_template() & > > > ext4_fc_cleanup() which are helpful in debugging some fast_commit issues. > > > > > > Signed-off-by: Ritesh Harjani > > > > So why is this more useful than trace_ext4_fc_track_range() and other > > tracepoints? I don't think it provides any more information? What am I > > missing? > > Thanks Jan for all the reviews. > > So ext4_fc_track_template() adds almost all required information > (including the caller info) in this one trace point along with transaction tid > which is useful for tracking issue similar to what is mentioned in Patch-9. > > (race with if inode is part of two transactions tid where jbd2 full commit > may begin for txn n-1 while inode is still in sbi->s_fc_q[MAIN]) I understand commit tid is interesting but cannot we just add it to tracepoints like trace_ext4_fc_track_range() directly? It would seem useful to have it there and when it is there, the need for ext4_fc_track_template() is not really big. I don't care too much but this tracepoint looked a bit superfluous to me. > And similarly ext4_fc_cleanup() helps with that information about which tid > completed and whether it was called from jbd2 full commit or from fast_commit. Yeah, that one is clear. Honza -- Jan Kara SUSE Labs, CR