Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2076769ybt; Thu, 2 Jul 2020 23:36:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNRYIiPt7HX8cJUH0rP8jSzYj45FvEYAq19xKqwEV6Kg4iS5KgMXuZFbF1mQs6aFltymdK X-Received: by 2002:aa7:d341:: with SMTP id m1mr26509045edr.50.1593758218896; Thu, 02 Jul 2020 23:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593758218; cv=none; d=google.com; s=arc-20160816; b=MC/Zba+4PCbWCsA9eOGbWVkQR09k2WEuAMHfUmGCMRDfonTeCRmJyspXTYLx1ojLeP px02zGTNH/AHrVbqrmCxmohKn0VibBFfcoqy0zkb6j1FhoWuxX6GP5yJuudHasunL5tp 4NJ4YgX/238glmRHOtosC7stYU3cJ9DSENLVIyBVsLYBhsMIBYLp503ExkwloUHPK72n i8lzWYQQtE/N0kxQoCJ6tDFd4q/2z0fQkLty5s+ARc10DfOqG9aKMEVudKllE1TKrFBp jeS9RZBRXBiezJwn76DG3x1SPeSv4Z8d1oyl5QPOt+64oE7JzPSR1tfQqkWlEbrYXXUe FXLg== 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; bh=NojDtPHgyU04BZgerYd3+yccFVPzYnZ7F9ygI7w4DNc=; b=NoRLkrppD16PdTSgHmI4Q0BJXSyEQWPSWIwEs0M2f8VlxpPSG4ihbg01BGkTHpOgDp sh4jxofZrFZNDTSXKJBeeayq+Sdki/2dd9B7FyLI0nlsVgXeB1ptCaHvFteQ6M1xGY1B ZNCH9Q8mDMUcMXUWGylheSlDHZ3AU/7avd016mVrvkNapsBg/eEW/1o3b8pxcDPHvOcl x1Yaw9ImSgSj/zd4r20GQF9iXj/efkuOCyzZ/2jPN3iiupPc0t0Vn0aPzOYLEd/ahohK TpJseBroYs6lxa8f4/rkvu6Uhm3cx6y72H43Z02fgFqEJerPSh9nD72fzX2P2He3jIte Id3A== ARC-Authentication-Results: i=1; mx.google.com; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si7650832ejf.124.2020.07.02.23.36.35; Thu, 02 Jul 2020 23:36:58 -0700 (PDT) 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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726228AbgGCGfw (ORCPT + 99 others); Fri, 3 Jul 2020 02:35:52 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:39578 "EHLO mail-ej1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgGCGfw (ORCPT ); Fri, 3 Jul 2020 02:35:52 -0400 Received: by mail-ej1-f47.google.com with SMTP id w6so33016532ejq.6; Thu, 02 Jul 2020 23:35:50 -0700 (PDT) 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=NojDtPHgyU04BZgerYd3+yccFVPzYnZ7F9ygI7w4DNc=; b=VtRda+Ecd2HlpxEH1hLDOocC4PXPYGM0mm9nskZDOVQ8+TJ20ky9Z68YXdPeZwtvqX b4sQO1NCOPaMUqrXGL+Xk//ZEupQsBXOy7SmFYhQ/XsghIvTsz9c4E8hI0WpS1AfawbT gYKqJwgb5OiVchrOm1YljNi9ThiF+WX7v3+lEbjuMvcsr6OGATr6ElFRGMwXw/uNOiT0 YeCF+1gYXok1pwtz3T+SzsmsevqQWQz+jSvqQlW8VkF09EZDOm0k7q3Qekjjtv68vR1X nZKKP8XEfRkNlcUwS0flOhPEcqoW9cavpOBlv51yTeZmuvIlANeJd97RnBhmGkuB8Wh1 GMmg== X-Gm-Message-State: AOAM533h11ikhUboI0iUz4OWKWmQ7jKzNkyrypgwedQ6XUWDBR2pxouy ajY2VcozHvKEVaCc+SSokBw= X-Received: by 2002:a17:906:71d4:: with SMTP id i20mr32649859ejk.533.1593758150250; Thu, 02 Jul 2020 23:35:50 -0700 (PDT) Received: from localhost (ip-37-188-168-3.eurotel.cz. [37.188.168.3]) by smtp.gmail.com with ESMTPSA id b11sm11620695edw.76.2020.07.02.23.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 23:35:49 -0700 (PDT) Date: Fri, 3 Jul 2020 08:35:48 +0200 From: Michal Hocko To: Shakeel Butt Cc: Johannes Weiner , Roman Gushchin , Yang Shi , David Rientjes , Greg Thelen , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [RFC PROPOSAL] memcg: per-memcg user space reclaim interface Message-ID: <20200703063548.GM18446@dhcp22.suse.cz> References: <20200702152222.2630760-1-shakeelb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702152222.2630760-1-shakeelb@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 02-07-20 08:22:22, Shakeel Butt wrote: [...] > Interface options: > ------------------ > > 1) memcg interface e.g. 'echo 10M > memory.reclaim' > > + simple > + can be extended to target specific type of memory (anon, file, kmem). > - most probably restricted to cgroup v2. > > 2) fadvise(PAGEOUT) on cgroup_dir_fd > > + more general and applicable to other FSes (actually we are using > something similar for tmpfs). > + can be extended in future to just age the LRUs instead of reclaim or > some new use cases. Could you explain why memory.high as an interface to trigger pro-active memory reclaim is not sufficient. Also memory.low limit to protect latency sensitve workloads? -- Michal Hocko SUSE Labs