All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] [PATCH v2] content: document balloon memory statistics
@ 2018-02-22 12:50 Tomáš Golembiovský
  2018-03-05 14:08 ` Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tomáš Golembiovský @ 2018-02-22 12:50 UTC (permalink / raw)
  To: virtio-dev
  Cc: Stefan Hajnoczi, Jonathan Helman, Michael S. Tsirkin,
	Tomáš Golembiovský

Linux kernel provides some balloon memory statistics that were not
included in the specs. Include them to avoid any ID clashes in the
future.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
 content.tex | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/content.tex b/content.tex
index c7ef7fd..7e9e026 100644
--- a/content.tex
+++ b/content.tex
@@ -5028,6 +5028,8 @@ struct virtio_balloon_stat {
 #define VIRTIO_BALLOON_S_MINFLT   3
 #define VIRTIO_BALLOON_S_MEMFREE  4
 #define VIRTIO_BALLOON_S_MEMTOT   5
+#define VIRTIO_BALLOON_S_AVAIL    6
+#define VIRTIO_BALLOON_S_CACHES   7
         le16 tag;
         le64 val;
 } __attribute__((packed));
@@ -5109,6 +5111,13 @@ first buffer.
 
 \item[VIRTIO_BALLOON_S_MEMTOT (5)] The total amount of memory available
   (in bytes).
+
+\item[VIRTIO_BALLOON_S_AVAIL (6)] An estimate of how much memory is available
+  (in bytes) for starting new applications, without pushing the system to swap.
+
+\item[VIRTIO_BALLOON_S_CACHES (7)] The amount of memory, in bytes, that can be
+  quickly reclaimed without additional I/O. Typically these pages are used for
+  caching files from disk.
 \end{description}
 
 \section{SCSI Host Device}\label{sec:Device Types / SCSI Host Device}
-- 
2.16.1


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [virtio-dev] [PATCH v2] content: document balloon memory statistics
  2018-02-22 12:50 [virtio-dev] [PATCH v2] content: document balloon memory statistics Tomáš Golembiovský
@ 2018-03-05 14:08 ` Stefan Hajnoczi
  2018-03-05 14:16 ` [virtio-dev] " Michael S. Tsirkin
  2018-03-09 22:53 ` Michael S. Tsirkin
  2 siblings, 0 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2018-03-05 14:08 UTC (permalink / raw)
  To: Tomáš Golembiovský
  Cc: virtio-dev, Jonathan Helman, Michael S. Tsirkin

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

On Thu, Feb 22, 2018 at 01:50:52PM +0100, Tomáš Golembiovský wrote:
> Linux kernel provides some balloon memory statistics that were not
> included in the specs. Include them to avoid any ID clashes in the
> future.
> 
> Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
> ---
>  content.tex | 9 +++++++++
>  1 file changed, 9 insertions(+)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [virtio-dev] Re: [PATCH v2] content: document balloon memory statistics
  2018-02-22 12:50 [virtio-dev] [PATCH v2] content: document balloon memory statistics Tomáš Golembiovský
  2018-03-05 14:08 ` Stefan Hajnoczi
@ 2018-03-05 14:16 ` Michael S. Tsirkin
  2018-03-09 22:53 ` Michael S. Tsirkin
  2 siblings, 0 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2018-03-05 14:16 UTC (permalink / raw)
  To: Tomáš Golembiovský
  Cc: virtio-dev, Stefan Hajnoczi, Jonathan Helman

On Thu, Feb 22, 2018 at 01:50:52PM +0100, Tomáš Golembiovský wrote:
> Linux kernel provides some balloon memory statistics that were not
> included in the specs. Include them to avoid any ID clashes in the
> future.
> 
> Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>

OK when you feel it's ready, pls open an issue in github,
don't forget to include link to list archives (this email).
Then send an email so I can start the voting.

> ---
>  content.tex | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/content.tex b/content.tex
> index c7ef7fd..7e9e026 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -5028,6 +5028,8 @@ struct virtio_balloon_stat {
>  #define VIRTIO_BALLOON_S_MINFLT   3
>  #define VIRTIO_BALLOON_S_MEMFREE  4
>  #define VIRTIO_BALLOON_S_MEMTOT   5
> +#define VIRTIO_BALLOON_S_AVAIL    6
> +#define VIRTIO_BALLOON_S_CACHES   7
>          le16 tag;
>          le64 val;
>  } __attribute__((packed));
> @@ -5109,6 +5111,13 @@ first buffer.
>  
>  \item[VIRTIO_BALLOON_S_MEMTOT (5)] The total amount of memory available
>    (in bytes).
> +
> +\item[VIRTIO_BALLOON_S_AVAIL (6)] An estimate of how much memory is available
> +  (in bytes) for starting new applications, without pushing the system to swap.
> +
> +\item[VIRTIO_BALLOON_S_CACHES (7)] The amount of memory, in bytes, that can be
> +  quickly reclaimed without additional I/O. Typically these pages are used for
> +  caching files from disk.
>  \end{description}
>  
>  \section{SCSI Host Device}\label{sec:Device Types / SCSI Host Device}
> -- 
> 2.16.1

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [virtio-dev] Re: [PATCH v2] content: document balloon memory statistics
  2018-02-22 12:50 [virtio-dev] [PATCH v2] content: document balloon memory statistics Tomáš Golembiovský
  2018-03-05 14:08 ` Stefan Hajnoczi
  2018-03-05 14:16 ` [virtio-dev] " Michael S. Tsirkin
@ 2018-03-09 22:53 ` Michael S. Tsirkin
  2018-03-11 19:19   ` Tomáš Golembiovský
  2 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2018-03-09 22:53 UTC (permalink / raw)
  To: Tomáš Golembiovský
  Cc: virtio-dev, Stefan Hajnoczi, Jonathan Helman

On Thu, Feb 22, 2018 at 01:50:52PM +0100, Tomáš Golembiovský wrote:
> Linux kernel provides some balloon memory statistics that were not
> included in the specs. Include them to avoid any ID clashes in the
> future.
> 
> Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>

No comments on this so far. When you feel it's ready to vote,
please open a github issue:
https://github.com/oasis-tcs/virtio-spec/issues
Set it as ready to vote and I'll start voting.

> ---
>  content.tex | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/content.tex b/content.tex
> index c7ef7fd..7e9e026 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -5028,6 +5028,8 @@ struct virtio_balloon_stat {
>  #define VIRTIO_BALLOON_S_MINFLT   3
>  #define VIRTIO_BALLOON_S_MEMFREE  4
>  #define VIRTIO_BALLOON_S_MEMTOT   5
> +#define VIRTIO_BALLOON_S_AVAIL    6
> +#define VIRTIO_BALLOON_S_CACHES   7
>          le16 tag;
>          le64 val;
>  } __attribute__((packed));
> @@ -5109,6 +5111,13 @@ first buffer.
>  
>  \item[VIRTIO_BALLOON_S_MEMTOT (5)] The total amount of memory available
>    (in bytes).
> +
> +\item[VIRTIO_BALLOON_S_AVAIL (6)] An estimate of how much memory is available
> +  (in bytes) for starting new applications, without pushing the system to swap.
> +
> +\item[VIRTIO_BALLOON_S_CACHES (7)] The amount of memory, in bytes, that can be
> +  quickly reclaimed without additional I/O. Typically these pages are used for
> +  caching files from disk.
>  \end{description}
>  
>  \section{SCSI Host Device}\label{sec:Device Types / SCSI Host Device}
> -- 
> 2.16.1

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [virtio-dev] Re: [PATCH v2] content: document balloon memory statistics
  2018-03-09 22:53 ` Michael S. Tsirkin
@ 2018-03-11 19:19   ` Tomáš Golembiovský
  0 siblings, 0 replies; 5+ messages in thread
From: Tomáš Golembiovský @ 2018-03-11 19:19 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: virtio-dev, Stefan Hajnoczi, Jonathan Helman

On Sat, 10 Mar 2018 00:53:48 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Thu, Feb 22, 2018 at 01:50:52PM +0100, Tomáš Golembiovský wrote:
> > Linux kernel provides some balloon memory statistics that were not
> > included in the specs. Include them to avoid any ID clashes in the
> > future.
> > 
> > Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>  
> 
> No comments on this so far. When you feel it's ready to vote,
> please open a github issue:
> https://github.com/oasis-tcs/virtio-spec/issues

I have opened the issue here:

    https://github.com/oasis-tcs/virtio-spec/issues/4

Sorry for the delay.


> Set it as ready to vote and I'll start voting.

I have no idea how to do that.

    Tomas

-- 
Tomáš Golembiovský <tgolembi@redhat.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-11 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 12:50 [virtio-dev] [PATCH v2] content: document balloon memory statistics Tomáš Golembiovský
2018-03-05 14:08 ` Stefan Hajnoczi
2018-03-05 14:16 ` [virtio-dev] " Michael S. Tsirkin
2018-03-09 22:53 ` Michael S. Tsirkin
2018-03-11 19:19   ` Tomáš Golembiovský

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.