From: "Dr. David Alan Gilbert" <dave@treblig.org>
To: Peter Xu <peterx@redhat.com>
Cc: qemu-devel@nongnu.org, Fabiano Rosas <farosas@suse.de>,
Prasad Pandit <ppandit@redhat.com>,
Juraj Marcin <jmarcin@redhat.com>
Subject: Re: [PATCH v2 2/2] migration/hmp: Add "info migrate -a", reorg the dump
Date: Wed, 14 May 2025 23:00:04 +0000 [thread overview]
Message-ID: <aCUgdAj1PWfPZKIJ@gallifrey> (raw)
In-Reply-To: <aCUITicykC-ppJrv@x1.local>
* Peter Xu (peterx@redhat.com) wrote:
> On Wed, May 14, 2025 at 08:29:53PM +0000, Dr. David Alan Gilbert wrote:
> > * Peter Xu (peterx@redhat.com) wrote:
> > > A new parameter "-a" is added to "info migrate" to dump all info, while
> > > when not specified it only dumps the important ones. When at it, reorg
> > > everything to make it easier to read for human.
> > >
> > > The general rule is:
> > >
> > > - Put important things at the top
> > > - Reuse a single line when things are very relevant, hence reducing lines
> > > needed to show the results
> > > - Remove almost useless ones (e.g. "normal_bytes", while we also have
> > > both "page size" and "normal" pages)
> > > - Regroup things, so that related fields will show together
> > > - etc.
> >
> > Thanks for the update,
> >
> > Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org>
>
> Thanks for the quick comments!
>
> >
> > Note that you did miss the change (which would be fine as a follow up)
> > where I point out that I think your unit abbreviations are slightly wrong
>
> Ouch, it's in the spam filter... :-( I would have missed that if you didn't
> mention it. I would think any decent AI models would do better than this..
> I have no idea how this could ever happen in 2025.
Ah...
> > (although I think I was wrong as well...)
> > I think your throughput is in Mbps (capital M or Mb/s or Mbit/s) - ie.
> > 10^6 bits/second.
> >
> > While I think all your KB are KiB not KB (i.e. 2^10 bytes).
>
> True..
>
> Now I've read the missing reply:
>
> https://lore.kernel.org/qemu-devel/aCSXjRCTYKbDf9le@gallifrey/
>
> So yeh, mbps is in unit of bit, but all the rest needs fixing. How about
> below fixup to be squashed (if I won't need to repost for v3):
>
> PS: in the fixup I also did s/psize/pagesize/ to be clear
That's fine.
> diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c
> index 13e93d3c54..ea76f72fa4 100644
> --- a/migration/migration-hmp-cmds.c
> +++ b/migration/migration-hmp-cmds.c
> @@ -111,9 +111,9 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
>
> if (info->ram) {
> monitor_printf(mon, "RAM info:\n");
> - monitor_printf(mon, " Throughput (mbps): %0.2f\n",
> + monitor_printf(mon, " Throughput (Mbps): %0.2f\n",
> info->ram->mbps);
Right.
> - monitor_printf(mon, " Sizes (KB): psize=%" PRIu64
> + monitor_printf(mon, " Sizes (KiB): pagesize=%" PRIu64
Right.
Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org>
> ", total=%" PRIu64 "\n",
> info->ram->page_size >> 10,
> info->ram->total >> 10);
>
> --
> Peter Xu
>
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
next prev parent reply other threads:[~2025-05-14 23:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-14 20:01 [PATCH v2 0/2] migration: Some fix and enhancements to HMP "info migrate" Peter Xu
2025-05-14 20:01 ` [PATCH v2 1/2] migration: Allow caps to be set when preempt or multifd cap enabled Peter Xu
2025-05-22 20:15 ` Michael Tokarev
2025-05-14 20:01 ` [PATCH v2 2/2] migration/hmp: Add "info migrate -a", reorg the dump Peter Xu
2025-05-14 20:29 ` Dr. David Alan Gilbert
2025-05-14 21:17 ` Peter Xu
2025-05-14 23:00 ` Dr. David Alan Gilbert [this message]
2025-05-21 8:43 ` Zhijian Li (Fujitsu) via
2025-05-21 14:03 ` Peter Xu
2025-05-21 21:04 ` Dr. David Alan Gilbert
2025-05-22 0:55 ` Zhijian Li (Fujitsu) via
2025-05-22 13:16 ` Peter Xu
2025-05-23 2:06 ` Zhijian Li (Fujitsu) via
2025-05-26 15:40 ` Peter Xu
2025-05-22 1:07 ` Zhijian Li (Fujitsu) via
2025-05-19 11:27 ` [PATCH v2 0/2] migration: Some fix and enhancements to HMP "info migrate" Mario Casquero
2025-05-20 17:03 ` Peter Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aCUgdAj1PWfPZKIJ@gallifrey \
--to=dave@treblig.org \
--cc=farosas@suse.de \
--cc=jmarcin@redhat.com \
--cc=peterx@redhat.com \
--cc=ppandit@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).