From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51B2DEE01F6 for ; Wed, 13 Sep 2023 17:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231364AbjIMRiL (ORCPT ); Wed, 13 Sep 2023 13:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjIMRiJ (ORCPT ); Wed, 13 Sep 2023 13:38:09 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB1E9198B for ; Wed, 13 Sep 2023 10:38:04 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-770ef4d36f2so6645985a.0 for ; Wed, 13 Sep 2023 10:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1694626684; x=1695231484; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FMB8mr1jou6Rc6ugTyWCVcw7o80clyz1E9xOmdaAf/g=; b=kTwi6NX3V/9UWzNvuUpTDpwNW0VyZNo2IExCr5YnmiInC1mQy40SbrCZyC74Foy3E+ BQiwkLCpcA5Cenolto1lWgjYYgoDbncayWfuOIwkhWn2xQmAoMg+OWzFTUdVhJ9yR24U 6PVpmgZKa5RNkaZaT3h31KPr6ENVlVDvMFLlFP0rAMCcfrj3eN1hlRPSg1x6e0xIjUgt SOvXKcr62/1fY5MGWVvVxifyyICOvC7DIfB6kyg4KXx8HU935fhHFG7RLrT9SVJk4246 yFNBAjeIfY1/L+UlYjmE4VGuGXJHDCaWFeE08bgYXPu7uetoFeDCVYibPPKBQ1sfi5qP rDXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694626684; x=1695231484; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FMB8mr1jou6Rc6ugTyWCVcw7o80clyz1E9xOmdaAf/g=; b=cUj9D+qcK4TGFmdWyerp/KwxNKjIDiZTXG9qvlFWVCFL5jyR4a8u8NZ4BWdn9IP9+2 f0h8zVtILC9xaUTzig60kyAkkgHnGfjaBUDgr/tDB9JkvWkCyanmB64iijW+59elE7ig j2mL449cJI46ICo5nH2QJDs/eGhH5Oj9tsus/X3yU8VGeLMuAQb0uF1OSjpmKRz1LFGI vbCAah4WWO7mhCqRCjok4zh2ScBvlMlNOvRnr2UJH6Zpl9dli53pt+oM3ZChqrddWZ2B snPWYK4whJLTc5xwK1Vu1e1Tu8/g1QdrQvJ2jyOZRQuW9/ZM+7n30Houye0hZen2lOHm epvA== X-Gm-Message-State: AOJu0Yz7PrFEPmdRbQbp80j6BYyzI1tBc+K1AOhizKCaKeBn/LT7Ejy0 F22RTMLqpxukf7g1z321kWUHsw== X-Google-Smtp-Source: AGHT+IEOZNIjnmaONDw+RYYdhNTLQJe5QV/sjKmIyj9HhVFvHP1lNCA+hxznbQf+EyW13xiyrZY91g== X-Received: by 2002:a05:6214:4c0d:b0:635:e0dd:db4b with SMTP id qh13-20020a0562144c0d00b00635e0dddb4bmr2786283qvb.37.1694626683942; Wed, 13 Sep 2023 10:38:03 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-3012-16a2-6bc2-2937.res6.spectrum.com. [2603:7000:c01:2716:3012:16a2:6bc2:2937]) by smtp.gmail.com with ESMTPSA id h8-20020a05620a10a800b0076dae4753efsm4050120qkk.14.2023.09.13.10.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:38:03 -0700 (PDT) Date: Wed, 13 Sep 2023 13:38:02 -0400 From: Johannes Weiner To: Vern Hao Cc: mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, akpm@linux-foundation.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xin Hao Subject: Re: [PATCH v3] mm: memcg: add THP swap out info for anonymous reclaim Message-ID: <20230913173802.GA48476@cmpxchg.org> References: <20230913164938.16918-1-vernhao@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913164938.16918-1-vernhao@tencent.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 14, 2023 at 12:49:37AM +0800, Vern Hao wrote: > From: Xin Hao > > At present, we support per-memcg reclaim strategy, however we do not > know the number of transparent huge pages being reclaimed, as we know > the transparent huge pages need to be splited before reclaim them, and > they will bring some performance bottleneck effect. for example, when > two memcg (A & B) are doing reclaim for anonymous pages at same time, > and 'A' memcg is reclaiming a large number of transparent huge pages, we > can better analyze that the performance bottleneck will be caused by 'A' > memcg. therefore, in order to better analyze such problems, there add > THP swap out info for per-memcg. > > Suggested-by: Johannes Weiner > Signed-off-by: Xin Hao Acked-by: Johannes Weiner