From: "Andreas Färber" <afaerber@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>, quintela@redhat.com
Cc: amit.shah@redhat.com, borntraeger@de.ibm.com,
dgilbert@redhat.com,
"Jason J. Herne" <jjherne@linux.vnet.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v6 1/5] cpu: Provide vcpu throttling interface
Date: Mon, 7 Sep 2015 16:08:42 +0200 [thread overview]
Message-ID: <55ED9A6A.7040309@suse.de> (raw)
In-Reply-To: <55ED88B3.7090105@redhat.com>
Am 07.09.2015 um 14:53 schrieb Paolo Bonzini:
> On 04/09/2015 18:26, Jason J. Herne wrote:
>> + pct = (double)cpu_throttle_get_percentage()/100;
>> + throttle_ratio = pct / (1 - pct);
>> + sleeptime_ms = (long)(throttle_ratio * CPU_THROTTLE_TIMESLICE);
>
> This is going to be pretty imprecise, since there are only 11 possible
> values of sleeptime_ms. Can you switch the timer and
> CPU_THROTTLE_TIMESLICE to nanosecond precision instead?
>
> It's okay to provide this as a patch 6/5, and the maintainer will squash
> it into this patch. Alternatively this can be sent as v7, as you prefer.
I'm assuming "the maintainer" refers to Juan for this series. ;)
I've been waiting for you guys to reach consensus - only nit I have is
that two colons are missing after "Returns" in the documentation.
Regards,
Andreas
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
next prev parent reply other threads:[~2015-09-07 14:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 16:26 [Qemu-devel] [PATCH v6 0/5] migration: Dynamic cpu throttling for auto-converge Jason J. Herne
2015-09-04 16:26 ` [Qemu-devel] [PATCH v6 1/5] cpu: Provide vcpu throttling interface Jason J. Herne
2015-09-07 12:53 ` Paolo Bonzini
2015-09-07 14:08 ` Andreas Färber [this message]
2015-09-04 16:26 ` [Qemu-devel] [PATCH v6 2/5] migration: Parameters for auto-converge cpu throttling Jason J. Herne
2015-09-04 16:26 ` [Qemu-devel] [PATCH v6 3/5] migration: Dynamic cpu throttling for auto-converge Jason J. Herne
2015-09-04 16:26 ` [Qemu-devel] [PATCH v6 4/5] qmp/hmp: Add throttle ratio to query-migrate and info migrate Jason J. Herne
2015-09-04 16:26 ` [Qemu-devel] [PATCH v6 5/5] migration: Disambiguate MAX_THROTTLE Jason J. Herne
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=55ED9A6A.7040309@suse.de \
--to=afaerber@suse.de \
--cc=amit.shah@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=dgilbert@redhat.com \
--cc=jjherne@linux.vnet.ibm.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 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).