d5a085970b0: -9.2% will-it-scale.per_thread_ops
Hi Viresh,
I'm not sure how the simple commit will impact will-it-scale/pwrite2 throughput. Just in case you can see more clues.
git://git.linaro.org/people/vireshk/linux tick/ONESHOT-STOPPED
commit d5a085970b0b88b8c82303d2c45f09c9427fd02a ("clockevents: x86: add support for ONESHOT_STOPPED mode")
test case: nhm4/will-it-scale/pwrite2
f4f5df6f142f679 d5a085970b0b88b8c82303d2c
--------------- -------------------------
773859 ~ 0% -9.2% 702704 ~ 0% TOTAL will-it-scale.per_thread_ops
Legend:
~XX% - stddev percent
[+-]XX% - change percent
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided for informational purposes only. Any difference in system hardware or software design or configuration may affect actual performance.
Thanks,
Fengguang
Quoted 7 lines · Fengguang Wu
I'm not sure how the simple commit will impact will-it-scale/pwrite2 throughput. Just in case you can see more clues.
git://git.linaro.org/people/vireshk/linuxtick/ONESHOT-STOPPED
commitd5a085970b0b88b8c82303d2c45f09c9427fd02a("clockevents: x86: add support forONESHOT_STOPPEDmode")test case: nhm4/will-it-scale/pwrite2
What is this test all about ?
Quoted 10 lines · Viresh Kumar
Quoted 7 lines · Fengguang Wu
I'm not sure how the simple commit will impact will-it-scale/pwrite2 throughput. Just in case you can see more clues.
git://git.linaro.org/people/vireshk/linuxtick/ONESHOT-STOPPED
commitd5a085970b0b88b8c82303d2c45f09c9427fd02a("clockevents: x86: add support forONESHOT_STOPPEDmode")test case: nhm4/will-it-scale/pwrite2
What is this test all about ?
It calls the pwrite2() syscall in parallel, on one single tmpfs file.
https://github.com/antonblanchard/will-it-scale.git
Thanks,
Fengguang
#define _XOPEN_SOURCE 500
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#define BUFLEN 4096
static char tmpfile[] = "/tmp/willitscale.XXXXXX";
char *testcase_description = "Same file pwrite";
void testcase_prepare(void)
{
char buf[BUFLEN];
int fd = mkstemp(tmpfile);
memset(buf, 0, sizeof(buf));
assert(fd >= 0);
assert(write(fd, buf, sizeof(buf)) == sizeof(buf));
close(fd);
}void testcase(unsigned long long *iterations)
{
char buf[BUFLEN];
int fd = open(tmpfile, O_RDWR);
assert(fd >= 0);
while (1) {
assert(pwrite(fd, buf, BUFLEN, 0) == BUFLEN);
(*iterations)++;
}
}void testcase_cleanup(void)
{
unlink(tmpfile);
}Quoted 14 lines · Fengguang Wu
Hi Viresh,
I'm not sure how the simple commit will impact will-it-scale/pwrite2 throughput. Just in case you can see more clues.
git://git.linaro.org/people/vireshk/linuxtick/ONESHOT-STOPPED
commitd5a085970b0b88b8c82303d2c45f09c9427fd02a("clockevents: x86: add support forONESHOT_STOPPEDmode")test case: nhm4/will-it-scale/pwrite2
f4f5df6f142f679d5a085970b0b88b8c82303d2c
--------------- -------------------------773859 ~ 0% -9.2% 702704 ~ 0% TOTAL will-it-scale.per_thread_ops
Quoted 8 lines
Legend:
~XX% - stddev percent
[+-]XX% - change percentDisclaimer:
Results have been estimated based on internal Intel analysis and are provided for informational purposes only. Any difference in system hardware or software design or configuration may affect actual performance.
Hi Fengguang,
Thanks for your link: https://github.com/antonblanchard/will-it-scale.git
You saw these changes because the simple commit you were talking about changes behavior of code.
To be specific, we are stopping the clock-event devices now when they aren't used. i.e. during idle periods or in full dynticks.
I still fail to understand why performance came down by 9.2%.. Adding Frederic in CC, in case he can throw some light. But he is currently on vacations and I don't expect him to reply immediately :)
Quoted 3 lines · Fengguang Wu
f4f5df6f142f679d5a085970b0b88b8c82303d2c
--------------- -------------------------773859 ~ 0% -9.2% 702704 ~ 0% TOTAL will-it-scale.per_thread_ops
Has this impacted more than a single system? I wonder if that system was using the HPET where all the others were using the TSC.