Received: by 2002:a17:90a:b81:0:0:0:0 with SMTP id 1csp670812pjr; Fri, 9 Aug 2019 04:29:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQHZ1KMq64GVYhOMEsgJh0P/sywjW7+ieuK2UuA2JHNxSVWrogzsoIgv1kAX5ivzWelWXS X-Received: by 2002:a17:90a:bd0b:: with SMTP id y11mr8532076pjr.141.1565350153271; Fri, 09 Aug 2019 04:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565350153; cv=none; d=google.com; s=arc-20160816; b=ciJCUPUZTzZesrNF0zDxPsOC41JR21tNje6O5WHAF+hSmliBHwI7UUn9QXCDW37KBz 4toCd/vL2Obk3MPjWV+z9mhZvXEz1UI6jT23nBJ6qmbOWSfxEgJzoRoGEJOzaT4vTSdc 5Tj2oSeyl/E9z1pYmPTAGH22sI+VNFMynCizoHfpepBxLGoTfUhLD56albAwF97t6p4k fof6M94nWsIf0D35NaFHrqsUcOBilUGdAf6v0RG3YuIIMPpwRd9IL5n4PB9RVOeUCVHL 1BypeVofS54dFDvQVUXlsRNWRm6LPivv0KdBHuu1ECB7amIORqgroeXX1YfChfA2sgJ1 pVOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NIRqFlTMP74ELzwtx2qB8zwdyoLcp8KikB33gmpRVvo=; b=tbMk/ftxF+G/QGiXGW1coartMlBU74Ok66qjB8Fb/hmr8PTO9Q8PUtcp5MgcjUV0Qy 9nlRdJ+ENgNmAX4VjUl/jxjOIUGCgE1lE2q1og6wFwXe+kLJi58e5NLODP1YtdMKBudE 8fYEj1nc2uE1d5UK4AIwQ2E0qG6zxVYyeQr6bFUOnsxWC232B+bEGLh921vcaWg3fHhH 2oOMdcHt2xbDZ4G6EGbw13TMnbN8KyNvZ5ECILK3f7I9lu0j6LKuIO+uo/KNno85Uk04 cUS13A40Zy77iclPyBmCTf2Dnbn7A70H0shGJ0QlXhExk+hYh6lCkbyU9M/ykCEmhGZm cg2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h30si1388190pjb.45.2019.08.09.04.28.56; Fri, 09 Aug 2019 04:29:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406273AbfHIL1m (ORCPT + 99 others); Fri, 9 Aug 2019 07:27:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:33926 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726152AbfHIL1m (ORCPT ); Fri, 9 Aug 2019 07:27:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C52E3AD93; Fri, 9 Aug 2019 11:27:40 +0000 (UTC) Date: Fri, 9 Aug 2019 13:27:39 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Mina Almasry Cc: mike.kravetz@oracle.com, shuah@kernel.org, rientjes@google.com, shakeelb@google.com, gthelen@google.com, akpm@linux-foundation.org, khalid.aziz@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [RFC PATCH] hugetlbfs: Add hugetlb_cgroup reservation limits Message-ID: <20190809112738.GB13061@blackbody.suse.cz> References: <20190808194002.226688-1-almasrymina@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline In-Reply-To: <20190808194002.226688-1-almasrymina@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline (+CC cgroups@vger.kernel.org) On Thu, Aug 08, 2019 at 12:40:02PM -0700, Mina Almasry wrote: > We have developers interested in using hugetlb_cgroups, and they have expressed > dissatisfaction regarding this behavior. I assume you still want to enforce a limit on a particular group and the application must be able to handle resource scarcity (but better notified than SIGBUS). > Alternatives considered: > [...] (I did not try that but) have you considered: 3) MAP_POPULATE while you're making the reservation, 4) Using multple hugetlbfs mounts with respective limits. > Caveats: > 1. This support is implemented for cgroups-v1. I have not tried > hugetlb_cgroups with cgroups v2, and AFAICT it's not supported yet. > This is largely because we use cgroups-v1 for now. Adding something new into v1 without v2 counterpart, is making migration harder, that's one of the reasons why v1 API is rather frozen now. (I'm not sure whether current hugetlb controller fits into v2 at all though.) Michal --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl1NWKMACgkQia1+riC5 qSi2Sw/+M4XGujSB2JZaZ0/yi48MZThHdXWt5rWC6L/Nt7CW42/WhqltGcNl9c9F O7Fegy17Qhgi0y/UUqUbQ2l27VD5AD5DZB+DIVmAIraiznhljDL24hTmSELtwOi9 Zn+c9dudCpUV4Z6LwBme2DSrsA9YAHwcjBSAhFu1YTTq07t+cT2RShx0ntKS5R9a dYYh4JKFTsQ+qL/lWzl8aF4nYZGii7e+3i8E9+8ZYMLje6AYolAKJwQSmkWEJGGP 9asZ61GcnygJyxY4jEXo5xqUirK0c2knwT+41w1cwSto6+qdsYIYBuXueksUfMcv LRKp/72MRdb7vHQdVQq/0uXj4QB5WAq8qFvhPbbTFgDRdMIyxUlltuLSCZ4oEKWK TdDK/cfyowjrTbcqydWHLhX2R711IlpP2g1gGBa4nHHnXssOMTBrUthuSpX8EPUZ YxDV4IQFEDCNxFsqsDJqd6mCZxm/Wdb+0LYz7Hi7Dqrs47bp+ggp3gYkVxFiZSsj MzbjDYwrxdMgv6SS2P/IGUJI0Duzx3PjArGCAkYO5mjsi6HvfsF9l+pIRbb3uejC EsWo/ReGFPTKmogjoAX4vxCRg1LpktYtzIzpqWqVTmWL70jiLnV4+FmeWBijlAJU 3TJwzTYrBbizqKm/PSjakNr9+3bBc+Tq2ZBcnq0bewC8hJZzdls= =q8Ru -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--