阅读背景:

高CPU使用率 - Linux上的简单数据包接收器

来源:互联网 

I'm writing simple application under Linux that gathers all packets from network. I'm using blocking receiving by calling "recvfrom()" function. When I generate big network load with hping3 (~100k raw frames per second, 130 bytes each) "top" tool shows high CPU usage for my process - it is about 37-38%. It is big value for me. When I decrease number of packets, usage is lower - for example top shows 3% for 4k frames per second.I'm writing simple application under Linux that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: