Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3870075ybl; Mon, 26 Aug 2019 01:43:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7M/KWEUfNDuOeNJksC9G0j3UIJp5w7PnXqVfXNKp8GMpOUlFJu9rzq5ICRCiI4YI0AIk5 X-Received: by 2002:a63:10a:: with SMTP id 10mr15510766pgb.281.1566808997752; Mon, 26 Aug 2019 01:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566808997; cv=none; d=google.com; s=arc-20160816; b=d5q+UgDUrynXujg4cxQSqVag0WmbgLIRmdui5jsjizFsSDeBZUixDMdhbKyFnNMoB+ VzCk16l92WmX+x+gS2V1nG4tO0T0XJROZBVghWNq4cA74F9TB2sSI+WewnaMmJe/denT uOp/0U66fbgaSXOwcIfaIgVKYAmYCPwZGPG6KP5j+NPIvLRyhKR4OTbqxy2gjLFLUAjO 5J6R3q3PUQSK27CvdUMNBKL2DAVztX5ttlX2SB4U3mHBcxlUbFG7r+ifZH9khMk+kftz /V+6tqFc+IvYisq4UuEHrRlEnrSh4y6/t9DrBq016mL7BxJSwYRq4KnKM3ZlMU+w6IKo vF6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=Gr9yQeM9YOiIkuFGBJsv4sRqIa48a4xpRKgTaoGM4oo=; b=o4Y06PhyduzYiisRmUg8UJh4r+s4rXSK/vGotDeOEeLauhGyew/sdXM5QWdEMvQcm5 OPX3wRUJ5ROgt32V6SgkaSL2aMOkLfKILeUMT8kIQR0Uv3I9Hfi5vMfsr3VTVM38aSj1 nXyi9cizma0RE0ZmOjqPqkCmrUmuKogpCgPVIhW8BZPbr8x/9AwyRS7EPtG0fYISTS/w 8dnTAKsmIEi8EEt47yS0v/+72UWi19FSNnUaEreZ/IYRG7tuTS//iuE6yFaLChcDHRh6 j0OmINtBDm1S0BLMqpIN1Ixn3YPXsNPPB7IHwa+6EWOvV699Csvt5BTtpAGOCeLj73FG kVqw== 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 d8si9023829pls.0.2019.08.26.01.43.03; Mon, 26 Aug 2019 01:43:17 -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 S1727974AbfHZIYd (ORCPT + 99 others); Mon, 26 Aug 2019 04:24:33 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5213 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727798AbfHZIYc (ORCPT ); Mon, 26 Aug 2019 04:24:32 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id AD1C04BAE3479113E447; Mon, 26 Aug 2019 16:24:28 +0800 (CST) Received: from [127.0.0.1] (10.74.221.148) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Mon, 26 Aug 2019 16:24:20 +0800 Subject: Re: [PATCH] ext4: change the type of ext4 cache stats to percpu_counter to improve performance To: "Theodore Y. Ts'o" , , , 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> From: Shaokun Zhang Message-ID: Date: Mon, 26 Aug 2019 16:24:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20190826004744.GA27472@mit.edu> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.221.148] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Ted, On 2019/8/26 8:47, Theodore Y. Ts'o wrote: > On Sun, Aug 25, 2019 at 10:28:03AM -0700, Eric Biggers wrote: >> This patch is causing the following. Probably because there's no calls to >> percpu_counter_destroy() for the new counters? > > Yeah, I noticed this from my test runs last night as well. It looks > like original patch was never tested with CONFIG_HOTPLUG_CPU. > Sorry that We may miss it completely, we shall double check it and make the proper patch carefully. > 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? egrep "ext4_es_register_shrinker|ext4_load_journal" fs/ext4/super.c 4260: if (ext4_es_register_shrinker(sbi)) 4302: err = ext4_load_journal(sb, es, journal_devnum); Thanks, Shaokun > but it's also wrong. > > I've dropped this patch from the ext4 git tree. > > - Ted > > . >