Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp976058rwi; Wed, 19 Oct 2022 05:23:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6j8dcPFMgWgcu/Tna3xb4XFAyThmCh3NKuXI/6PTeCPW1efg/RKkMFM76dDHS0aTKKpZWO X-Received: by 2002:a17:902:e804:b0:186:5736:2b6d with SMTP id u4-20020a170902e80400b0018657362b6dmr1988690plg.85.1666182206038; Wed, 19 Oct 2022 05:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666182206; cv=none; d=google.com; s=arc-20160816; b=hzRu+7lZ8251DmgCxgVF7NPJuyHZcYmtFt44Yg6JhwCKhc3KvOcl9x0xZAEE1C1L/F d5ITGuc3dw+F4cLlUZKYofboQbq3i1s1DzyInQlIz5b+i718bIzBqhc0JEmFBIlpWPCK U3mdA9q0W7u8EoRwrcoeO7Eiq8PCm1t+S3nJzHA6eMQJ1Mpq3Bqq2abwP/mzttrrppeR FnO/HxadvaPmtJIiMsHeT4MSoHqXxjK3GBR2IA8pg0QNYNIK0AXgF7ikb0ZZjlZUB489 SxJl70wWOwiRjOrdpwjhQPvwRhqJ/X2YZHwnuvD51V7M41+1QDlNVLPuh5Ux+MEoMLbh KtqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=KfR1yiQyvGWILXvQgDdmh9/mTjqO7etqhZK5eWBc8oc=; b=i0yZq9BiegacQBXSrJkg5kcWPLk9AqG+fxJgo9tFROsFivJYmOPjzB2pOm+UeXg/2B diBjAolBANvTImi3XEOhneip1JNHoEiIYB08sRHBTGWnDkNpHCPHd3fEekKUtnlFJwcf md+4ZSsQ7tsMRjkOiIbLDM2iqsK9XhLm+ni61nDzCR+2SQeeSsTbmuXXHWFaD8muwr5Y YJL9EH+swlxRsVXWOx4ntz7bKfMG0tXMwH1RvbK2se+A1A/QLiPOCDmn/r8UN7G8yitW VxrAIRTVCbVuq8KgQshDYsgnOzD0OHncqc39U/eaug1xkr81YESu65Ho/+kkMyXvnchx Ug7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a056a000c8d00b00546ce9189b1si19929141pfv.65.2022.10.19.05.23.14; Wed, 19 Oct 2022 05:23:26 -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; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbiJSLq5 (ORCPT + 99 others); Wed, 19 Oct 2022 07:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbiJSLq2 (ORCPT ); Wed, 19 Oct 2022 07:46:28 -0400 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78455136401 for ; Wed, 19 Oct 2022 04:25:47 -0700 (PDT) Received: from dev011.ch-qa.sw.ru ([172.29.1.16]) by relay.virtuozzo.com with esmtp (Exim 4.95) (envelope-from ) id 1ol5lc-00B8K8-Jy; Wed, 19 Oct 2022 11:56:31 +0200 From: Alexander Atanasov Cc: kernel@openvz.org, Alexander Atanasov , linux-kernel@vger.kernel.org Subject: [RFC PATCH v5 4/8] mm: Display inflated memory in logs Date: Wed, 19 Oct 2022 12:56:16 +0300 Message-Id: <20221019095620.124909-5-alexander.atanasov@virtuozzo.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221019095620.124909-1-alexander.atanasov@virtuozzo.com> References: <20221019095620.124909-1-alexander.atanasov@virtuozzo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add InflatedTotal and InflatedFree to show_mem(...) so it is visible in the logs. Signed-off-by: Alexander Atanasov --- lib/show_mem.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/show_mem.c b/lib/show_mem.c index 0d7585cde2a6..20b5964d498e 100644 --- a/lib/show_mem.c +++ b/lib/show_mem.c @@ -7,6 +7,9 @@ #include #include +#ifdef CONFIG_MEMORY_BALLOON +#include +#endif void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) { @@ -41,4 +44,9 @@ void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) #ifdef CONFIG_MEMORY_FAILURE printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages)); #endif +#ifdef CONFIG_MEMORY_BALLOON + printk("Balloon InflatedTotal:%ldkB InflatedFree:%ldkB\n", + atomic_long_read(&mem_balloon_inflated_total_kb), + atomic_long_read(&mem_balloon_inflated_free_kb)); +#endif } -- 2.31.1