Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3714894ybi; Tue, 2 Jul 2019 12:12:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWZrF9yT+LG0rTxBNXsMmizbkUVX9xnaWhQGh6EgH7W5IZdjlj9N9zOWtT23iWK7oBp664 X-Received: by 2002:a17:90a:db08:: with SMTP id g8mr7123145pjv.39.1562094771196; Tue, 02 Jul 2019 12:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562094771; cv=none; d=google.com; s=arc-20160816; b=hLhygpwZ2jHVhfu32Bdd04wi79xMnxTZiqA8XnWdqurl6JIMgB7FIngu8Qnfz0RlnD KdmIzZZYMOj47Ap/oF5+ezhYyHmLdEHhe5SouJPag0DmYBB3B+lueIHLx/ZXATGUfP88 hUc2ytU8ffOOFlQdKjjjyTEULpaT+tuaL1s20Ttx8wq4E3Id2uGlJM8QOUmYHLpXwGfo tSwjk8dkgZliG815zrmUvTJDBCpw8q8ZP4UygQSXUuBHrW3+SZvvWTg0bi6tRLHmKsJs AfNNkoDoVgofgB+xuZl+dvh/7C2jdmNMLglp9LiEZK+r2uWLFNYRQhlPwwccjcvmm34I ktSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=ustizs9nQ/dvH8f3l0VeRsX7a+gE2MyRDhi2ExuynrQ=; b=V2dTfofJtE1v35P+YqiInM752uDfnm2KcJbdc18CTGKLgVxOYFZbcDbQQKs6Hf0vbZ UlKOh81cn3Ywa49954OsNoRz2CnrnlqjUmSMqEG8HqqhBCd2KmNEsUj1e2KPK3Vk1lhr qdZd0OaZJSEo8BDCKzhtxbnCA9C0KWg0xOXMyGafm8+2FNtR+7ozdirdYDA3GBBqEiJV SFd88SnldC8FRymo3t0apr139T4pwQYpeDi3ssoaCmUliJcjSyR1vbCSpAwAQZS/X6jk 1xEldR0XJsym3jqoIP6yz2TcaO10Fk60VF2tCPD3/Hoe7x13P3UYa9Ir+7fnZ1/laxMO Rjrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KYjUX95h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si13935103pfr.42.2019.07.02.12.12.36; Tue, 02 Jul 2019 12:12:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KYjUX95h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727053AbfGBTMK (ORCPT + 99 others); Tue, 2 Jul 2019 15:12:10 -0400 Received: from mail-pl1-f175.google.com ([209.85.214.175]:44967 "EHLO mail-pl1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfGBTMK (ORCPT ); Tue, 2 Jul 2019 15:12:10 -0400 Received: by mail-pl1-f175.google.com with SMTP id t7so866678plr.11 for ; Tue, 02 Jul 2019 12:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=ustizs9nQ/dvH8f3l0VeRsX7a+gE2MyRDhi2ExuynrQ=; b=KYjUX95hqXNvTfv32exnncUWRJEABX4uz/Gycd9AFxTIST4OXEiGp4h81QjfCiwIH7 ycunBDhPiYn7b+bF4IYG/9nVqdpsTIUVKM6pP0OyRG8kCdFjOHAzw4Wa/lu6Z6d2u4d5 PaScNBBegnKeTlIExx5CGoRSHq4bnnGkAkH2VKz+Fgje571NP5805RomuRs3D20LQZkw lCxjPGH/aymTPbHLFypkVaN9qcfE5RKJIyQ6CyOAL/HkqGfWVZER54G9nOVrdbTFy8/g FXpYf6REqgjmdxuLG+qlfCONPcsujmuGvEVQeMm4pzqqYcntCojNNQfHWLZQALSjhCW3 8MHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=ustizs9nQ/dvH8f3l0VeRsX7a+gE2MyRDhi2ExuynrQ=; b=Sq0BMBlH+l8qOH4B+RmsA6lIBXB53npIVHpRN6lDbEn0ETwsCviBNIu4sZ0uJ4zXMm aI4N3LFkZ/zo3UPUIo4RMHANOaSxw5JYxyt9S5ptLbEkR2vT+W3Y+nZaoUDhpz8EDMEy WZco354LY8kMrTMalJB0zcxoDpWro1s3TtBYK1OHY0jqgUkYf+DkT/YbyJ+YiYc7rj5E S7TCavfecbArk5c38/2O7qOZPqssy54QkHN/odroM+KPMbUvZDJcFR3FdejAEUTwwsZn oiTQtzTNEftYlTT7HNr0mAH9ZH1+hcLIGPmWSUeqQ1wX+njVyOVOWo9DQG1L7stZL1Vp ltMQ== X-Gm-Message-State: APjAAAWDZh42vsVEvneJN0PrmpuspJ76xr8/uJjuknCNIxLHVTLMsFcG pw9iIHJGTIqEri+K51IsjPnxIg== X-Received: by 2002:a17:902:9897:: with SMTP id s23mr36862985plp.47.1562094729587; Tue, 02 Jul 2019 12:12:09 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id l44sm3000865pje.29.2019.07.02.12.12.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 12:12:08 -0700 (PDT) Date: Tue, 2 Jul 2019 12:12:07 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Waiman Long cc: Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Roman Gushchin , Johannes Weiner , Shakeel Butt , Vladimir Davydov Subject: Re: [PATCH-next v2] mm, memcg: Add ":deact" tag for reparented kmem caches in memcg_slabinfo In-Reply-To: <20190627184324.5875-1-longman@redhat.com> Message-ID: References: <20190627184324.5875-1-longman@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Jun 2019, Waiman Long wrote: > With Roman's kmem cache reparent patch, multiple kmem caches of the same > type can be seen attached to the same memcg id. All of them, except > maybe one, are reparent'ed kmem caches. It can be useful to tag those > reparented caches by adding a new slab flag "SLAB_DEACTIVATED" to those > kmem caches that will be reparent'ed if it cannot be destroyed completely. > > For the reparent'ed memcg kmem caches, the tag ":deact" will now be > shown in /memcg_slabinfo. > > [v2: Set the flag in the common code as suggested by Roman.] > > Signed-off-by: Waiman Long > Reviewed-by: Shakeel Butt > Acked-by: Roman Gushchin Acked-by: David Rientjes