Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21476825ybl; Mon, 6 Jan 2020 05:25:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyxt+67u1hJ8Bx2noHBGO5l0VX3jFgppzTQHyhHntiQOXuApaR36aeAILTnFxSi2qird1yt X-Received: by 2002:a05:6830:13d3:: with SMTP id e19mr107453524otq.135.1578317140255; Mon, 06 Jan 2020 05:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578317140; cv=none; d=google.com; s=arc-20160816; b=U2BXCNhZR/fjKIUAqd0rrKZuT8+e8Fk2mPwXVjNb2w1Sd9MTKKugtB9d+pXf7hFsIh X3hldJTmpWsY5GEDdbx2XJSqLDCB+GMmj6LrHl5DaMWfspqaNMnYqap7vqEK+9bc4jo5 DNuDXAKxJcSxJLBLi3a2kanYiaac7xsAM8eHIlTcwwY8Rd4xupz9RnaLtUl+v0fQ71vP 9Ejv8Re3pY43pCgtlQczfzmM/DfL01e5YjjKjl5L4DmTUYZLH1d8YKtfyeBg//LXJKNr c+692IzbmywjQqr+PGMVvgUkwegy6ix8hy1/u8BIstdV1Qm+hX64q6NHyDv1Aw5OWD6S TB6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wC9BOXYjk4udfBrvJm6JGmvN7DTg2mdl9SY6BiiM5CI=; b=xQjjZOEOvBSOygJhcm1UalS0I42ExBA6wmv+paszd34Fx+RPFa8G/yj3yq4E77Lb3I rGIZGetw6hgpbfpfBxJwGfAoOvnA1wJHzhukzDDAiPeuCGNZq2ORecZ2H4M/hwQaNAPI 2aocRM1oO+TTBd2pccnUHVBtMPsoW61X+jS8tXFHNeyGP/IsUHaEMdn9JWCz8wYyXLCF jdDOBABHs1XqlfRuq2gtHnmg+9pRSxDhkzOFSL/IxC0/9BlQkdYhNFl+tw/6WTP/WKJy b770DodSYJf5g2Z0IP/FSrUsOMrvGH3MnompCufxosBJJki8OAEI9yrIxEMFN54BNofB OlgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=P8pk1o9y; 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=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si25753050oic.222.2020.01.06.05.25.26; Mon, 06 Jan 2020 05:25:40 -0800 (PST) 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=@chrisdown.name header.s=google header.b=P8pk1o9y; 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=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726382AbgAFNYj (ORCPT + 99 others); Mon, 6 Jan 2020 08:24:39 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:37886 "EHLO mail-wm1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgAFNYj (ORCPT ); Mon, 6 Jan 2020 08:24:39 -0500 Received: by mail-wm1-f49.google.com with SMTP id f129so15246005wmf.2 for ; Mon, 06 Jan 2020 05:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wC9BOXYjk4udfBrvJm6JGmvN7DTg2mdl9SY6BiiM5CI=; b=P8pk1o9y6+tG5KTqZ9qfFyt85i2CdbvG8XOjpzH+VC1HkPFsLurbZEyYmkqNh4UWcL Eux3W369x5DtVrAYs80Bc1RAmUy6R70BJT8sQX3DdDeJZ0mV0VAsZwbqETyluYbf+uTl koNyRRhxh4i5PhdlCabKLdZQ3LgVHGQS9sW0c= 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=wC9BOXYjk4udfBrvJm6JGmvN7DTg2mdl9SY6BiiM5CI=; b=NRfw982ZFD1CZGylsC1jqawGHGSRbLdamDMTefU8Nd70n0Q2wVSLl41iLDhPEkbhB3 NMVHFvISVUPogbQfQdOPhYHMYy5xwOYRsZwGCalV1u+IlMW06IDxDOK6ivU0XcS5wa9K kX4UNOcCDxC0bGcCUVg2OjNhtrUTjtu/hrxJf2usYDqatauxwQmfT6wytrRScmpwED10 Z8dYiPxunelA4vyCvUTkNz7mjwq4/WE9UDGaEQBEdCODkpOlfV0kX7WFECkj04L+GOXN MU5KJwe1fuLl95QLysrBgJh3ORTkWiiI/BSZvlHakdfRzZl3phrCplc9AIDGVR7G+FNC x4eA== X-Gm-Message-State: APjAAAUouhWdyD0Kmlno4bFhf+Tv6nuA/ViPt+a+6oZkfhNzSBElieyk NQ/FPtrG04jobtD8iE1970lGDg== X-Received: by 2002:a1c:6a07:: with SMTP id f7mr35558851wmc.171.1578317077752; Mon, 06 Jan 2020 05:24:37 -0800 (PST) Received: from localhost ([2a01:4b00:8432:8a00:63de:dd93:20be:f460]) by smtp.gmail.com with ESMTPSA id b137sm23689296wme.26.2020.01.06.05.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 05:24:37 -0800 (PST) Date: Mon, 6 Jan 2020 13:24:36 +0000 From: Chris Down To: Michal Hocko Cc: Hui Zhu , hannes@cmpxchg.org, vdavydov.dev@gmail.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC] memcg: Add swappiness to cgroup2 Message-ID: <20200106132436.GC361303@chrisdown.name> References: <1577252208-32419-1-git-send-email-teawater@gmail.com> <20191225140546.GA311630@chrisdown.name> <20200106131020.GC9198@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200106131020.GC9198@dhcp22.suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal Hocko writes: >I am not really sure I agree here though. Swappiness has been >traditionally more about workload because it has been believed that it >is a preference of the workload whether the anonymous or disk based >memory is more important. Whether this is a good interface is debatable >of course but time has shown that it is extremely hard to tune. Sure, it can theoretically be hardware- and workload-specific -- I don't think we disagree here. The reason I suggest it's a generally hardware-specific tunable rather than a workload-specific tunable is it's pretty rare to see anyone who's meaningfully used it for workload-specific tuning :-)