Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一台linux机器,它在一个接口中有无限数量的数据包。我打开了一个原始套接字并设置了一个没有数据包通过的 bpf 过滤器。
现在,对于内核接收到的每个数据包,它都会运行 bpf 字节码并过滤掉数据。
如何查看内核占用的 CPU 使用率?它算作我的流程花费的时间吗?或者别的地方?我会用 top 看到这个吗?
谢谢