Received: by 10.192.165.148 with SMTP id m20csp648360imm; Wed, 25 Apr 2018 05:41:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ia4BBJLcmyjnb7l2OWTuOi6gXcjFaRNbCuuEiU0Qh7R0SJjp9oUfqXs59T7VrLem9ho/J X-Received: by 2002:a17:902:b105:: with SMTP id q5-v6mr29724815plr.173.1524660087003; Wed, 25 Apr 2018 05:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524660086; cv=none; d=google.com; s=arc-20160816; b=MRMeayhyUVETqdHdeOPQ9R0pPhPo+yKrngVAl1Ed6y2YUe0s0r1U/4l+McY99A49Qr c63wnuj7A+qaL17UVcatkXG09InHz2yknOy2i/E1xVbJ3UuZfQ28oTAdTk+KXGq4K/sU rIcu1hE/SLP2IAAPs5q/lZxDQwwLFnnM2s0w0CdYBkhSq4uaQUvXlDz9qWMG2DVFjtsk xdKtMKivTuOHIlDERJmh+BZ9ZsfuLCytnKG/WbcptvyQIHOt8K5lK+h5gQHRSVHmbIxU JJ5gCpnQJLz3jW0eLfbIea5Wwo3597K/+IwTA3q+hI9yLYKT9FhsMzeMZYeAS2CcK/Zd aLRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:arc-authentication-results; bh=CEtcjjt/YAi19yP8bVkRR4wxrVjuCZAKlZtVJhefC5Q=; b=umEfTn3mQ/wQGsLemrhzJ3q6vR3lpUXqt5R5QZ1tm77xzg7O1EOw9z3hObk0bL57o6 +KvwpRgiyZl6Z5XDN62i3CJ2NCQNM31EEKVDPkJu+ko5xB3zYSe8kJJl5PBfOFAliwgH dxZPj/U2lVu12c2A+Y7GT79P23YhH0AaamXv0oiWHpKqvoRL/9MYIu0cRWeQToETC+/h tONG3KK1UvEQeGN5fBNwl1zW2eACXEiTgzQ+qNFVg0bT9Mt7Ic5TqjfeNhpGwtthZAV5 Uj+ydz0q7qksor6rMLj8lsPvUM8xOy0zfXOt6x3y6cL2L/GgErL4i+VYOz2Y5CI4/cg4 c1qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=N9dZuhLZ; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=jgIYpw2w; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127si4100839pgc.236.2018.04.25.05.41.12; Wed, 25 Apr 2018 05:41:26 -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=@fb.com header.s=facebook header.b=N9dZuhLZ; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=jgIYpw2w; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753170AbeDYMj4 (ORCPT + 99 others); Wed, 25 Apr 2018 08:39:56 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:38488 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751525AbeDYMjy (ORCPT ); Wed, 25 Apr 2018 08:39:54 -0400 Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3PCdKfG002340; Wed, 25 Apr 2018 05:39:42 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=CEtcjjt/YAi19yP8bVkRR4wxrVjuCZAKlZtVJhefC5Q=; b=N9dZuhLZqbfbHR6Qk/81AJI4EfNgSSFXQ28YXPfAAv1R3JCQD7Ggtf2kLfnr8ENbW0ih 7W5pXluDwyf5yYRQhAeqdxxD3n/T7R/cYU4v6mfnaYhNJN7fZ+EPT+QO5jM7V+poKFVR B5JuBMgCMqxOR5SVnT/CHEJ7bk6NyijF48k= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0b-00082601.pphosted.com with ESMTP id 2hjgwb117q-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 25 Apr 2018 05:39:38 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.29) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 25 Apr 2018 08:38:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CEtcjjt/YAi19yP8bVkRR4wxrVjuCZAKlZtVJhefC5Q=; b=jgIYpw2wBl365NmphG5FPxaBCjW29KNXIXLSQT5qkOBMo3jR0oR2qbHmHVGTGBR+j5P2650oIM4f9QNbxL8Gkd51aoxj/fZyKjaywagl9n5s7OReTwA/+NPW/v5a6K1iJ68azoCim6g9xb/wOLFNixBXA9UUjTb2OwNsMO5IbIw= Received: from castle (2620:10d:c092:180::1:a2cb) by BL2PR15MB1073.namprd15.prod.outlook.com (2603:10b6:201:17::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.12; Wed, 25 Apr 2018 12:38:37 +0000 Date: Wed, 25 Apr 2018 13:38:23 +0100 From: Roman Gushchin To: Vladimir Davydov CC: , , , , Johannes Weiner , Michal Hocko , Tejun Heo Subject: Re: [PATCH v2] mm: introduce memory.min Message-ID: <20180425123816.GA3410@castle> References: <20180423123610.27988-1-guro@fb.com> <20180424123002.utwbm54mu46q6aqs@esperanza> <20180424135409.GA28080@castle.DHCP.thefacebook.com> <20180425105255.ixfuoanb6t4kr6l5@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180425105255.ixfuoanb6t4kr6l5@esperanza> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [2620:10d:c092:180::1:a2cb] X-ClientProxiedBy: VI1PR0902CA0036.eurprd09.prod.outlook.com (2603:10a6:802:1::25) To BL2PR15MB1073.namprd15.prod.outlook.com (2603:10b6:201:17::7) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BL2PR15MB1073; X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1073;3:RLEwNQnzmTLGwRlOs3L0NDU5xdfoayT3SsWJgXKs9NHJESeC1yL+o7LrURqyjD37zdG7IVH+3AQQ0ai7BG+G5ohltl8KFxCfiuYzr8V7M05+9P4zbffhy82Vi9gHeKqfEnOI5IdFRJcu/BR/2mC2hU2rNqAtTWEtlYl1gf8o0sQyn8WKbX4X20A3uSYurjNcD8miraUahGW4Rze0+U6Tzd8x2r2fDeaTtS/Y8nrcPo1yG4aGf0fad56npboeGF68;25:W8ynC6xqbUOUkSA7u9Q+e8j9AbpRuQhfy/cay0h7r6L/0oi9R7ITRzH2m6T0I+bpvMbvP0BzoZI9BjAbrspOpVQTmWPduqCnzwuQhthW3Yzfp9YcQy8PMkn6XJheGx1upvQJivu9SQ49csNxcqhV4wvuHeKEAu1hMy8I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SfX8n6wRJoD0EPxkoek7+yofYBQeALYL+0g+jF31926iBx8oX92KrMP1oXFsM6V2zat/ZLgFZ/Lg069wnC3xIFb2wsCuqF6HqW+XIxHZi74Of8KZo4hmzJnOJWq64eNFLL4VbCaXwfLut0xbHi3yF+MYZgMbpz87JrEWdxN1FZ8C77j/5syglShDRKcpxm7Dgg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231232)(11241501184)(944501410)(52105095)(93006095)(93001095)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL2PR15MB1073;BCL:0;PCL:0;RULEID:;SRVR:BL2PR15MB1073; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(346002)(39860400002)(376002)(366004)(39380400002)(199004)(189003)(76176011)(47776003)(4326008)(9686003)(55016002)(486006)(97736004)(106356001)(50466002)(7736002)(16586007)(6496006)(305945005)(2906002)(54906003)(33896004)(8936002)(33716001)(8676002)(81166006)(81156014)(476003)(52116002)(58126008)(52396003)(11346002)(446003)(5660300001)(25786009)(39060400002)(386003)(68736007)(93886005)(86362001)(229853002)(33656002)(6246003)(6916009)(6666003)(53936002)(105586002)(478600001)(16526019)(186003)(316002)(46003)(6116002)(1076002)(23726003)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR15MB1073;H:castle;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR15MB1073;23:VX7lSF3na7/aODChNPeNYp/FWFW8c9QZrW8xgR9G7?= =?us-ascii?Q?+ST+AtO0mf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gx6?= =?us-ascii?Q?4TF0CG5zYC9V0P2cGBLAzh2F4XN8UzrbexPgUtMjzrKf8QT8MX3ST0x5GwGr?= =?us-ascii?Q?UN9d/bU/Xv1U7+aRYHd4mryIKPWPsL+E35A5sr649DnonhYpBWAlPb+wKICD?= =?us-ascii?Q?0SqcMMyTea+ZCtTPRs45sXhFxjHKcRXgs9tVhrGKqGCeJITmRqxLxYu0zRLL?= =?us-ascii?Q?qbhqP+p9k1zdD06opN/EjCA5EIVLOW+OD5tyTViW8gdchef0/6WqRI+hdxPE?= =?us-ascii?Q?UWWHONp3gSNu2N4OqWR7f6z8J7L7/ePV18K5u1yE64VoiHf954gvWPdUze/E?= =?us-ascii?Q?XzD52YN7O2YB0Rlexu6TQdPO8w+AbC35Orj9N11pGbtYG+M/HZPBf6nadhip?= =?us-ascii?Q?wPKFZ74JJ+27ezl4BXoT+VMkntw6/+2DOwVy7gqFwtj?= X-Microsoft-Antispam-Message-Info: y1G1k9PrAu7UTW1KObxmZiqtOKV11N2OeE9RBTk4WKtkWejKRNvS7m+QfORKYNaVTd5hZ695Sg90Lg9I9lla8xl5JLnG29ngUioR9j2FiH4hYgKkX4gj+NrUZ45t6v5I9ihDJhw6O1mFgSTgJAeksKqu2IZ4297R47FFmqVRIU9xfwhAtlFhoOrgtcq6YGdz X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1073;6:QV1FP2Cx4pp+vJ3pvXXgfTw5gWnUbIrR27pKKlqDRKrjmuBKAoGCgICAnB0Ys0apz2CzEJROzMa7rZV3mUXkxFzVwZUUhxGHBrfQO+9gbFos/cXmmHCWyOmGn9gGqg673hpqqz9MtgeCOm96BbZLUfRW+M6aotEkhAOr1cZoStbSZG7H3flpcLVcTDNcCm32GarKU9QiQDHJSvqNT1Ebaiu6gk7PjiuXrGtPrANmLzcfB0ZfrplsL3udcBPBUlQRTl1jkhAdNyKyH3JF/nKOOk6Eqenh6fYvas0+g6wD9J9UMXEy5CNLylXcepl1Cnt0WLp1XcQdQ0St4u7CtE4doFbkhdSmrPPAZciogKQP8COiVmxbtCVfu3Yj4RFvIA3SGOmVPGjZoC+9u0tUZ2KGb6bROZtWz4Ytgz+Cn7ULTQH6/M6EUxWMusUng1DtmhIeX3DvpnPiCrZynMKfDuPAYA==;5:7Nb3IHkG9U+J0LuvyF9FnMdKrmRv9yrkdCguaU02cJqj7vFa6bvBZSZgjFquB0MnXRyLWotA9/dKT4mO77ruP/qL7u/k7m1ySaOb6S+32kmDIi/rIFKhjMQuxlRP+/1TN/iqpTpjUsWJvXv/oYlK7M64sGywV2/IRB1Jl20Jo9k=;24:ZzTtK6OuW7O2+CXo485rSeca2TszUfaeF3cQCzYjWsh18vLz0wKuRe1HmWiqHTQUKv7ynL6UB5ESVZaAg3NkSPBNFeEfhe7Ht1Mvv62J8Qw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR15MB1073;7:Iv04FI0AImYvoqXllDvckM4r6xwohqPcu7NFnNvN8CjKojndJ6lQxiaurnWhrC4PqVTsLc1+L8PcZyFCSheLxicOajG/b0Lq7a1iO/A6h6UvcUHhsMXpyOcN5O+0a47fK0cKVNIu1zG+zEY90TIzVQX5dXAI167gS+0LfHqLcTUVDZcN5ulk6paD+/AiVtOhXQ0pzr41wv4x/zncop+BTqZkoYeihVPZ/qe0EzTrXkRhr5AgGGV2NKk+Y5qBRvEw;20:QINNNOBIPM3oxgniUkhZgit5W/KNhM4r94UgbOTFJ+hEfffb7jvnrIoeZFcDalP3sRlRK+O7VlTTM0k6jR3Gjv9ngWF2d5eXi/2b+YXCaXUaSogUiEBnWEVwvHcheBf7NXDSnFPjoibrgtL0h/rDzmZYJorywL2LhjQv9KaQSIo= X-MS-Office365-Filtering-Correlation-Id: f6b56e52-4324-424d-00a3-08d5aaa978d6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 12:38:37.6532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6b56e52-4324-424d-00a3-08d5aaa978d6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR15MB1073 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-25_04:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 01:52:55PM +0300, Vladimir Davydov wrote: > On Tue, Apr 24, 2018 at 02:54:15PM +0100, Roman Gushchin wrote: > > > > But what we can do here, is to ignore memory.min of empty cgroups > > (patch below), it will resolve some edge cases like this. > > Makes sense to me. Ok, let's keep it as a fallback mechanism. Thank you!