Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp138406lqp; Wed, 20 Mar 2024 16:45:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2zy09hfsvL+e6OS4KTuMQ/33TpWAkp5QPxMpaf396iCILNtmhvm+gyviZtlCUI4VuDtgqMh/Ovw7YR0F6tuUvQyE8F/Dcp0ozc/q2Xw== X-Google-Smtp-Source: AGHT+IE+meVqRONsk6a8OmMWWiGi+D4kb34ShgL2hNv58zin9b7h7lqOA/E47rGMWWTG8atkTShz X-Received: by 2002:a0c:c685:0:b0:693:c4d5:166 with SMTP id d5-20020a0cc685000000b00693c4d50166mr7380905qvj.9.1710978327706; Wed, 20 Mar 2024 16:45:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710978327; cv=pass; d=google.com; s=arc-20160816; b=tDkdjBMoA6Z9u+iex2AcSz8qSOToPPSuH/Vmz3Z0aTMy3f4iw7YTLGnghhzGMV3A8o 0bt61mzAsGk56f1IZz7XYFyTAq5j+TRLCurrH+qxQ7rFaZp0WOlbnuVyqysyg5jFxV91 W788NTnHKapi0pPKHuyd3d6VdxddqtUyNTft/oj2qpNow1OfWvLxlU5E4gSQxB7xs1XS udctyynMheHKqVVx5hfKK4+ePWb0ykydSfv5RkZRKnTRAEKQZWjDZ3R+4b+btYQMLPoS GvtBFAg3GfMYZf/DgWwP3E2xlJ67Kt66lPrePJ9BEGkzedZNR0oWEu9bc6SEs/OhVcT/ N1cg== 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:date:dkim-signature; bh=AXioFYbquIvXXAo9owl/PKnQvce3YPzjBFfKMVoD2Ro=; fh=r+n1muu2vFpbPN8v+da7I8EkLVUFOzDwMgopZ3FVIzs=; b=VG/qaX/ZLFmrq1ixSbUBYjgDfkw0je5ASbWLbSdmP1se3jY5ZvghwtXYXrFVDurx0p QQ4bRjQR5PRZh6Cnr05VIH5YqP6Fn6xU2Ct3Qc20Xmr4vyRMsGEXcFPKyVlls70Fl+4/ 70vZqov2ejH0oNSLLIH72doCocqKZaz8OfWcFOOrjKB+fOMVXCwz+p9WeRz8qaRCVlVN aT4f4K0E9fezlqpNWGgY4duauR9fDq9XyLuqlUwabrICiwpmMNHlmvjU+3u7a3o4QoOK GxgI/OmV4bn57oEvhnH1THBZQG2Hczhuh+6EESalbl2w+CXBNdL3YyomQ6z8M2hU7ZxS 8v+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=NQrUIa00; arc=pass (i=1 spf=pass spfdomain=cmpxchg.org dkim=pass dkdomain=cmpxchg-org.20230601.gappssmtp.com dmarc=pass fromdomain=cmpxchg.org); spf=pass (google.com: domain of linux-kernel+bounces-109497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t14-20020a05621421ae00b0069620a81656si6778550qvc.47.2024.03.20.16.45.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 16:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=NQrUIa00; arc=pass (i=1 spf=pass spfdomain=cmpxchg.org dkim=pass dkdomain=cmpxchg-org.20230601.gappssmtp.com dmarc=pass fromdomain=cmpxchg.org); spf=pass (google.com: domain of linux-kernel+bounces-109497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 688F61C20C8C for ; Wed, 20 Mar 2024 23:45:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9448086146; Wed, 20 Mar 2024 23:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20230601.gappssmtp.com header.i=@cmpxchg-org.20230601.gappssmtp.com header.b="NQrUIa00" Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 582EB8613E for ; Wed, 20 Mar 2024 23:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710978321; cv=none; b=at1ywSNHL7r6e/yVYwF5UwAUXLtUGkq0w0VVhi/2mWHj1IE03Fczl8/zE1yVCzyuZ8MJxWhezmIAcNs6LE4tKwiuDzjlQJsBOdfiCaGVX7ZI9BAGYVKISBgIgtqb9WZSJr5WvaOPBSfuVrr8M9E+LbFDs0d17nzEu3pWTA+Pq2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710978321; c=relaxed/simple; bh=8tDjC9UtnvR6CB41JY1jXf3IwD8hZvVyzgVgCDUjlls=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kQyk7Pxqk5Hf8eypzQtEXCf1DVI9sbskAVmJaN/QloleOQEdMn5pdldCmnwqi7Sf8M8tltbs1Vst9fnHw/QhTw0eiu965Pe1b6pDIbcOVBViSscNKy9vBUSqzE44NWcvN5o6yxC04O+vzUmcZVRon9Tdzkj1kigwkoosKhI50mg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org; spf=pass smtp.mailfrom=cmpxchg.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20230601.gappssmtp.com header.i=@cmpxchg-org.20230601.gappssmtp.com header.b=NQrUIa00; arc=none smtp.client-ip=209.85.222.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmpxchg.org Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-789e2bf854dso26317585a.3 for ; Wed, 20 Mar 2024 16:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1710978318; x=1711583118; 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=AXioFYbquIvXXAo9owl/PKnQvce3YPzjBFfKMVoD2Ro=; b=NQrUIa00QM6lGIZBbFhNKGwuvauo4dTYKgvdV/VYCrhyQ3hF75zWe/m7rJPAl/74JI fHwZcPgGW5nKVMnDg6L3pk+/Of0fD8tjauv0q+bme7ZgX2fM3tcOL4NNjf+6M02Za9Bg +QR75zmwgtsl+h67fqQdCDURWT+vXfppsE1zqAyLW4/fuAi2c1gyZvog4XgqvquBWO38 974Yn5Vuh7nfR1kYKkkuAjhNpNrkxzg7nAHJO+LiHnaiYckWn9bS0FJoJ63j1tPAD0db dZDOYMwarbzzC9egni1ER0rv0RoDEj5F721zV+aW2Rf2exAhJDBQ/3mLP0HSsEhyD3jW ZdMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710978318; x=1711583118; 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=AXioFYbquIvXXAo9owl/PKnQvce3YPzjBFfKMVoD2Ro=; b=T6zEJ4wXXu3OWJ7EBIUU2rBtj5IO9RmJMDGFcdGLVXKZ4e0BsZnUvzEoQ8qSIkHWFY uqUYHp+kDo5dd9KMTm38OewiUJahJgPhpyPoJF5o5TxikTNQYb/lxvjJdyFAEO5Q23a8 1/BJ0adBM6PuoDLRsZwLha6UNn4YkKvyUmKonIjQyBejphvAzJoiIPnX1RXm3YVdNbqf U7VvVaucfpPPoV02+vvyGCYzz5+vU8MlzhvmV3M7zwLkRPDCqkukIhZlQENOOqTWsW2j x0vZdNBcRrrPtZFxwaCpeLxVsphuOjVJN8RJMci+RXGkeY6C9fsINtmuC6t4JrHEqVtG RCPQ== X-Forwarded-Encrypted: i=1; AJvYcCVJ9sfbfa0gR9tIgLxw1Vyg23+OEdkyp5TfR0OmnhczkshCUhMdav4XgY8qq+CZ4xU8rvtz/NDuiw/tKoHHsY6LhLf0L+zcdtbzAXko X-Gm-Message-State: AOJu0YxIx+3R8dlYX1YRwjISM17CPGbxhsmzzBB2+BySOPv/4aA+WioS yc7Rvnc4fMztzAdiFp4zBn/8MA7z7Jj0VhxhM/HGaeu4AyHb21StLICEI77Jg4o= X-Received: by 2002:a05:620a:578c:b0:789:f574:e511 with SMTP id wk12-20020a05620a578c00b00789f574e511mr7281092qkn.70.1710978318222; Wed, 20 Mar 2024 16:45:18 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-da5e-d3ff-fee7-26e7.res6.spectrum.com. [2603:7000:c01:2716:da5e:d3ff:fee7:26e7]) by smtp.gmail.com with ESMTPSA id b10-20020a05620a126a00b00789ea123bd5sm4975476qkl.59.2024.03.20.16.45.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 16:45:17 -0700 (PDT) Date: Wed, 20 Mar 2024 19:45:16 -0400 From: Johannes Weiner To: Roman Gushchin Cc: Andrew Morton , Michal Hocko , Shakeel Butt , Muchun Song , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: remove CONFIG_MEMCG_KMEM Message-ID: <20240320234516.GJ294822@cmpxchg.org> References: <20240320202745.740843-1-hannes@cmpxchg.org> 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: On Wed, Mar 20, 2024 at 03:36:14PM -0700, Roman Gushchin wrote: > On Wed, Mar 20, 2024 at 04:27:45PM -0400, Johannes Weiner wrote: > > CONFIG_MEMCG_KMEM used to be a user-visible option for whether slab > > tracking is enabled. It has been default-enabled and equivalent to > > CONFIG_MEMCG for almost a decade. We've only grown more kernel memory > > accounting sites since, and there is no imaginable cgroup usecase > > going forward that wants to track user pages but not the multitude of > > user-drivable kernel allocations. > > I totally support it. I believe one of the reasons for it to exist > was SLOB, which hasn't been supporting the slab memory accounting. > No such reasons anymore. Yeah. The funny thing is, if you had slob selected, it would also disable all the other kernel memory accounting covered by that option that had nothing to do with the slab allocator. This patch certainly got a much more simpler without slob around. > Acked-by: Roman Gushchin Thanks :)