Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4666667rdb; Fri, 15 Sep 2023 08:47:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEc243S9GcE1bccypYZZN4BYpgiJB/dAfQq7h6F73jeUvib3czhx6zBUtgS1NvlPA1uN8ad X-Received: by 2002:a17:90a:5608:b0:26b:27f6:9027 with SMTP id r8-20020a17090a560800b0026b27f69027mr1837694pjf.1.1694792854140; Fri, 15 Sep 2023 08:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694792854; cv=none; d=google.com; s=arc-20160816; b=yoSD9BEOZplxthFyRug3i8HWhdiYrL4eisww3Ao+f6qMwiwk3zv1GkjoXgziGwXj5C y3WjDjI8rGg97qhvmBdTkGiRtmF6hfFIy7HLwCP0o96nm02kbIdQwi/tl/bCoO7VXZsC nGN35WoWtR/3cCs4QY9Ky2kO6WAUfjMR1e2gbVjWXb64AFsdkxHXWGqI0MQoPKga1Z2x UWlIHiwiRcL46GfNapk71VLqPMOJ+iU8NMwBqUez1Xq92r5/TU+fof3MnZbwOFLdT6SB itDP02fvcBAl348Sup17alxAAH4zwPkhkkvczso4fGbO2K40AkeVyHE0bj9bZRbPjhCv 7GfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FMB8mr1jou6Rc6ugTyWCVcw7o80clyz1E9xOmdaAf/g=; fh=Rhg6ZBXQA4fZersjDe2tU1HtZn2/8IOlJnDyGvWM6wk=; b=xNEDGUTnw9OFSQvxwTKu3CLxiUvbCiGIIDnyWL/kjzH/fWaQMhpmVvVoKNZfcES2BX mu+s5STu/7TOneUe05L+Nvxiqm0RAkhXQMrGHduPK9TIUHLrc0KAYg+xMnC4U9Oz5Le4 5oNbHQOFlWxWRSBE8wX09iw5IpxaBk9oNli+j2DSZO1eIWiNHjgtjYRGvoHvbUY2HzwW atxb92kgEEfpVobNCI7vAQf6dyZsW7/jySxUNbKzYNkzFZCTSQv6Rs2JL2We2tII7CmK KAYAWQDg1Bruf8/nr9f+5ngfq9GNsbsy8MZzoL0E5FjKEkf8B1IvMEPbSJ4OsGQtvGfp HdOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=kTwi6NX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id nn7-20020a17090b38c700b00262f798b614si3730557pjb.51.2023.09.15.08.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:47:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=kTwi6NX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6772C82B9283; Wed, 13 Sep 2023 10:38:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbjIMRiK (ORCPT + 99 others); Wed, 13 Sep 2023 13:38:10 -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-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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 10:38:10 -0700 (PDT) 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