qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: "Krzeminski,
	Marcin (Nokia - PL/Wroclaw)" <marcin.krzeminski@nokia.com>,
	EXT Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?
Date: Thu, 29 Oct 2015 18:18:05 +0300	[thread overview]
Message-ID: <563238AD.1090608@gmail.com> (raw)
In-Reply-To: <CA0E6F9BA6AED7458C23277BD87075E5100EC702@DEMUMBX005.nsn-intra.net>

29.10.2015 10:00, Krzeminski, Marcin (Nokia - PL/Wroclaw) пишет:
> *From:*EXT Peter Crosthwaite [mailto:crosthwaitepeter@gmail.com]
> *Sent:* Tuesday, October 27, 2015 7:23 PM
> *To:* Peter Maydell <peter.maydell@linaro.org>
> *Cc:* Dmitry Osipenko <digetx@gmail.com>; Krzeminski, Marcin (Nokia -
> PL/Wroclaw) <marcin.krzeminski@nokia.com>; qemu-devel@nongnu.org
> *Subject:* Re: arm mptimer implementation - why prescaler is multiply by 10?
>
> On Tue, Oct 27, 2015 at 11:19 AM, Peter Maydell <peter.maydell@linaro.org
> <mailto:peter.maydell@linaro.org>> wrote:
>
>     On 27 October 2015 at 18:01, Peter Crosthwaite
>     <crosthwaitepeter@gmail.com <mailto:crosthwaitepeter@gmail.com>> wrote:
>      > On Tue, Oct 27, 2015 at 7:19 AM, Dmitry Osipenko <digetx@gmail.com
>     <mailto:digetx@gmail.com>> wrote:
>      >> From my observation, Linux kernel is booting noticeably faster in the
>      >> emulated guest and host machine CPU usage is lower if we "artificially"
>      >> slowdown the MPtimer. You really shouldn't use it for the RTC, so doing that
>      >> trick shouldn't affect guest behavior.
>
>     Do you mean qemu or real hw?
>

Both, but it depends on your application and if there is no proper RTC onboard.

>
>      > So I do wonder whether with your ptimer conversion this will be obsoleted,
>      > as the rate limiter there may do the work for us.
>
>     We still need to pick a nominal PERIPHCLK somehow, and that's
>     still a pretty arbitrary choice I think (and it doesn't
>     depend on the CPU speed itself: PERIPHCLK's period can be
>     any multiple of the main CPU CLK (minimum 2)).
>
> Yep. But is it nice to know if we can move towards board level configuration of
> this without the rate-limiting problem. Rather than a 10x rate limiter it should
> be a QOM property for PERIPHCLK frequency.
>
> Regards,
>
> Peter
>
>     thanks
>     -- PMM
>
> I made some tests by changing implementation to work with PERIPHCLK=600MHz, and
> in fact overhead was to high to work comfortably with linux guest, but the key
> problem was networking.
>

Exactly. Once kernel reaches NFS mount here, it starts to suffer.

-- 
Dmitry

      reply	other threads:[~2015-10-29 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 13:48 [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10? Krzeminski, Marcin (Nokia - PL/Wroclaw)
2015-10-27 14:19 ` Dmitry Osipenko
2015-10-27 14:26   ` Peter Maydell
2015-10-27 18:01   ` Peter Crosthwaite
2015-10-27 18:09     ` Dmitry Osipenko
2015-10-27 18:19     ` Peter Maydell
2015-10-27 18:22       ` Peter Crosthwaite
2015-10-29  7:00         ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2015-10-29 15:18           ` Dmitry Osipenko [this message]

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=563238AD.1090608@gmail.com \
    --to=digetx@gmail.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=marcin.krzeminski@nokia.com \
    --cc=peter.maydell@linaro.org \
    --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).