Two frequently used system calls are ~77% slower on AWS EC2
blog.packagecloud.io
Two frequently used system calls are ~77% slower on AWS EC2
1–10 of 101 posts
Re: Two frequently used system calls are ~77% slower on AWS EC2
#2Re: Two frequently used system calls are ~77% slower on AWS EC2
#3Re: Two frequently used system calls are ~77% slower on AWS EC2
#4Roughly 10 years ago, when I was the driver author for one of the first full-speed 10GbE NICs, we'd get complaints from customers that were sure our NIC could not do 10Gbs, as iperf showed it was limited to 3Gb/s or less. I would ask them to re-try with netperf, and they'd see full bandwidth. I eventually figured out that the complaints were coming from customers running distros without the vdso stuff, and/or running other OSes which (at the time) didn't support that (Mac OS, FreeBSD). It turns out that the difference was that iperf would call gettimeofday() around every socket write to measure bandwidth. But netperf would just issue gettimeofday calls at the start and the end of the benchmark, so iperf was effectively gettimeofday bound. Ugh.
Re: Two frequently used system calls are ~77% slower on AWS EC2
#5[1]: https://blog.packagecloud.io/eng/2016/04/05/the-definitive-g...
Re: Two frequently used system calls are ~77% slower on AWS EC2
#6Another option is to reduce usage of gettimeofday() when possible. It is not always free. Roughly 10 years ago, when I was the driver author for one of the first full-speed 10GbE NICs, we'd get complaints from customers that were sure our NIC could not do 10Gbs, as iperf showed it was limited to 3Gb/s or less. I would ask them to re-try with netperf, and they'd see full bandwidth. I eventually figured out that the co…
Re: Two frequently used system calls are ~77% slower on AWS EC2
#7Another option is to reduce usage of gettimeofday() when possible. It is not always free. Roughly 10 years ago, when I was the driver author for one of the first full-speed 10GbE NICs, we'd get complaints from customers that were sure our NIC could not do 10Gbs, as iperf showed it was limited to 3Gb/s or less. I would ask them to re-try with netperf, and they'd see full bandwidth. I eventually figured out that the co…
Maybe you could set up some caching.
Re: Two frequently used system calls are ~77% slower on AWS EC2
#8Another option is to reduce usage of gettimeofday() when possible. It is not always free. Roughly 10 years ago, when I was the driver author for one of the first full-speed 10GbE NICs, we'd get complaints from customers that were sure our NIC could not do 10Gbs, as iperf showed it was limited to 3Gb/s or less. I would ask them to re-try with netperf, and they'd see full bandwidth. I eventually figured out that the co…
Maybe you could set up some caching.
Re: Two frequently used system calls are ~77% slower on AWS EC2
#9Re: Two frequently used system calls are ~77% slower on AWS EC2
#10Summarized details here:
https://www.slideshare.net/brendangregg/performance-tuning-e...