Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp18007pxb; Fri, 5 Mar 2021 13:06:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvw7YNkOCc2HOYW8q/ErcKzeY9M/gx/kf6AAuTTOW5NljoA/4v8Xg5XYMzduQXnozUfikP X-Received: by 2002:a17:906:5d12:: with SMTP id g18mr4092849ejt.246.1614978389135; Fri, 05 Mar 2021 13:06:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614978389; cv=none; d=google.com; s=arc-20160816; b=dH3my471CRxBSP/K0jINfJyxrH4F4/crXNQcToebZ2IyCpFTcaFF3MhLouOag2m6r8 btwcSW6Ppg3YZY5d3cMJ0ZEwU5A9VIrlgT5IeaA4wzaYXmb9T4+QgZM+h0hwuXAqClxg NmF0jZ8Al2rAWFK79l+ffsbRL9K+Ei7zjkGdkMzTJQ0Qt0q6oh0i6MQOlNAeokOmQPZu x5wpWC1wAQwx9lvJrzq1KWtFoUAVm0+8moO2bMQBTaN4rOOmagOxv99Mo6MtDchh9BxJ xvksS9+kEg9ulwltp8gCy1OLGeUBuW1FjsF0EIEJkoLH9ET8yalBuOaLNsapjZmp4cBP CP8g== 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=La3mwDa8nISUh2U9bi9oHzPu358czH3TeQ0ByYgJZqY=; b=Sc5ogGkTzKDfNiI996CLN+tYvb7ZAsj5hKpXK8kTIHBYyDXSzL+W2ng7v8MvEpoteg bS2d/9tcuHcdkCKxmnye1M8RSHpt68DJjOKfIzWFA4/cBFvk5xSdt+cX7Y+zXBmj6YlD 1PzE2D/mlCuDLdatKtOtS1q0AE/mhbgRw2/L3fSHtb0k215Y7AeksKY55yMByHJeP2V5 nodineB4C8I/DjIBYveErmihW770+k0q7yWfrSWLLa+gmpcYRmJwtU9ajTp74ZCi0E9v SoNoyq1zuPTQpc5FVRntBcnfx2axsyl2b2CMIpgT2gl8k9aP9tJrs/UFqbmkZNKiLrGN 2j6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="VfhA/pXD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jl16si1950037ejc.330.2021.03.05.13.06.05; Fri, 05 Mar 2021 13:06:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="VfhA/pXD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230155AbhCEVAy (ORCPT + 99 others); Fri, 5 Mar 2021 16:00:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbhCEVAV (ORCPT ); Fri, 5 Mar 2021 16:00:21 -0500 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24744C06175F for ; Fri, 5 Mar 2021 13:00:21 -0800 (PST) Received: by mail-qk1-x734.google.com with SMTP id z128so3371926qkc.12 for ; Fri, 05 Mar 2021 13:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=La3mwDa8nISUh2U9bi9oHzPu358czH3TeQ0ByYgJZqY=; b=VfhA/pXDD661QUgX1Mxa4DhK6hKrLISfubA84eRcP5m7HrACNGN9aEnYTpgLPqDTKl g4TbBNYRDsU/94H2jOc7T/WxPyFqm19l9G7+Q1geXVCnQcSU5+0ssJYshieCtlZBKv8G ZhfXtpPkowYLxrCPZDBq+iHGWe+2Ke52zeeoRbeMAElVHx7F1isMeyzGcS7h/D6oaDkV Ro/dMjTsOIUEVp7J0fkdOfo9OM7pFGQuyPmXZK2etHIsJqi+AAuIWwkhelx/s2kSoHn5 0GHaF5UMUWdWwHNA8bAi9C2HW1FxI9M8Ef6GARBBntVKOnNojeQRWUUzzV0DCeMyIcnc o4Jg== 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=La3mwDa8nISUh2U9bi9oHzPu358czH3TeQ0ByYgJZqY=; b=gUAk9e1LdHumnWK45p+bl+nh2FguNy2PJPr5xGnI4CZu91WEs+dRFm1NrtUUJVB4BN Un7ogVHlrl5Ej/Xc40ZDNDQpRD3sl2mzCqkGuBJBIktV95qpn1mnNm8auH1vVvwbYjjy nq5qR/sO+1gvZJrauDLlm8KEbAuf6ihZU9dGFOy9fHoIx1lWrxgmMhDPc0D9I+n71IDJ SGqHxDDoBSf/FBwqYR7h6A3QpjzHF911RvapZ5Sopd41XbsOUvPWzUlZa1lc1zB7E7Ob zC4yhQYuA6i+bSc0Egd2MyFmt3HY/xeo5VTEk94MyFiI2dfH2CAQAxrsl4nvz7tnFHSS HugA== X-Gm-Message-State: AOAM5304RcUokSV1ZOQMAF5iVIHqULTDZsGSDXnUa4qQDMo4lFSbui5c E1vHsY02G/QQGsVpj8S2fgGx++RvVAaiPQ== X-Received: by 2002:a05:620a:108f:: with SMTP id g15mr11227500qkk.298.1614978020436; Fri, 05 Mar 2021 13:00:20 -0800 (PST) Received: from localhost (70.44.39.90.res-cmts.bus.ptd.net. [70.44.39.90]) by smtp.gmail.com with ESMTPSA id h75sm2653603qke.80.2021.03.05.13.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 13:00:19 -0800 (PST) Date: Fri, 5 Mar 2021 16:00:19 -0500 From: Johannes Weiner To: Shakeel Butt Cc: Hugh Dickins , Roman Gushchin , Michal Hocko , Andrew Morton , Cgroups , Linux MM , LKML Subject: Re: [PATCH v3] memcg: charge before adding to swapcache on swapin Message-ID: References: <20210304014229.521351-1-shakeelb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 05, 2021 at 08:42:00AM -0800, Shakeel Butt wrote: > On Fri, Mar 5, 2021 at 8:25 AM Johannes Weiner wrote: > > > [...] > > I'd also rename cgroup_memory_noswap to cgroup_swapaccount - to match > > the commandline and (hopefully) make a bit clearer what it effects. > > Do we really need to keep supporting "swapaccount=0"? Is swap > page_counter really a performance issue for systems with memcg and > swap? To me, deprecating "swapaccount=0" simplifies already > complicated code. Now that you mention it, it's probably really not worth it. I'll replace my cleanup patch with a removal patch that eliminates everything behind swapaccount= except for a deprecation warning...