From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Yury Norov <ynorov@caviumnetworks.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Andrew Morton <akpm@linux-foundation.org>,
Ashish Kalra <Ashish.Kalra@cavium.com>,
Christoffer Dall <christoffer.dall@linaro.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Linu Cherian <Linu.Cherian@cavium.com>,
Sunil Goutham <Sunil.Goutham@cavium.com>
Subject: Re: [PATCH] IPI performance benchmark
Date: Mon, 11 Dec 2017 17:30:25 +0100 [thread overview]
Message-ID: <ef696fb0-612c-aee7-319e-eb12f8692ac3@de.ibm.com> (raw)
In-Reply-To: <20171211145557.mooeknrcdfw53qpz@yury-thinkpad>
On 12/11/2017 03:55 PM, Yury Norov wrote:
> On Mon, Dec 11, 2017 at 03:35:02PM +0100, Christian Borntraeger wrote:
>>
>>
>> On 12/11/2017 03:16 PM, Yury Norov wrote:
>>> This benchmark sends many IPIs in different modes and measures
>>> time for IPI delivery (first column), and total time, ie including
>>> time to acknowledge the receive by sender (second column).
>>>
>>> The scenarios are:
>>> Dry-run: do everything except actually sending IPI. Useful
>>> to estimate system overhead.
>>> Self-IPI: Send IPI to self CPU.
>>> Normal IPI: Send IPI to some other CPU.
>>> Broadcast IPI: Send broadcast IPI to all online CPUs.
>>>
>>> For virtualized guests, sending and reveiving IPIs causes guest exit.
>>> I used this test to measure performance impact on KVM subsystem of
>>> Christoffer Dall's series "Optimize KVM/ARM for VHE systems".
>>>
>>> https://www.spinics.net/lists/kvm/msg156755.html
>>>
>>> Test machine is ThunderX2, 112 online CPUs. Below the results normalized
>>> to host dry-run time. Smaller - better.
>>>
>>> Host, v4.14:
>>> Dry-run: 0 1
>>> Self-IPI: 9 18
>>> Normal IPI: 81 110
>>> Broadcast IPI: 0 2106
>>>
>>> Guest, v4.14:
>>> Dry-run: 0 1
>>> Self-IPI: 10 18
>>> Normal IPI: 305 525
>>> Broadcast IPI: 0 9729
>>>
>>> Guest, v4.14 + VHE:
>>> Dry-run: 0 1
>>> Self-IPI: 9 18
>>> Normal IPI: 176 343
>>> Broadcast IPI: 0 9885
[...]
>>> +static int __init init_bench_ipi(void)
>>> +{
>>> + ktime_t ipi, total;
>>> + int ret;
>>> +
>>> + ret = bench_ipi(NTIMES, DRY_RUN, &ipi, &total);
>>> + if (ret)
>>> + pr_err("Dry-run FAILED: %d\n", ret);
>>> + else
>>> + pr_err("Dry-run: %18llu, %18llu ns\n", ipi, total);
>>
>> you do not use NTIMES here to calculate the average value. Is that intended?
>
> I think, it's more visually to represent all results in number of dry-run
> times, like I did in patch description. So on kernel side I expose raw data
> and calculate final values after finishing tests.
I think it is highly confusing that the output from the patch description does not
match the output from the real module. So can you make that match at least?
>
> If you think that average values are preferable, I can do that in v2.
The raw numbers a propably fine, but then you might want to print the number of
loop iterations in the output.
If we want to do something fancy, we could do a combination of a smaller inner
loop doing the test, then an outer loops redoing the inner loop and then you
can do some min/max/average calculation. Not s
next prev parent reply other threads:[~2017-12-11 16:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-11 14:16 Yury Norov
2017-12-11 14:35 ` Christian Borntraeger
2017-12-11 14:55 ` Yury Norov
2017-12-11 16:30 ` Christian Borntraeger [this message]
2017-12-13 11:23 ` Yury Norov
2017-12-13 11:31 ` Christian Borntraeger
2017-12-11 15:33 ` Konrad Rzeszutek Wilk
2017-12-13 10:47 ` Yury Norov
2017-12-13 15:54 ` Konrad Rzeszutek Wilk
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=ef696fb0-612c-aee7-319e-eb12f8692ac3@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=Ashish.Kalra@cavium.com \
--cc=Linu.Cherian@cavium.com \
--cc=Sunil.Goutham@cavium.com \
--cc=akpm@linux-foundation.org \
--cc=christoffer.dall@linaro.org \
--cc=geert@linux-m68k.org \
--cc=kvm@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ynorov@caviumnetworks.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
all inboxes | Powered by JetHome®