* [PATCH 0/1] balloon: introduce 6 memory statistics
@ 2024-05-13 12:10 zhenwei pi
2024-05-13 12:10 ` [PATCH 1/1] " zhenwei pi
2024-05-27 6:41 ` [PATCH 0/1] " Michael S. Tsirkin
0 siblings, 2 replies; 4+ messages in thread
From: zhenwei pi @ 2024-05-13 12:10 UTC (permalink / raw)
To: virtio-comment, virtio-dev; +Cc: david, zhenwei pi
Hi,
There is a previous discussion about the new memory statistics:
https://lore.kernel.org/linux-kernel/20240423034109.1552866-1-pizhenwei@bytedance.com/T/
This may be helpful to describe the usage of these counters.
zhenwei pi (1):
balloon: introduce 6 memory statistics
device-types/balloon/description.tex | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] balloon: introduce 6 memory statistics
2024-05-13 12:10 [PATCH 0/1] balloon: introduce 6 memory statistics zhenwei pi
@ 2024-05-13 12:10 ` zhenwei pi
2024-05-21 3:50 ` Michael S. Tsirkin
2024-05-27 6:41 ` [PATCH 0/1] " Michael S. Tsirkin
1 sibling, 1 reply; 4+ messages in thread
From: zhenwei pi @ 2024-05-13 12:10 UTC (permalink / raw)
To: virtio-comment, virtio-dev; +Cc: david, zhenwei pi
Expose more memory statistics of the virtual memory subsystem from
guest, it's helpful to analyze the memory performance and pressure
from host side.
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
---
device-types/balloon/description.tex | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/device-types/balloon/description.tex b/device-types/balloon/description.tex
index a1d9603..bc8e109 100644
--- a/device-types/balloon/description.tex
+++ b/device-types/balloon/description.tex
@@ -305,6 +305,12 @@ \subsubsection{Memory Statistics}\label{sec:Device Types / Memory Balloon Device
#define VIRTIO_BALLOON_S_CACHES 7
#define VIRTIO_BALLOON_S_HTLB_PGALLOC 8
#define VIRTIO_BALLOON_S_HTLB_PGFAIL 9
+#define VIRTIO_BALLOON_S_OOM_KILL 10
+#define VIRTIO_BALLOON_S_ALLOC_STALL 11
+#define VIRTIO_BALLOON_S_ASYNC_SCAN 12
+#define VIRTIO_BALLOON_S_DIRECT_SCAN 13
+#define VIRTIO_BALLOON_S_ASYNC_RECLAIM 14
+#define VIRTIO_BALLOON_S_DIRECT_RECLAIM 15
le16 tag;
le64 val;
} __attribute__((packed));
@@ -399,6 +405,24 @@ \subsubsection{Memory Statistics Tags}\label{sec:Device Types / Memory Balloon D
\item[VIRTIO_BALLOON_S_HTLB_PGFAIL (9)] The number of failed hugetlb page
allocations in the guest.
+
+\item[VIRTIO_BALLOON_S_OOM_KILL (10)] The number of Out-Of-Memory killer
+ invocations.
+
+\item[VIRTIO_BALLOON_S_ALLOC_STALL (11)] The number of stall count on memory
+ allocation.
+
+\item[VIRTIO_BALLOON_S_ASYNC_SCAN (12)] The amount of memory that has been
+ scanned asynchronously (in bytes).
+
+\item[VIRTIO_BALLOON_S_DIRECT_SCAN (13)] The amount of memory that has been
+ scanned directly (in bytes).
+
+\item[VIRTIO_BALLOON_S_ASYNC_RECLAIM (14)] The amount of memory that has been
+ reclaimed asynchronously (in bytes).
+
+\item[VIRTIO_BALLOON_S_DIRECT_RECLAIM (15)] The amount of memory that has been
+ reclaimed directly (in bytes).
\end{description}
\subsubsection{Free Page Hinting}\label{sec:Device Types / Memory Balloon Device / Device Operation / Free Page Hinting}
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] balloon: introduce 6 memory statistics
2024-05-13 12:10 ` [PATCH 1/1] " zhenwei pi
@ 2024-05-21 3:50 ` Michael S. Tsirkin
0 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2024-05-21 3:50 UTC (permalink / raw)
To: zhenwei pi; +Cc: virtio-comment, virtio-dev, david
On Mon, May 13, 2024 at 08:10:05PM +0800, zhenwei pi wrote:
> Expose more memory statistics of the virtual memory subsystem from
> guest, it's helpful to analyze the memory performance and pressure
> from host side.
>
> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
zhenwei
when subsriving to the lists you should have received this text:
Not to do:
- copy both virtio-dev and virtio-comment mailing lists (instead, pick
one)
did you not get this text? was this, somehow, unclear that you copied both
virtip-comment and virtio-dev on your patch?
> ---
> device-types/balloon/description.tex | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/device-types/balloon/description.tex b/device-types/balloon/description.tex
> index a1d9603..bc8e109 100644
> --- a/device-types/balloon/description.tex
> +++ b/device-types/balloon/description.tex
> @@ -305,6 +305,12 @@ \subsubsection{Memory Statistics}\label{sec:Device Types / Memory Balloon Device
> #define VIRTIO_BALLOON_S_CACHES 7
> #define VIRTIO_BALLOON_S_HTLB_PGALLOC 8
> #define VIRTIO_BALLOON_S_HTLB_PGFAIL 9
> +#define VIRTIO_BALLOON_S_OOM_KILL 10
> +#define VIRTIO_BALLOON_S_ALLOC_STALL 11
> +#define VIRTIO_BALLOON_S_ASYNC_SCAN 12
> +#define VIRTIO_BALLOON_S_DIRECT_SCAN 13
> +#define VIRTIO_BALLOON_S_ASYNC_RECLAIM 14
> +#define VIRTIO_BALLOON_S_DIRECT_RECLAIM 15
> le16 tag;
> le64 val;
> } __attribute__((packed));
> @@ -399,6 +405,24 @@ \subsubsection{Memory Statistics Tags}\label{sec:Device Types / Memory Balloon D
>
> \item[VIRTIO_BALLOON_S_HTLB_PGFAIL (9)] The number of failed hugetlb page
> allocations in the guest.
> +
> +\item[VIRTIO_BALLOON_S_OOM_KILL (10)] The number of Out-Of-Memory killer
> + invocations.
> +
> +\item[VIRTIO_BALLOON_S_ALLOC_STALL (11)] The number of stall count on memory
> + allocation.
> +
> +\item[VIRTIO_BALLOON_S_ASYNC_SCAN (12)] The amount of memory that has been
> + scanned asynchronously (in bytes).
> +
> +\item[VIRTIO_BALLOON_S_DIRECT_SCAN (13)] The amount of memory that has been
> + scanned directly (in bytes).
> +
> +\item[VIRTIO_BALLOON_S_ASYNC_RECLAIM (14)] The amount of memory that has been
> + reclaimed asynchronously (in bytes).
> +
> +\item[VIRTIO_BALLOON_S_DIRECT_RECLAIM (15)] The amount of memory that has been
> + reclaimed directly (in bytes).
> \end{description}
>
> \subsubsection{Free Page Hinting}\label{sec:Device Types / Memory Balloon Device / Device Operation / Free Page Hinting}
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/1] balloon: introduce 6 memory statistics
2024-05-13 12:10 [PATCH 0/1] balloon: introduce 6 memory statistics zhenwei pi
2024-05-13 12:10 ` [PATCH 1/1] " zhenwei pi
@ 2024-05-27 6:41 ` Michael S. Tsirkin
1 sibling, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2024-05-27 6:41 UTC (permalink / raw)
To: zhenwei pi; +Cc: virtio-comment, virtio-dev, david
On Mon, May 13, 2024 at 08:10:04PM +0800, zhenwei pi wrote:
> Hi,
>
> There is a previous discussion about the new memory statistics:
> https://lore.kernel.org/linux-kernel/20240423034109.1552866-1-pizhenwei@bytedance.com/T/
> This may be helpful to describe the usage of these counters.
It's ok to add a link but you really should include the
motivation with the patch, and preferably in the commit log
not the cover letter.
I think the qemu patches actually include a lot of good info
about the statistics collected. But they also raise a lot
of questions that would be of interest to the TC.
>
> zhenwei pi (1):
> balloon: introduce 6 memory statistics
>
> device-types/balloon/description.tex | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-27 6:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 12:10 [PATCH 0/1] balloon: introduce 6 memory statistics zhenwei pi
2024-05-13 12:10 ` [PATCH 1/1] " zhenwei pi
2024-05-21 3:50 ` Michael S. Tsirkin
2024-05-27 6:41 ` [PATCH 0/1] " Michael S. Tsirkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).