Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2092995lqt; Mon, 22 Apr 2024 00:43:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU81K5ByZHfoOHjDYr2n2RZED6R1OXJOpuALYmO3NRlhTvuz7NIj22EuzXH1f9N2As6Ze+h7nNCTbBbk1vFJiz8WFpjVY6he3jKqjllvw== X-Google-Smtp-Source: AGHT+IEURl7Zo/RvylkYrTEJAokabi4bRsWvvKwlFtorIlynyK5X5RpnkgQC1u9jCX/VbizwrlKy X-Received: by 2002:a50:f607:0:b0:570:5bc4:3337 with SMTP id c7-20020a50f607000000b005705bc43337mr4608795edn.40.1713771799670; Mon, 22 Apr 2024 00:43:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713771799; cv=pass; d=google.com; s=arc-20160816; b=G3n21heJzbVye1xxl9ujLzu/Lk+IIpfFRMbzDjNzyqqpc6dSLbOVYPHK0QLRGrpITn jLQqMh8KViuqAIrTXLBkjJloZD/7cLw/QAYLYlOYXf36VxCJuyrPVvirGFBVIe0q4uiQ 2I+Yg95LmTy5vwU6iFOudbJjZ2QuwDqulVQ74DDRebdsMeJlwHvf6e+MekDby2t6vU7W T5L5Nz1Xun6TBNI6NqqPBU/3EfDdq802BtYTpqiPf0d49yQVGguuZky9/jJdHyRDxdF5 o439tCycs+6KhVb+VjdeMADYHavbVLRxYPcy/9L1lxkbhy0EgY4s50p5u4hTCI0+CWLE /Qlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=eYgATfqd8PwpzBjyvQ3X5QGhq7/z0CGn9EB+eG5v+V4=; fh=8j3cshPcKC8dh7LNhAimwJd791iUI4B10zfUQz02DzE=; b=Tq83cvEEOeDYHJlI6lZ4ajXBvW20CsDRjKDKnEsbvhL8O5aae0eiKhHVJjs5dRbd6Y Mh7lPqd9qX1zvN5FxIrGHja5IqG+cj01ei/OFE1uldtZ/b45lD7SZ+iS+M5sXyxAyk/Z Zhpt/+M7jEeLhkRQR8STsp7CKirZCJYG9HUJLgXR00lDqdfmIXy3tDMcMwIyVnd/2BE6 xQ/MbS5lSSBf7umTgjGCtRndWH+ASwYys/8XHOvEtU/iAQK+0pcsYKoBEn1/SSNwd4G5 iwG0ssx7hD0qR+H4HyWLXuAhYyvpIgnVbO3LcmEVtcIicI/UOufOKVYzI4wsow1IyPyu vFHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=EbozUQJB; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-152887-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i6-20020a508706000000b00572046c96fasi1500026edb.550.2024.04.22.00.43.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152887-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=EbozUQJB; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-152887-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4AE721F219F3 for ; Mon, 22 Apr 2024 07:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA7604D5AA; Mon, 22 Apr 2024 07:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="EbozUQJB" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1066A4CE05 for ; Mon, 22 Apr 2024 07:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713771785; cv=none; b=JI2iGAjLAyrqOgBJqRvhnJDDrfWN3hKWyf5YZok0B8AiQgREpxjIw0m2qbVubkh9m8Zy9tUCTCHut2sWXo0fn8ML0cbzkV9RncGWhRo6BlnF1G8TwoLpmEDfqRuk47wBmI67m/WOjrbhaSw2Ay22H6babaRc9SWN1hWK/BDlXjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713771785; c=relaxed/simple; bh=BL2/0H6F8WBTWUlSs53lzMzQSUcfTxv4A65JDP4NViU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=a9wi8feU6jlPOAOAuzUiWOOQ/9tFKYGHQzKXQL9uWDWq/oh488TvF2cG4SP5hKw5uEGUV8u8jAPDmjO5hbRYoYGPY1GOHSTdJ07uFHxMgPG1gxntInUGnSCfYZRJH9JhO//qIyMMFyI299QSbKB5JbpKNqIwcl9emafMRwQuKsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=EbozUQJB; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1e4bf0b3e06so39388095ad.1 for ; Mon, 22 Apr 2024 00:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1713771782; x=1714376582; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eYgATfqd8PwpzBjyvQ3X5QGhq7/z0CGn9EB+eG5v+V4=; b=EbozUQJBYUh4fUpK+2p1CnDkeSrpdZ+M3vquyElZMeDhP3xJoS/evdwZu3YJeUluF0 9q7TKSA3U1L8WgexXa7thOovWUVUHOz4LhrRPhMiAyMCWBQ+eUjJdNOuUTVeEMPGzHKf zyxrJecgVsvOlnQEtaZhQsxzK0v1IPL1ndYZmfhQtnUps0UJB0nTBCD3/XyVSddLgWhj V2S12kkVmksbRo0Fl41C5/2mbSTvHSr9oZQUby2YhSqIU2B1j7wULs7W5F8WzQe/F94+ MYFkPDM8QeF0D5V+ILZimjdARoCNUz6mALI+Ug/0EcVS5PH0NUrsT8a4/4juRqCzVGzv yLzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713771782; x=1714376582; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eYgATfqd8PwpzBjyvQ3X5QGhq7/z0CGn9EB+eG5v+V4=; b=J8Iq8zigNJwMHmGiw/V1vjlZtNhjI8iPlNFhfWDsiIuhmm+1C+96xPrbEzTarQfwMi d8+i/6Yp/A1j0esqxGoNZLFLGjSxx00QWxoyXAQzJuNVewlxkFB+bIrlvAMohMMZGtHP vm9L+M3Sf2DUd0w7dCYRp4jiKjJlMQkhfRr2i39JZamR1FYZ1M8qF/EGEDP2wCJgZWLf whSsKC9Q0gjEF4LKDv+upnbY2nKWJqGxLKb0Z2wHkIjzOm0D6d2C0KX3zEN1oQXMhzDp FLNe9hWoKZ1cPCfy2j5q1LB7+810+TaL2cDN0yxBgzoojDpjIap8jO+wrfmTiIkzKHrU Wl3Q== X-Gm-Message-State: AOJu0YzNzHudq5NLEJcXBZjL8EIp/8Mz6mLNeY1QoOGmSm18ifVAcStd M/01ty5acxM5bk5obgDT2q3JszR4YTNYy9MynC5XFE3h5A7eSgPSVp+ibnEwWCgEdqDZLquxcxK 6 X-Received: by 2002:a17:902:ec8a:b0:1e9:a0ce:f60e with SMTP id x10-20020a170902ec8a00b001e9a0cef60emr3671572plg.19.1713771781857; Mon, 22 Apr 2024 00:43:01 -0700 (PDT) Received: from libai.bytedance.net ([61.213.176.11]) by smtp.gmail.com with ESMTPSA id e11-20020a170902784b00b001e0bae4490fsm7595634pln.154.2024.04.22.00.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:43:01 -0700 (PDT) From: zhenwei pi To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, virtualization@lists.linux.dev Cc: mst@redhat.com, david@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com, akpm@linux-foundation.org, zhenwei pi Subject: [PATCH v2 0/4] Improve memory statistics for virtio balloon Date: Mon, 22 Apr 2024 15:42:50 +0800 Message-Id: <20240422074254.1440457-1-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, v1 -> v2: - Add a new patch 'virtio_balloon: separate vm events into a function' to avoid any compiler warnings(unused stack variable on CONFIG_VM_EVENT_COUNTERS=n) - Suggested by David, use a loop 'for (zid = 0; zid < MAX_NR_ZONES; zid++)' to obtain all the stall events. RFC -> v1: - several text changes: oom-kill -> oom-kills, SCAN_ASYNC -> ASYN_SCAN. - move vm events codes into '#ifdef CONFIG_VM_EVENT_COUNTERS' RFC version: Link: https://lore.kernel.org/lkml/20240415084113.1203428-1-pizhenwei@bytedance.com/T/#m1898963b3c27a989b1123db475135c3ca687ca84 zhenwei pi (4): virtio_balloon: separate vm events into a function virtio_balloon: introduce oom-kill invocations virtio_balloon: introduce memory allocation stall counter virtio_balloon: introduce memory scan/reclaim info drivers/virtio/virtio_balloon.c | 62 ++++++++++++++++++++++------- include/uapi/linux/virtio_balloon.h | 16 +++++++- 2 files changed, 61 insertions(+), 17 deletions(-) -- 2.34.1