Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1638200rwb; Wed, 5 Oct 2022 02:33:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FfbJHtrLbmcTBMK9M1hUfMwvOhNglnUWpX+ddRR01Zl3xGhRkF+CWgaHqYLUMSkQWZ0O7 X-Received: by 2002:a05:6402:5485:b0:459:147a:d902 with SMTP id fg5-20020a056402548500b00459147ad902mr11914908edb.263.1664962386409; Wed, 05 Oct 2022 02:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664962386; cv=none; d=google.com; s=arc-20160816; b=JvVtA+jrSYt6vtLd+Rn/ZGBs/bYM58KbJ7gH/tB+CeEK0NZn1W7uNxFkW0lBcUx2EK 8X/c2NJ7N0lpNfyWTJ+xk7a7mzrtRktsffOijxCXgQJwiPu5WJGqLagv81qTJKs/njOX yr9ZKshvaUtM03gDj8DuDgZ4V2PftOjvIbFfQekeJqdvLix/E6u3HbJ66Ptzo9T1ERV0 cV7/USYu9zCqQ28p1rwTorWGqvATzC4T5El8+87OVqOdqPUFwVAjzRmWFaQGFhe3Z4W9 9RZfVJo/F7qLYvWoH5LNOr/wQjhsjqS7DiX0/ciAzbdbgA6M+H7Hw3XOs88W1xG+oKUN BZ9A== 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=J4GeG7hrkXGT1nU04ghAMPDAJiKlRY/cNX8Y1oWYGgE=; b=IEyYrE/gphIT4v6IjbyrAGUM1eKgRbHCWaQn04VShGixjmLkj3uRH3crPEwIds5DpJ CnHHUAKStcq3ATbyAKq0okzuThUYAaHdqL3AbawjGf+JNvsa0cREn/2ekoTHxvNStoPg /+mBP0WikweFa5RzXcsfpRigaCLRkMSHIf5rUa07gVVPn/ek4QHbCfWRK79b/GUyLyFu Wca0J9kBoxkWmkSG5eMBBG4Pg7lsrmZV+G8Abu7RP736Bo8H6D+8oUlF15EIKkfSrddp +DJZSl6U/ZQUHVoDoEriu6XbscqDu2sCAGiHIKe4aVzhbXZd393gBcpKusGxsfHHQVlN e2nA== 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 xg12-20020a170907320c00b0073d8e26e78bsi9518234ejb.960.2022.10.05.02.32.40; Wed, 05 Oct 2022 02:33:06 -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 S229942AbiJEJD3 (ORCPT + 99 others); Wed, 5 Oct 2022 05:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbiJEJD1 (ORCPT ); Wed, 5 Oct 2022 05:03:27 -0400 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E65715D132 for ; Wed, 5 Oct 2022 02:03:25 -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 1og0GP-007ckN-Nc; Wed, 05 Oct 2022 11:02:50 +0200 From: Alexander Atanasov Cc: kernel@openvz.org, Alexander Atanasov , linux-kernel@vger.kernel.org Subject: [PATCH v4 5/7] Display inflated memory in logs Date: Wed, 5 Oct 2022 12:01:55 +0300 Message-Id: <20221005090158.2801592-6-alexander.atanasov@virtuozzo.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221005090158.2801592-1-alexander.atanasov@virtuozzo.com> References: <20221005090158.2801592-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 seen 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 1c26c14ffbb9..1c022b9d7ac5 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) { @@ -41,4 +44,9 @@ void show_mem(unsigned int filter, nodemask_t *nodemask) #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