Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2670973iog; Sun, 26 Jun 2022 23:51:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1td0dC5gfGiTIJwCHcR2xChuvyTxfScTaJebwAAC5r3oRXt9jlTZk6A7ZgeeTo/W6LivWgC X-Received: by 2002:a05:6402:498:b0:435:daf0:915b with SMTP id k24-20020a056402049800b00435daf0915bmr14315871edv.322.1656312688534; Sun, 26 Jun 2022 23:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656312688; cv=none; d=google.com; s=arc-20160816; b=QqhDums4IKP+adDBbtZn1mzopCeCSy+ynzCj/vgD9Wn9GByJpVfOALhAaAx9+xvBWd uKNFZUqSQuDEo8ubECaQ5gZh5sINeIkFy+oB8hbPpqn82+SjGSXHSc/i6JQQbZRhPOMm o/JMsVgHr4r0nt6QlZi6hEOFcwu3aRpQH2sFKYzKvgWhexNT77S9p7v5TQselZkjmNF/ JMIVGJfSdjFA8cokUqkDRt7OvNmr/ZTVd0ZnGfi1FdA68G8DLvyDZsq3JsNxMHxKrD3U yrlCXLrKs/kNqPquj5nIiNAGuzUTydlmokFRrltc0owtldJEtn30Z+Lu+3owHm0pEaWE LMgA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jB9gmLMPTj46OngTeaDoiv6CEvUyIMLR8V7jwVzji04=; b=RPUMYolcTYF183KUnAMns+9OzJIdZ8hzAJxJi5w9OfvOeHVFhgcRdvqdn8fypTrmhN /Ev7ZVHRCuqyYxAYL/FAyAIxR72LA1XyUnZ62UE5v6IxET8iKgpQxXX1eNtJ7DDs5Un5 m+jqd51SwiuCD5TS6PI7PlBKouaB31CHV6mdbbXXcGO/9TTgb0wRVEAQaQJefr+gTfN9 AxLUjE0AeuLFg8zE1k5+Ve0qSbSjrw2OH5pZ3VN3D6rG2kpK98oseO7ywQFp0Kk6FBjW FHEOuXgbp1ZGf8C9dqswf7E+6XJv41E0EJLVDHCbG7dRWRAlSEiD9paARwCOF7yHYgsr FIsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=FC6ETplD; 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 du6-20020a17090772c600b006fefef9abd2si15011644ejc.366.2022.06.26.23.51.04; Sun, 26 Jun 2022 23:51:28 -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=FC6ETplD; 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 S232445AbiF0Gt3 (ORCPT + 99 others); Mon, 27 Jun 2022 02:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbiF0GtY (ORCPT ); Mon, 27 Jun 2022 02:49:24 -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 1A708C08 for ; Sun, 26 Jun 2022 23:49:21 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id y32so14897778lfa.6 for ; Sun, 26 Jun 2022 23:49:21 -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:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=jB9gmLMPTj46OngTeaDoiv6CEvUyIMLR8V7jwVzji04=; b=FC6ETplDrOSrvKwinUtNxD54YXyc1Tqr5kU/AHTxIqhiecrK8dLL0Buj583oTUDfBT x32T5x0pbVTqQwo0kPnIYpBqjx0tbwH8f74480tzNPj24NqzVX2kNKUl8IHxJ2zlTe8A 9zWG0tXAmmNpmy2F3QDERfa/yKDcFuoCGv6w5yZOO/bTPCozu4QLFDUf0MK1/1FPa3In wO6R725pJJ7Z3OlOeABc1wL+pdv/CcmXNVMce062QhR0ur3HPu0RHKTP4bh+bgfxh/Jx IZCgDPgOcn6Mq+i+OAIznu6URXW/rdI3w0X8dJT3x9miytTnfhAD6sj3hihCmxXJHx+Q ZRIQ== 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:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=jB9gmLMPTj46OngTeaDoiv6CEvUyIMLR8V7jwVzji04=; b=A5yS5nZwRhCZIU/nwcpGEgQdTdHL+cF3ZcyZCJzw8v+Lvbl5AU73bR2ibxBvEjC012 LP2bgw/bX/7xBmXw/LcMfLWviV1ki8YElOTGO7a2Nl67AIcvozy1DIjn+x9v56Vs2jmM je1NHl8XCO8O23E+vCHU9y7Mqu6OPP4AGW1KePCGHo1/wyuwA1I4WLqPdkMKcSUOO6S3 IKLCoP2003/ZG8X0JkMlhwtPfdUMDqu1YeTugdlgcO6bxpDyujpZ0gAsapgnq5Zb707e CRNwTSY6OEHmOdOASncDkmppj0mF2QUyXxOV8QWz1AhJW7UKsVMwwS8YprQjLZ5dZfTt AKkA== X-Gm-Message-State: AJIora8+phGYFmO0lAdavqyoyMGcUB2iKA+fDBpzk4Dtwd4XYLnSAun/ utWRS1pM9muXHuc+bD5LMYJfTg== X-Received: by 2002:a05:6512:2390:b0:481:6f3:2de7 with SMTP id c16-20020a056512239000b0048106f32de7mr6403105lfv.497.1656312560374; Sun, 26 Jun 2022 23:49:20 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.129]) by smtp.gmail.com with ESMTPSA id p26-20020ac246da000000b0047f797dcbd1sm1672606lfo.189.2022.06.26.23.49.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jun 2022 23:49:19 -0700 (PDT) Message-ID: Date: Mon, 27 Jun 2022 09:49:18 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH mm v2] memcg: notify about global mem_cgroup_id space depletion Content-Language: en-US To: Muchun Song Cc: Shakeel Butt , Roman Gushchin , =?UTF-8?Q?Michal_Koutn=c3=bd?= , Michal Hocko , kernel@openvz.org, LKML , Andrew Morton , Linux Memory Management List , Vlastimil Babka , Cgroups References: <97bed1fd-f230-c2ea-1cb6-8230825a9a64@openvz.org> From: Vasily Averin 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,NICE_REPLY_A,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 On 6/27/22 06:23, Muchun Song wrote: > If the caller can know -ENOSPC is returned by mkdir(), then I > think the user (perhaps systemd) is the best place to throw out the > error message instead of in the kernel log. Right? Such an incident may occur inside the container. OpenVZ nodes can host 300-400 containers, and the host admin cannot monitor guest logs. the dmesg message is necessary to inform the host owner that the global limit has been reached, otherwise he can continue to believe that there are no problems on the node. Thank you, Vasily Averin