Received: by 10.192.165.148 with SMTP id m20csp4732731imm; Tue, 24 Apr 2018 07:34:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx480Hs3UM/Y2xf8jbra7r3P/ucR7c7D93+7CxVjb5vSeJMOW4XOdbmUxIQE5+l5ovlzPxkmq X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr24869347plo.310.1524580496654; Tue, 24 Apr 2018 07:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580496; cv=none; d=google.com; s=arc-20160816; b=a0wAZafYDqBrNlrZn4rXXLLIwI+tz0HyOdu7vzcA5mlLDz0UeTUtuAdurMA1cHJj8i mHrDU5N2lYqZ4j086gg6In96wOjQRmEsSVe5XGNL1DRcwjnp2W7srXrGn8eYNtMHW+iT HgLohjFiGebrNhOZHUixkisOlAkiw4tqoEYOzfXQcjHkU8sB28S/Lbz9W61mu/IIijWo ho7QwzEBpTV+X4/phipKm3AEzasORVFtUC4EJEmzkvuvLXmRkPEwMCtq9r7Ctri5oeKY HbPShAzV4o74hzvvRia8VJumxDPOJjBj5X0OqnSZGGPLFtXVulj58Bk2J4SpnRONYLLq U3BA== 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:arc-authentication-results; bh=RgjmwzZ2PusUuxKAHqPTseGS5zThP/05HRpAU7JEHnM=; b=hfhqDrZ8B5acKxuyFDegsE5bTIS0CDWvL0PYbv4rMXOoNf+Mj3uCI4oN8s7i+/zHeK h7NNlI6dOMvN/7X6mfemYstO38KJFpPsq2HqnXGlpv4QCNdZyA9xOtoS1IxXbaUwFwYr 87f6QaljCSW5z0xdvM9giVXnOTcupFBALkuLTMfHqN2hNMXZCrgz6ElNdQwYwFe9WY6X nPinBqroGZCznHO/Rbe/BzEfGHCAYIWHDxdnjqoqIsuYu5rnXv8Wvq8V9DA2XoVZlnfO bfah79bX4/9LA5Lc2RXp3DNxDCtnbICHftEQSEl5oDU0s+7OteUxjvaPJxOMtV0HLtaH XxuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fhNBElui; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k62si7223527pgc.170.2018.04.24.07.34.41; Tue, 24 Apr 2018 07:34:56 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=fhNBElui; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933005AbeDXMaJ (ORCPT + 99 others); Tue, 24 Apr 2018 08:30:09 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34398 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757144AbeDXMaH (ORCPT ); Tue, 24 Apr 2018 08:30:07 -0400 Received: by mail-lf0-f66.google.com with SMTP id m13-v6so5819469lfc.1; Tue, 24 Apr 2018 05:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RgjmwzZ2PusUuxKAHqPTseGS5zThP/05HRpAU7JEHnM=; b=fhNBEluivFp9ke2Hsw0Qa+pxhG+yRWhpC6aKTN4YptcAuojD8gVYeRRLs4x6s0zXpE SkGo0NeVaM5EjSlRyVy4f5jpd9wveURQFfiYqWtBIYgV50iUuBgWQOboQbLDImMXrIcW 3QOCVzjlH1X4RevLYO7+NvBbJfNH0Q4PJkHFvpcByRuWBqMvsUoZCvOX/yw+VPy6xiON E8cgQag4Wg2tjlLQ9oYLKfBh7xSwtpw0wuY3xSrfgvyHGjIH7BTw5gQrWS7oAKYi+0am ZcLWSIPdiin8ThAXsGvHeh335iXQBgMHPhAbPB8oPY8T4Il3WaIrepuM085nLTrnAy/+ 43yw== 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=RgjmwzZ2PusUuxKAHqPTseGS5zThP/05HRpAU7JEHnM=; b=Y+pA+lmeFqWwgjzTPgT6kQubU0SKTBohi5OsRCO2jzU7c9Q1E3fDLcI5PPRJOVH1Fx Ud2m9LDTMUk26B/owWuwXd+Cn47CXsu27ngeAUpmxPrA1gvOW8Dflh4pTkQeGk2mGBPw 4kh23kzTpog35mKrPo51FL1ylH3A7zta3UmLxdaz8+xQyFAN6Ox/sKvuH8wCn/+F1vq1 OgobBrAfxYoPjrN06ZngfWEvamRf8duCrXfez9sbtk9vCPOzhkSwmkmvbrqYzYOJzlDr 3LrphhZOP9JXwIiWi6JXBu99j/OgAco1+YH2MNwsLuIuGLLZV4eSUEBAfoksRt/wPOuG a4pA== X-Gm-Message-State: ALQs6tAZdVVB6MibMIF4qDI6jHYrYqIHRUlVMCExXIKBLel47vxXoxY1 4FFFZue6Z2W7H3qbzRbRcx8= X-Received: by 2002:a19:a087:: with SMTP id j129-v6mr11181546lfe.101.1524573005494; Tue, 24 Apr 2018 05:30:05 -0700 (PDT) Received: from esperanza ([185.6.245.156]) by smtp.gmail.com with ESMTPSA id x1sm2326638lja.76.2018.04.24.05.30.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Apr 2018 05:30:04 -0700 (PDT) Date: Tue, 24 Apr 2018 15:30:02 +0300 From: Vladimir Davydov To: Roman Gushchin Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@fb.com, Johannes Weiner , Michal Hocko , Tejun Heo Subject: Re: [PATCH v2] mm: introduce memory.min Message-ID: <20180424123002.utwbm54mu46q6aqs@esperanza> References: <20180423123610.27988-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423123610.27988-1-guro@fb.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Roman, On Mon, Apr 23, 2018 at 01:36:10PM +0100, Roman Gushchin wrote: > + memory.min > + A read-write single value file which exists on non-root > + cgroups. The default is "0". > + > + Hard memory protection. If the memory usage of a cgroup > + is within its effective min boundary, the cgroup's memory > + won't be reclaimed under any conditions. If there is no > + unprotected reclaimable memory available, OOM killer > + is invoked. What will happen if all tasks attached to a cgroup are killed by OOM, but its memory usage is still within memory.min? Will memory.min be ignored then? > + > + Effective low boundary is limited by memory.min values of > + all ancestor cgroups. If there is memory.min overcommitment > + (child cgroup or cgroups are requiring more protected memory > + than parent will allow), then each child cgroup will get > + the part of parent's protection proportional to its > + actual memory usage below memory.min. > + > + Putting more memory than generally available under this > + protection is discouraged and may lead to constant OOMs.