Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp83058lqh; Fri, 3 May 2024 14:13:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWA1v8DcGrBLM9gGhZJb4TqpYqasiFPK450++YE2x270/GAcLxtFOXXhJEaAHFXnODZYyZn5LxU1zYHWfc83AFViEnYtY0kd8B/wTSOTg== X-Google-Smtp-Source: AGHT+IEN7KLywL5RS8lJhjWC/47BgO2cqhExs+zP+Py5u/wRRrnkzO0CDEa8DrT/7furBFBqfjDi X-Received: by 2002:a05:6a21:8015:b0:1af:66e6:bfdf with SMTP id ou21-20020a056a21801500b001af66e6bfdfmr3663821pzb.15.1714770811917; Fri, 03 May 2024 14:13:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714770811; cv=pass; d=google.com; s=arc-20160816; b=D2IiHk2cEvUrEzQFft7oqKD7uOANfM4Z/JoNiBeeUnrCAnESZfGxOMdCH2GFPzFxky AjVftXWC7bxOJ0aKWjT98ogBreVNSlvxSAzeiVFBkWf25ImrBQocglQXGe3q8q9mlO1i Vfh3NSKhVcsHauKbdh8bO9v5e/SDCc6/Dp1hopz2P0Z56Xa1pV94PniCPAAlc4u7q15y mnLLhxP44ne0XjrNXJTKVjM+q/ZBKYkBYU1Wtb2lFjSDVWsN4hHurSk2z0bMiZL/3PrC CjQvoCw4Y4cnYxKeRbSY+KbtUJR1ccE660HGjppCQDX5jl8I4/5WWhOZELDN8NxjJxrP sy4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=rdXn9sax21XZKKXDAA9jeDaxTMIGpElRCzeux1UVVi8=; fh=lzrOrC0W3ZoJLLSh2YQ2SfmkFA6wWgPj1lc//7JxBWk=; b=N339VE8Rt+wHqpXM4s5k18VIKlNUdra2OZxHX9zoyJHEwfEOgTv9cjsB7ln7QseWaO gwMRJfQq9n51MjRa3fsm2A2dOn1p7xKEV/L5KdL99VpTII9wlEAVlVXKIUdZ0TCyPoFe Q6bUZahvqrJ/w/srEejRvfcRv4WUwNWi8jMxxJ9lM1HZlNxzBTOMqBVjOOITCaeSGPuC yjomd+cSu+C0Wma8FD7wTgeoObFec+YfyaLKffCUdUFhXL9LL0MlMgP310HPY3tNIqK9 ZuNfliSUNIBKGFL4wMa0jZlHr28V1Cea3hzF99ZQa61bENm9Vue8iSwg7H2B5pr0X4pn aZbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=HvRV8KDR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-168221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t37-20020a634625000000b0061a4b73ce2dsi3436305pga.646.2024.05.03.14.13.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:13:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=HvRV8KDR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-168221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 46558287296 for ; Fri, 3 May 2024 21:12:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0245283A10; Fri, 3 May 2024 21:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="HvRV8KDR" Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.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 7CCFA7EEE1 for ; Fri, 3 May 2024 21:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714770687; cv=none; b=NcSjbivA08jUbfYhvNd0OQF/juoRQHqK742SGqGeubhs9vq0KlaK06MzCm9YL1XkDCGpY2/h8otIJ5mNY1Afu/eykRFV9jCnwwYm0Z/CY5MrsX1JH5YCukZ4wohIgddSCUr4TUJLJb8B9/HMya9KpVe0xxdpTcrTqojlxOa5pBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714770687; c=relaxed/simple; bh=J00LAADDjPb8NBZ3upW2XZR3qoYB/dZ5kE4EHLdL0p0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BddcsFb6saVQvFdVJyd6dQu2k3woIHUiHSS73Jp1MKus7heLCsiS0T1hb+lJ44N+GivGVzT2PjKIr5wx2ChQJ1GhOaFwqmbs7actIbNPYXXkSXLh6QcYm8BfQ2IAdXvtqhRuvAS6fUoQgMJGL5uI6Lz9V52bADrPtvuF2Lpx5p0= 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=HvRV8KDR; arc=none smtp.client-ip=95.215.58.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 Date: Fri, 3 May 2024 14:11:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714770682; 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=rdXn9sax21XZKKXDAA9jeDaxTMIGpElRCzeux1UVVi8=; b=HvRV8KDRmn5xM1M6fSPYZy4sAHS+XgNcct797sVmrm96YD2iJ8aYfc/tqhjyiXKqP9tJeq vUBdXYCwnzPtpa9WXMzjAYTaNsMbwUuzDVx2yK6PXQGFxqhOoaW4MM9ML1+Rz3DXLBk2Wt QGY+1yNN0jZaP44O0LZPuGqtL45Mcvg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Roman Gushchin Cc: Andrew Morton , Muchun Song , Johannes Weiner , Michal Hocko , Frank van der Linden , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/4] mm: memcg: merge multiple page_counters into a single structure Message-ID: References: <20240503201835.2969707-1-roman.gushchin@linux.dev> <20240503201835.2969707-3-roman.gushchin@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240503201835.2969707-3-roman.gushchin@linux.dev> X-Migadu-Flow: FLOW_OUT On Fri, May 03, 2024 at 01:18:33PM -0700, Roman Gushchin wrote: [...] > enum mem_counter_type { > +#ifdef CONFIG_MEMCG > MCT_MEMORY, /* cgroup v1 and v2 */ > MCT_SWAP, /* cgroup v2 only */ > MCT_MEMSW = MCT_SWAP, /* cgroup v1 only */ > MCT_KMEM, /* cgroup v1 only */ > MCT_TCPMEM, /* cgroup v1 only */ > +#endif > +#ifdef CONFIG_CGROUP_HUGETLB > + MCT_HUGETLB_MAX = __MCT_HUGETLB_MAX, > +#endif > + __MCT_NR_ITEMS, > }; > Thanks for the awesome work. I haven't gone through all the patches yet but wanted to ask a quick question. In the above enum are you trying to do a union between memcg and hugetlb? It gave me a big pause to understand what you are trying to do.