From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB87E146596 for ; Fri, 19 Jul 2024 17:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721409266; cv=none; b=JJSrTpaneDumtIBP/ITJAxg2/cHed/Dko8wW8JmP8ZZYg3enMchUqDGM6KWaIBkJHOXDsdz+G8lRDUwQCWJ9FUkyovF8+q/uj7uuDcJ/seXBVrqpKDkaupHUYiEwkErH4TUVY4t3MM9cz1DYq9eYpLCczegRV3RDzZ1a6hslIWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721409266; c=relaxed/simple; bh=mYaVUoz6q9HApOTCAivw+gLMnYFegVEsw6n+AQmkCgs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IiyaCv9VSnR71WulLOu1fsLtTpXzh7YP7KahboHJBlTiE/8mT/ntDQp82psPyGi+0+a9JgYw/poNCv6u/z0qFnLqZg/w2lPNWe+pbNT7y3UWORFh+CIn8QaAlJspIgSFuLe7+2WL05AeGff8DXTOi04nvNSszffFfD0KDGZyIzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=xWNjI9oj; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xWNjI9oj" X-Envelope-To: oliver.sang@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1721409261; h=from:from:reply-to:subject:subject: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=egmwmVsNFFcGbmO5tacperJARE+TcCGVGcK24AEGTAU=; b=xWNjI9ojEHouTgxIsAiA0MEGVrJzRyHPL2fd29qfE7B8duTglwa8hajluUCXqRMVqJRMFy DLZFqH3LWoNchuQFl2Dt5jzV3+JbcZJioVKLPElJ/8YAo3PnFqJUh+JvFUqngGyLcX9rmG rDa0nVogSnkQk7lvNEb8gz1tvcipKDc= X-Envelope-To: oe-lkp@lists.linux.dev X-Envelope-To: lkp@intel.com X-Envelope-To: linux-mm@kvack.org X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: shakeel.butt@linux.dev X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: mhocko@kernel.org X-Envelope-To: muchun.song@linux.dev X-Envelope-To: cgroups@vger.kernel.org X-Envelope-To: ying.huang@intel.com X-Envelope-To: feng.tang@intel.com X-Envelope-To: fengwei.yin@intel.com Date: Fri, 19 Jul 2024 17:14:16 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Oliver Sang Cc: oe-lkp@lists.linux.dev, lkp@intel.com, Linux Memory Management List , Andrew Morton , Shakeel Butt , Johannes Weiner , Michal Hocko , Muchun Song , cgroups@vger.kernel.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com Subject: Re: [linux-next:master] [mm] 98c9daf5ae: aim7.jobs-per-min -29.4% regression Message-ID: References: <202407121335.31a10cb6-oliver.sang@intel.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Tue, Jul 16, 2024 at 03:53:25PM +0800, Oliver Sang wrote: > hi, Roman, > > On Mon, Jul 15, 2024 at 10:18:39PM +0000, Roman Gushchin wrote: > > On Mon, Jul 15, 2024 at 10:14:31PM +0800, Oliver Sang wrote: > > > hi, Roman Gushchin, > > > > > > On Fri, Jul 12, 2024 at 07:03:31PM +0000, Roman Gushchin wrote: > > > > On Fri, Jul 12, 2024 at 02:04:48PM +0800, kernel test robot wrote: > > > > > > > > > > > > > > > Hello, > > > > > > > > > > kernel test robot noticed a -29.4% regression of aim7.jobs-per-min on: > > > > > > > > > > > > > > > commit: 98c9daf5ae6be008f78c07b744bcff7bcc6e98da ("mm: memcg: guard memcg1-specific members of struct mem_cgroup_per_node") > > > > > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > > > > > > > Hello, > > > > > > > > thank you for the report! > > > > > > > > I'd expect that the regression should be fixed by the commit > > > > "mm: memcg: add cache line padding to mem_cgroup_per_node". > > > > > > > > Can you, please, confirm that it's not the case? > > > > > > > > Thank you! > > > > > > in our this aim7 test, we found the performance partially recovered by > > > "mm: memcg: add cache line padding to mem_cgroup_per_node" but not fully > > > > Thank you for providing the detailed information! > > > > Can you, please, check if the following patch resolves the regression entirely? > > no. in our tests, the following patch has little impact. > I directly apply it upon 6df13230b6 (if this is not the proper applyment, please > let me know, thanks) Hm, interesting. And thank you for the confirmation, you did everything correct. Because the only thing the original patch did was a removal of few fields from the mem_cgroup_per_node struct, there are not many options left here. Would you mind to try the following patch? Thank you and really appreciate your help! diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 7e2eb091049a..0e5bf25d324f 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -109,6 +109,7 @@ struct mem_cgroup_per_node { /* Fields which get updated often at the end. */ struct lruvec lruvec; + CACHELINE_PADDING(_pad2_); unsigned long lru_zone_size[MAX_NR_ZONES][NR_LRU_LISTS]; struct mem_cgroup_reclaim_iter iter; };