ftrace
跳转到导航
跳转到搜索
性能影响
Linux 2.6.32-642, Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz 上,getpid
系统调用耗时:
耗时 | 变化率 | |
---|---|---|
关闭 ftrace | 190ns ~ 210ns | 1 |
开启 ftrace,无事件 | 190ns ~ 210ns | 1 |
开启 ftrace,一条 connect 事件 | 500ns ~ 520ns | 2.5 |
开启 ftrace,一条 getpid 事件 | 540ns ~ 550ns | 2.7 |
Linux 4.2.1, Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz 上,getpid
系统调用耗时:
耗时 | 变化率 | |
---|---|---|
关闭 ftrace | 60ns ~ 70ns | 1 |
开启 ftrace,无事件 | 60ns ~ 70ns | 1 |
开启 ftrace,一条 connect 事件 | 90ns ~ 100ns | 1.5 |
开启 ftrace,一条 getpid 事件 | 170ns ~ 200ns | 2.8 |