Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4336861ybl; Mon, 26 Aug 2019 08:58:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwBzc2vdXlXQ7Cp6+inXa8tnNMUjGps4uHcrcdLdLE+r286kkUHgexdU9QDNhbv96bOia7 X-Received: by 2002:a17:902:b115:: with SMTP id q21mr18798196plr.76.1566835103681; Mon, 26 Aug 2019 08:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566835103; cv=none; d=google.com; s=arc-20160816; b=jK9ZZMulcr/DXIwy6w5F5swYDaAv/2+QcMOy910TDed359nj72fPasvqd4rTPOWiRV V+OjRbecFvkWJnDLS9zGdCh/nySNn9COLJc1ejQAE4qdKF/ZBUBgFI4QWRe+1qcmZfrf qacvVFxQ+P1bYhxF0l/r3H1jnaFkTlfSOPGRc67wridJXKBYgg0q3z8ugjUmyLjpkSPM nukWvEvHfBCg/Oa2s1mPqrvzOFC+PrL7UyQJCjjgQqSa+DLjC6nP8ecMMSv1oiio6f2q DD3ktZvj+FdUKl0pMVK1dFYsR2aDQAJaoSlOLXBavqmZfYDsUXb3+637UpITKpxepFUr 9ugg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=R/DpKoBIQan+4jhGUcs3h0y9PoRPcw+Qp2yhXj4xdyA=; b=qcstqafN6O8xBveMDBytMEt7wLOiVSUnCz6nqy82vsSNXBfIs2HrRdNU72n4TPIe15 nkLcvQhnGLe5bez3yeBdJQV7poSCEl9pSSOyaQ6SQMelGfF2hGfVtKL3jPFgq+MzYzjI NAw0ImFrU3GJlw+ouWbNagkWugdWMQkinhbV+dyXhBlqpFjky0HkR9GzQ88OQbHLgExa taCz5OMDxUspjVvcNtJA7gS9lAjCN4ZUPeScGA9NrNE+x+Zvc4rg0y61nFJ0UFirXy0F BnRyxNdQX4hz9M2jNh2BS9XoKKhEhXdRdUah9/Vddik6ny50lnd+311ilHBK/Hi/WzBD phZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si9101124pgi.347.2019.08.26.08.58.06; Mon, 26 Aug 2019 08:58:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732113AbfHZP5y (ORCPT + 99 others); Mon, 26 Aug 2019 11:57:54 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:47819 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727864AbfHZP5y (ORCPT ); Mon, 26 Aug 2019 11:57:54 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-111.corp.google.com [104.133.0.111] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x7QFvSxI008412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Aug 2019 11:57:29 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 22FD042049E; Mon, 26 Aug 2019 11:57:28 -0400 (EDT) Date: Mon, 26 Aug 2019 11:57:28 -0400 From: "Theodore Y. Ts'o" To: Shaokun Zhang Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Guo , Andreas Dilger Subject: Re: [PATCH] ext4: change the type of ext4 cache stats to percpu_counter to improve performance Message-ID: <20190826155728.GE4918@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Shaokun Zhang , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Guo , Andreas Dilger References: <1566528454-13725-1-git-send-email-zhangshaokun@hisilicon.com> <20190825032524.GD5163@mit.edu> <20190825172803.GA9505@sol.localdomain> <20190826004744.GA27472@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Aug 26, 2019 at 04:24:20PM +0800, Shaokun Zhang wrote: > > The other problem with this patch is that it initializes > > es_stats_cache_hits and es_stats_cache_miesses too late. They will > > get used when the journal inode is loaded. This is mostly harmless, > > I have checked it again, @es_stats_cache_hits and @es_stats_cache_miesses > have been initialized before the journal inode is loaded, Maybe I miss > something else? No, sorry, that was my mistake. I misread things when I was looking over your patch last night. Please resubmit your patch once you've fixed things up and tested it. I would recommend that you at least try running your patch using the kvm-xfstests's smoke test[1] before submitting them. It will save you and me time. [1] https://github.com/tytso/xfstests-bld/blob/master/Documentation/kvm-quickstart.md Thanks, - Ted