From: Markus Armbruster <armbru@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
quintela@redhat.com, QEMU Developers <qemu-devel@nongnu.org>,
"dgilbert@redhat.com" <dgilbert@redhat.com>,
Ashijeet Acharya <ashijeetacharya@gmail.com>,
amit.shah@redhat.com, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter
Date: Tue, 06 Sep 2016 10:16:50 +0200 [thread overview]
Message-ID: <87eg4xbfyl.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20160905155602.GK24656@redhat.com> (Daniel P. Berrange's message of "Mon, 5 Sep 2016 16:56:02 +0100")
"Daniel P. Berrange" <berrange@redhat.com> writes:
> On Mon, Sep 05, 2016 at 03:16:04PM +0200, Paolo Bonzini wrote:
>>
>>
>> On 05/09/2016 15:09, Ashijeet Acharya wrote:
>> >>> >> + "compress-level:i?,compress-threads:i?,decompress-threads:i?,cpu-throttle-initial:i?,cpu-throttle-increment:i?,migrate-set-speed:o?,migrate-set-downtime:T?",
>> >> >
>> >> > Same here about the names. Also use "i" for QMP commands.
>> > I think we will have to use "T" for downtime at-least otherwise you
>> > cant use float values for setting seconds like "0.2" for example.
>> > No issues using "i" with bandwidth though.
>>
>> Right, I should have mentioned that my remark was about the "o" (it
>> caught my eye because of your change to hmp-commands.hx). Sorry!
>
> I've always thought it a rather wierd to use fractional seconds for
> downtime. It sort of made sense for HMP, but should really never have
> been carried over into QMP. IMHO, we should make it just take integer
> milliseconds for downtime with the new API.
Seconds are a fine unit, and using floating-point numbers isn't weird,
especially not in JSON.
What's actually weird is our zoo of time units: seconds
(migrate_set_downtime), milliseconds (MigrationInfo), microseconds
(NetdevTapOptions), nanoseconds (BlockDeviceTimedStats), seconds +
fractional nanoseconds (SnapshotInfo), ... No adult supervision.
We should've picked *one* time unit for QMP. The obvious time unit is
seconds. Nanoseconds would've worked, too.
Time units are probably beyond repair now. We can still try to make
them at least locally consistent, i.e. stick to what related interfaces
use.
next prev parent reply other threads:[~2016-09-06 8:16 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-05 7:45 [Qemu-devel] [PATCH] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter Ashijeet Acharya
2016-09-05 8:01 ` Paolo Bonzini
2016-09-05 8:11 ` Ashijeet Acharya
2016-09-05 8:16 ` Paolo Bonzini
2016-09-05 8:25 ` Ashijeet Acharya
2016-09-05 11:16 ` Dr. David Alan Gilbert
2016-09-05 11:37 ` [Qemu-devel] [PATCH v2] " Ashijeet Acharya
2016-09-05 11:45 ` Paolo Bonzini
2016-09-05 11:59 ` Ashijeet Acharya
2016-09-05 12:01 ` Paolo Bonzini
2016-09-05 12:08 ` Ashijeet Acharya
2016-09-05 13:09 ` Ashijeet Acharya
2016-09-05 13:16 ` Paolo Bonzini
2016-09-05 14:26 ` [Qemu-devel] [PATCH v3] " Ashijeet Acharya
2016-09-05 14:36 ` Daniel P. Berrange
2016-09-05 15:14 ` Ashijeet Acharya
2016-09-05 15:39 ` Daniel P. Berrange
2016-09-05 15:46 ` Ashijeet Acharya
2016-09-05 14:28 ` [Qemu-devel] [PATCH v3] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter (reversed logic) Ashijeet Acharya
2016-09-05 15:56 ` [Qemu-devel] [PATCH v2] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter Daniel P. Berrange
2016-09-06 8:16 ` Markus Armbruster [this message]
2016-09-06 13:16 ` [Qemu-devel] [PATCH] " Juan Quintela
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=87eg4xbfyl.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=amit.shah@redhat.com \
--cc=ashijeetacharya@gmail.com \
--cc=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/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 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.