Open liucx1201 opened 1 week ago
可以使用uname -a
看下内核版本号是多少吗?
感谢你的建议,我后续会考虑优化下参数。
我也遇到同样的问题
$ ./kyanos
WARN[0000] Remove memlock:unexpected error detecting memory cgroup accounting: function not implemented
ERRO[0000] loadAgentObjects: map sock_xmit_map: map create: function not implemented (without BTF k/v)
$ uname -a
Linux xxxxxxxxx 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
我看文档中描述是支持3.10的内核的
我看文档中描述是支持3.10的内核的
sorry, 我没有写清楚, 最低内核版本可能需要3.10.0-957, 我会更新下文档.
Centos | RHEL | Release Date | RHEL Date | Kernel | BPF | BTF | HUB |
---|---|---|---|---|---|---|---|
7.0.1406 | 7.0 | 2014-07 | 2014-06-09 | 3.10.0-123 | - | - | Y |
7.1.1503 | 7.1 | 2015-03 | 2015-03-05 | 3.10.0-229 | - | - | Y |
7.2.1511 | 7.2 | 2015-11 | 2015-11-19 | 3.10.0-327 | - | - | Y |
7.3.1611 | 7.3 | 2016-11 | 2016-11-03 | 3.10.0-514 | - | - | Y |
7.4.1708 | 7.4 | 2017-08 | 2017-07-31 | 3.10.0-693 | - | - | Y |
7.5.1804 | 7.5 | 2018-04 | 2018-04-10 | 3.10.0-862 | - | - | Y |
7.6.1810 | 7.6 | 2018-10 | 2018-10-30 | 3.10.0-957 | Y | - | Y |
7.7.1908 | 7.7 | 2019-08 | 2019-08-06 | 3.10.0-1062 | Y | - | Y |
7.8.2003 | 7.8 | 2020-03 | 2020-03-31 | 3.10.0-1127 | Y | - | Y |
7.9.2009 | 7.9 | 2020-09 | 2020-09-29 | 3.10.0-1160 | Y | - | Y |
后续会支持低内核版本不? 看了下用的机器的内核版本是3.10.0-693
后续会支持低内核版本不? 看了下用的机器的内核版本是3.10.0-693
会考虑支持。
目前kyanos依赖内核的eBPF能力,3.10.0-957之前暂时不支持,后续会考虑支持通过cBPF过滤包,这样可以支持低版本内核。 @anaer
会考虑支持。 目前kyanos依赖内核的eBPF能力,3.10.0-957之前暂时不支持,后续会考虑支持通过cBPF过滤包,这样可以支持低版本内核。 @anaer 看了下我的也是centos7.4 内核号957
./kyanos stat http --side client -i 5 -m p -s 10 -g none 执行报错: WARN[0000] Remove memlock:unexpected error detecting memory cgroup accounting: function not implemented ERRO[0000] loadAgentObjects: map sock_xmit_map: map create: function not implemented (without BTF k/v)
另外个人看法:需要传入的参数太多了,第一次使用都不知道是什么意思?参数比较多。不是很让人通俗易懂的。