The title is misleading. 77% slower sounds like the system calls take 1.77x the time on EC2. In fact, the results indicate that the normal calls are 77% faster - in other words, EC2 gettimeofday and clock_gettime calls take nearly 4.5x longer to run on EC2 than they do on ordinary systems. This is a big speed hit. Some programs can use gettimeofday extremely frequently - for example, many programs call timing functio…
Two frequently used system calls are ~77% slower on AWS EC2
91–100 of 101 posts
Re: Two frequently used system calls are ~77% slower on AWS EC2
#92Re: Two frequently used system calls are ~77% slower on AWS EC2
#93Earlier quoted context omitted.
77% faster is not correct either. "Speed" would probably by ops/s. 4.5x longer = 350% slower.
Even this is confusing as hell. Just say the native calls take 22% of the time they do on EC2. Or that the EC2 calls take 450% of the time of their native counterparts. "Faster" and "slower" when going with percentages are ripe with confusion. Please don't use them.
Re: Two frequently used system calls are ~77% slower on AWS EC2
#94Earlier quoted context omitted.
77% faster is not correct either. "Speed" would probably by ops/s. 4.5x longer = 350% slower.
Even this is confusing as hell. Just say the native calls take 22% of the time they do on EC2. Or that the EC2 calls take 450% of the time of their native counterparts. "Faster" and "slower" when going with percentages are ripe with confusion. Please don't use them.
Re: Two frequently used system calls are ~77% slower on AWS EC2
#95How common are get time calls so that they would actually be an issue? I've worked on quite a few systems and can't think of a time where an api for getting the time would have been called so much that it would affect performance?
Re: Two frequently used system calls are ~77% slower on AWS EC2
#96> All programmers deploying software to production environments should regularly strace their applications in development mode and question all output they find. Or, instead, you could just not do that. Then you could go back to being productive, instead of wasting time tracking down unstable small tweaks for edge cases that you can barely notice after looping the same syscall 5 million times in a row. When will peop…
Re: Two frequently used system calls are ~77% slower on AWS EC2
#97Yes, this is why we (Netflix) default to tsc over the xen clocksource. I found the xen clocksource had become a problem a few years ago, quantified using flame graphs, and investigated using my own microbenchmark. Summarized details here: https://www.slideshare.net/brendangregg/performance-tuning-e...
This reminds me: I should give an updated version of that talk for 2017...
Re: Two frequently used system calls are ~77% slower on AWS EC2
#98Yes, this is why we (Netflix) default to tsc over the xen clocksource. I found the xen clocksource had become a problem a few years ago, quantified using flame graphs, and investigated using my own microbenchmark. Summarized details here: https://www.slideshare.net/brendangregg/performance-tuning-e...
This reminds me: I should give an updated version of that talk for 2017...
Re: Two frequently used system calls are ~77% slower on AWS EC2
#99Earlier quoted context omitted.
Can you share if you needed to do anything to deal with time drift issues when using tsc? For my own systems, incorrect timestamps would cause a lot of issues.
Well, it's been a few years and we haven't switched it back. :) We have had a number of clock issues, and one of the first things I try is taking and instance and switching it back to xen for a few days, but those issues have not turned out to be the clocksource. Usually NTP. AWS can comment more about the state (safety/risk) of these clocksources (given they have access to all the SW/HW internals).
https://www.slideshare.net/AmazonWebServices/cmp402-amazon-e...
Re: Two frequently used system calls are ~77% slower on AWS EC2
#100Earlier quoted context omitted.
This reminds me: I should give an updated version of that talk for 2017...
I've been in a couple positions recently where they mention your name and I look at your work and think to myself..here is a sysadmin with modest skills who (by exposure) has become notably vocal and somewhat adept at scale computing. In general if a company mentions Netflix or Brendan Gregg I flinch. Just an FYI.
https://www.slideshare.net/brendangregg/performance-tuning-e...
I think it's a pretty good summary, and includes work from my team and some original work of my own.
Is there something I could change in it that would make it more helpful for you?