Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4393820ioa; Wed, 27 Apr 2022 02:54:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuFdzqDYwbxZp3c4v2GzrgZGDghciq51CEk6F3jFBp34QjxgqJXLy8JbMCoDH2W2kkbP5R X-Received: by 2002:a05:6a00:278d:b0:50d:5320:9ef4 with SMTP id bd13-20020a056a00278d00b0050d53209ef4mr9167915pfb.50.1651053242324; Wed, 27 Apr 2022 02:54:02 -0700 (PDT) Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pv6-20020a17090b3c8600b001ca358df6fcsi1248964pjb.110.2022.04.27.02.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:54:02 -0700 (PDT) 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=@intel.com header.s=Intel header.b=h9txVrIY; arc=fail (signature failed); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D57822ACC71; Wed, 27 Apr 2022 02:24:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357811AbiD0FHZ (ORCPT + 99 others); Wed, 27 Apr 2022 01:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357792AbiD0FHV (ORCPT ); Wed, 27 Apr 2022 01:07:21 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C9278FD0 for ; Tue, 26 Apr 2022 22:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651035851; x=1682571851; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=z51alGE1KVz9zfzbErDpkPMFWKStXRW3j4vNl/HFiRQ=; b=h9txVrIY69e0elu5MIjM6t7RXnLhiUtdAANVIa8TmFYh9Zw2PkuKZ5CG 54BuH7fANBcgcfbjL7snYPvl45afx4sGQTwPhTI25efmDTYf35CODWAA7 j3pvntsXGa/T7+dLOiI2qg+yhYLHYnVfEgfInny7joESXj6T1J7Ufz3p3 gOUmvqb6OQOX+n8j82iVqA7LmWzq6p/47VXcRcgib6NfZws0fobjIysdK Bz3+1x/PjKzDPvv/fO4X/S5H5ymA9I5EA9PPO5x4c1/wnKkB1S0biDuGk d/21Rc6d0pvdyR3t6/X1GtD6heLVyPSeXadPmOstx7lsI7KiNMsgEeWWL Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10329"; a="247744191" X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="247744191" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 22:04:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,292,1643702400"; d="scan'208";a="564907124" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga007.fm.intel.com with ESMTP; 26 Apr 2022 22:04:10 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 26 Apr 2022 22:04:10 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 26 Apr 2022 22:04:09 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Tue, 26 Apr 2022 22:04:09 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Tue, 26 Apr 2022 22:04:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M6/3tt/HRbobhBxnicdz5vk2P+T2256XE+Lo+lretsmAw97yi2lyu/YNrdF+Lf5HVXhAHb0zHeVGr7nUqWAovL9OSKIyV32fGbIpLTZ1+dS2REm5zylH3sXqAYo7izr22qS9YLy+UqNtG4aX+GoSIDIYfkpi6S+j0MMgAFhOcaZmM+pAJiM6Ctp9x/x7GbI6blmGkaZol0kbfmJb5grydG9V14BXOuUpegVlVly7OBxd4vO1dkBTqJuJ/2ym33/p6w3fCWrV5EExeg26yEDHGXWqe68H9GKaCm99dNoyx9RWA4jld5t8GYhJnjdXYKcYKEaFjlm22dihcIZHk7ydMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OLvGdiEjbAsTZ0idFo1mljQMWO+EAGmGdiHPazV/N0w=; b=TzUohiqlxnB08PGCy7tf6OxAEM77aG1TGIxegCSUHaGBkasp/+ogPUwS6azQA8D8EeOQHrV1RXd5/Ru1k/JZtTQh8PQ2KuNbOXjFefwiBdSHUQ4qNJm9otola8kF4n5SYl8Yt/FXrduOrTxNo+bGJA7RnhCAu4HUQhbbMxT3W0wGjgHyS7Kt/JPZveaCaP0WU4WEu8JGdEdwkxb6Yq2mALhsXTMvyORVVskzLdVbPSRUo0dGmouCdVfuRnXFi0PFeEh0Z2P0gJs/SMS5heJaFiVJZK3cufEyvEaVDfs3JGijY6rIgcAwr7D1spk9M4/94Sm5eqizSn5ZhfUChvIAzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ0PR11MB4831.namprd11.prod.outlook.com (2603:10b6:a03:2d2::20) by DM6PR11MB2603.namprd11.prod.outlook.com (2603:10b6:5:c6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Wed, 27 Apr 2022 05:04:07 +0000 Received: from SJ0PR11MB4831.namprd11.prod.outlook.com ([fe80::100a:9eb5:3716:c6b1]) by SJ0PR11MB4831.namprd11.prod.outlook.com ([fe80::100a:9eb5:3716:c6b1%7]) with mapi id 15.20.5186.021; Wed, 27 Apr 2022 05:04:06 +0000 Message-ID: <1efe101a-da55-3043-c964-f23e10bcfa79@intel.com> Date: Wed, 27 Apr 2022 13:03:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.8.1 Subject: Re: [memcg] a8c49af3be: hackbench.throughput -13.7% regression Content-Language: en-US To: Shakeel Butt CC: kernel test robot , Yosry Ahmed , Linus Torvalds , Johannes Weiner , Michal Hocko , Muchun Song , Andrew Morton , LKML , , kernel test robot , Huang Ying , Feng Tang , Xing Zhengjun References: <20220420055807.GA16310@xsang-OptiPlex-9020> <43598597-72e1-6750-9bee-031fd463fc3b@intel.com> From: Yin Fengwei In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: HK2PR0401CA0002.apcprd04.prod.outlook.com (2603:1096:202:2::12) To SJ0PR11MB4831.namprd11.prod.outlook.com (2603:10b6:a03:2d2::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36c7f1c2-33ec-4153-d7c2-08da280b5b14 X-MS-TrafficTypeDiagnostic: DM6PR11MB2603:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XnNoQxUjtpF9boy4k8dUwmpZrOBJSCQAD85HQRtkmZMjUBkNVw9Ey9r+0m8uInVId0L0NdtGm7V+Md1aPRq6ICUqnjICxcFxuPvyELtAxMcB+Mc2kUQIOiHD/9Lhf0mYmU/wvlNEKPeyu1q0bOG9oakRWWD9tbZ8b8nSIAZY/18sRhkqcfs/I0IpdajU4GznpKLXi0WSue/9agmzJTMt+2S3MvqjZJ9BrrEfO5L94UKZog4zJXD5R96It8aSpvJj4elsKoenmj7zbUrXjNvm+1cPqNZO9eGAcIAB4y19IyrEmyEn8QupEExJBHwGGWPyFKt16cUJJz/Sv8TGMNJLQGqE0M9yb+Pt87RVbv7AeVa9FfffvufQP+nN1JWh9gOHyVLJ4BPQex9/nxgWcEU/DE1VTwwJkdHsBei9isD9pDiJeZYOdKu35P53yHT75CvsEZb1PMbYgih7cNVW2jmwsNQWmoddaNukYqrg3W6VMsA6Wg4YVRvCdT0SFmy4t+dfufcfaEq5ERu7hpNNDCAlvs18NBlstRychq4sbnu3K6IdMnJtfDlzZg6vlqdhcqckS7N7kEfXGoTWsAflV5XvhYhi+Tx+lw0t8WTDGtkalz+bqvxdxfqjpMWm2m0uEipzPrcaJw0fBVt/Q+xf/FK772WW6hqhSeLT4xgHefkfK/W7KfiONsGekw4YEtZNw9z+HyD542uK9/0mDqQJAMRa79G/EesVEE3nBvGSJnZ2vGJCID7Tqgj80FOsXJpTRoDB X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB4831.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(6486002)(54906003)(2616005)(86362001)(508600001)(8936002)(4744005)(83380400001)(2906002)(7416002)(31686004)(82960400001)(36756003)(5660300002)(66946007)(4326008)(8676002)(186003)(66556008)(66476007)(26005)(6512007)(6506007)(6666004)(6916009)(53546011)(316002)(38100700002)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dGVrUmlmZXVyZXpyQ1ZzdzFUYmVPdDNwWFp5UE5ad3BzVWk5QnQyclNzV0lW?= =?utf-8?B?OUN3RVBwaE8yTlZHL285UFpua21aWGlENUFJVDdEeEZweFdNV0lQeE9XaXIr?= =?utf-8?B?TFVuYld0NVJHR21QMHdXU1BMQ1JFWHA3SmRNZDhwVUdWMzNkQkJKWHJOVmtV?= =?utf-8?B?UXRsSXc2Y0xveW5SSHk3MkYwUm5uSWR2K2g3WkowWi9jQ3ZuaVNXSVV1bmdS?= =?utf-8?B?dzZqZnExRTdiL1lXSnNMUmVqeFBXUk1waXJSNUlRYkVXeDFBZEpGczd6RnZZ?= =?utf-8?B?dVdrU3RsUzBoTnpjSXJEbklrNm12T2U4L2hoUlhQbkpIRFJOUThWaWsySnRH?= =?utf-8?B?Ykp3ZVQrN3R5WjR2Mn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t1RTY2NEplbWZ3?= =?utf-8?B?NUxsdDVEckE5N3lIenFqOE1GMzUvUlpPdHFTaHIwUUp2cTlhTWszRkg1QXYv?= =?utf-8?B?L1ovVTVIekFUMWpOUlR6UmRFTk1VTklnUXF1NUtEWUtkYmI2TGJGNXl3ZklH?= =?utf-8?B?RmtiMGs0QTdQcnlaVk1sWTdOL0hXMDNMUklvd3JWWWtyM3E0eEMxSCtRZVgw?= =?utf-8?Q?RYB6ujRfqS+trr4g=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 36c7f1c2-33ec-4153-d7c2-08da280b5b14 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB4831.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2022 05:04:06.7002 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uJV07PEFh6bUMFl5JvqUMmnxwad3DDH1vLS+TtS4/1feUtnT+YX6n48mJQfxdC0m0Osk5SiMXjZhP748DimjKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2603 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 4/27/2022 1:02 PM, Shakeel Butt wrote: > Hi Yin, > > On Tue, Apr 26, 2022 at 7:53 PM Yin Fengwei wrote: >> > [...] >> >> If I comment out one line added by the commit : >> static void memcg_account_kmem(struct mem_cgroup *memcg, int nr_pages) >> { >> /* mod_memcg_state(memcg, MEMCG_KMEM, nr_pages); */ <--- comment out this line. > > Can you to comment out the following block instead of the above line > and see if there is any impact? > >> if (!cgroup_subsys_on_dfl(memory_cgrp_subsys)) { >> if (nr_pages > 0) >> page_counter_charge(&memcg->kmem, nr_pages); >> else >> page_counter_uncharge(&memcg->kmem, -nr_pages); >> } >> } OK. I will give it a try and send the result out. Regards Yin, Fengwei >>