Amazon EC2 上的 gettimeofday 與 clock_gettime 的效能

栏目: 服务器 · 发布时间: 8年前

内容简介:Amazon EC2 上的 gettimeofday 與 clock_gettime 的效能

看到「 Two frequently used system calls are ~77% slower on AWS EC2 」這篇在講 gettimeofdayclock_gettime 的效能,另外搜資料時發現應該也是作者提問的「 gettimeofday() not using vDSO? 」這篇。

EC2 比較新的機器上用 tsc 應該是沒問題的 (在 2015 的時候官方就這樣建議了):

it seems tsc support in Xen has improved with version 4.0 and with improved CPU support in Sandy Bridge+ platforms. Modern EC2 machines should be okay with tsc. Check Xen version using dmesg | grep "Xen version". Amazon recommended the tsc clocksource already in re:Invent 2015 (https://www.slideshare.net/AmazonWebServices/cmp402-amazon-ec2-instances-deep-dive). I'm not yet running to production with this, but the situation doesn't seem as bad as implied by packagecloud.

開了一台 t2.micro 看 /sys/devices/system/clocksource/clocksource0/current_clocksource 看起來目前是設成 xen

ubuntu@ip-172-31-22-165:~$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
xen

在「 (CMP402) Amazon EC2 Instances Deep Dive 」這邊也可以看到一些資料 (page 24 與 page 25):

Amazon EC2 上的 gettimeofday 與 clock_gettime 的效能

Amazon EC2 上的 gettimeofday 與 clock_gettime 的效能


以上所述就是小编给大家介绍的《Amazon EC2 上的 gettimeofday 與 clock_gettime 的效能》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Programming Computer Vision with Python

Programming Computer Vision with Python

Jan Erik Solem / O'Reilly Media / 2012-6-22 / USD 39.99

If you want a basic understanding of computer vision's underlying theory and algorithms, this hands-on introduction is the ideal place to start. As a student, researcher, hacker, or enthusiast, you'll......一起来看看 《Programming Computer Vision with Python》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

URL 编码/解码
URL 编码/解码

URL 编码/解码