Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1349200iog; Sat, 25 Jun 2022 07:09:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s00SeMlEEzUjYwbDAN6C/qsnR7mbon4HoDsp1aXXoHtDcX4wy+YXMWOrIPAiSj0pVdTBpS X-Received: by 2002:a05:6a00:a1f:b0:525:3ad6:fb7e with SMTP id p31-20020a056a000a1f00b005253ad6fb7emr4686927pfh.68.1656166151733; Sat, 25 Jun 2022 07:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656166151; cv=none; d=google.com; s=arc-20160816; b=rZ+OKaSWa+EFcQvMWxG667sjIAEbh98f3rBUDbFlyuB5D8SH94duQlgsnIALoZXM2S D+8lu/+eyRk3c1WdSWVajFFBIrKps0FS7uhGGFf7ayRB0PbXQYiPoGttJ9fDny3adP+g CF46UEdyoF/CfI8QlHb2pwV3oMfmKTlw4IIswr+/L0V1LUUQz8RxSWcPCLC4kUIQx+N1 bQufuTmlc+EyDv+AT34BJ4ryOZGQlzBQoyR+73PrWLGk646CoaLYgB9UgKeeZXjRhz7b 6KkxkHkDm2OEKxb0D913uImyL+JpTCLd8rAvgqFw04lrl+pRdBMMtrIpXZwH2vW1oSZ3 N1ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=P4+NIZh0+FuNtpaxK6+hjjWOuYrxTf6SJFt+dTJJxto=; b=LIg0jSGBf/P4h3QnNa6tnUSNwkO1VcISyXFz5CG+jW3AmGr45cPZL2PsK7KQW7FpMk CDY5/NgD4Ovwtq4d8uaOTR0EJyLxQnYoe9RV5IvMMJ23raNvkXLgxZhOJmVX0ySzWGnD SofC6ca1hH9PPtRDAz7K44/lVejDgUQIl2HdGPPC+Py4XpZVpRmv3o9222Xm/dxUNY+O 1O7yMGabzB1kVKNurr3BjzIiAJ6WdCvuMByBBIV2tkK9Jwy7hujup1GJONUQr+hF2IoG QG7iW0iQn3tOnIxa+RZ3bM0Thsq8XiP5q2xqT/v91EHgBsHNDzsWqiEQC+ALwj8m6WjQ CyFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=j8MthZMi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a170902f60300b00164027788e8si7088131plg.254.2022.06.25.07.08.59; Sat, 25 Jun 2022 07:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=j8MthZMi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233090AbiFYOEc (ORCPT + 99 others); Sat, 25 Jun 2022 10:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232852AbiFYOEb (ORCPT ); Sat, 25 Jun 2022 10:04:31 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1795DE2D for ; Sat, 25 Jun 2022 07:04:30 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id x3so9147488lfd.2 for ; Sat, 25 Jun 2022 07:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=P4+NIZh0+FuNtpaxK6+hjjWOuYrxTf6SJFt+dTJJxto=; b=j8MthZMi7RVwBJqVMUfnHVHFR5zj5MeoLZOa3BxwPZ1FLgoE9Ys0FlepkG5k1jy0Ar 1jd1cU1J0OwwcYO1fa3uCSE8SYVa/y2JS27/ypUs79A+KpiOvGdu1RQl3xi074/bc00v RL1IGWckKGZwUazwHBZlN6KhGst6eN5PwXkAyTUo0D47JHNUaNg9HxNN5376TXha3PAd 5zYzFHqepDuzLYgKW6g1dwQ9NhMNJNTEVHNMZjI54ILaUSlAXylzhfvFCOV4dLG4fr1e IIFSmh0qjFSp9/y89//v2cWpEP2dIMxPqfFT+OlCWT+2SQWWooWlSouK15V5avd6IEK1 1cxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=P4+NIZh0+FuNtpaxK6+hjjWOuYrxTf6SJFt+dTJJxto=; b=M092JK20KYQ6D2GilLQ1z5BQaTOfx4JXKzJVN5RTwRujzEsB61mIcq++Jldo4RXAW1 NDSOl9NnwY9ri053LiNJc9zECoYQo79vCCD6xsHEzk+mfH2v7SdIGiJ+u1YEky4J5Q+s 3rsVBup4vN4J2j0T5LVvvkhxCW/IePaYRtuFepE/iH9DGCw92jBVeN7sONk3dw75TEDs IoaUL6qNKOv+odcrT6ssy0x58VlmEUM1yMC56RHq/RsYWY80ju1vj++2WkwHLaFO7ymx zw08TZzIFHP3irqBlBEWXMPqqbXDYnhrSrv13rnO8/UJikNmikhulchV/60owsr+YUy/ okbA== X-Gm-Message-State: AJIora+z4Ee7OqprlA9Kn/zH0IPmuQU9AZG6rhRskw2XvkmWSonUAI7G 7KcixD6H9b36I78NiIV9pVRDCw== X-Received: by 2002:a05:6512:3f10:b0:47f:42ae:c0fc with SMTP id y16-20020a0565123f1000b0047f42aec0fcmr2471017lfa.688.1656165868465; Sat, 25 Jun 2022 07:04:28 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.129]) by smtp.gmail.com with ESMTPSA id e14-20020a05651c038e00b0025a7056f4easm669538ljp.85.2022.06.25.07.04.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Jun 2022 07:04:28 -0700 (PDT) Message-ID: Date: Sat, 25 Jun 2022 17:04:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 From: Vasily Averin Subject: [PATCH RFC] memcg: notify about global mem_cgroup_id space depletion To: Shakeel Butt , =?UTF-8?Q?Michal_Koutn=c3=bd?= , Michal Hocko Cc: kernel@openvz.org, linux-kernel@vger.kernel.org, Andrew Morton , linux-mm@kvack.org, Roman Gushchin , Vlastimil Babka , Muchun Song , cgroups@vger.kernel.org References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently host owner is not informed about the exhaustion of the global mem_cgroup_id space. When this happens, systemd cannot start a new service, but nothing points to the real cause of this failure. Signed-off-by: Vasily Averin --- mm/memcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d4c606a06bcd..5229321636f2 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -5317,6 +5317,7 @@ static struct mem_cgroup *mem_cgroup_alloc(void) 1, MEM_CGROUP_ID_MAX + 1, GFP_KERNEL); if (memcg->id.id < 0) { error = memcg->id.id; + pr_notice_ratelimited("mem_cgroup_id space is exhausted\n"); goto fail; } -- 2.36.1