提高Linux抓包性能
来源:互联网 发布:mac app store没有wps 编辑:程序博客网 时间:2024/06/08 04:29
Packet capturing utilizes the BPF device, in general in combination with the libpcap. This device executes a filter on each packet and store the packet afterwards in a double-buffer (see [Sch04de-sep, Sch05en-da] for details). The size of this double-buffer can be adjusted via a Since FreeBSD 6 you can do this by setting: For older FreeBSD's just use: Like in FreeBSD Linux offer some possibilities to tune it capturing performance as well. Due to the different capturing stack witch does not have a buffer but a queue of pointers behind the filter, one has to increase the receive buffer for all incomming packets and the queue length. This can be done via the from: http://www.net.t-labs.tu-berlin.de/research/hppc/ Tuning FreeBSD
sysctl
. Setting it to 2×10 Mbytes has proven to be a good choice.sysctl -w net.bpf.bufsize=10485760
sysctl -w net.bpf.maxbufsize=10485760sysctl -w debug.bpf_bufsize=10485760
sysctl -w debug.maxbpf_bufsize=10485760Tuning Linux
/proc
filesystem (with Linux we found that 32 Mbytes is a good amount of memory):echo 33554432 > /proc/sys/net/core/rmem_default
echo 33554432 > /proc/sys/net/core/rmem_max
echo 10000 > /proc/sys/net/core/netdev_max_backlog
- 提高Linux抓包性能
- linux 抓包
- linux 抓包命令
- linux抓包
- Linux抓包
- linux 抓包
- linux抓包命令
- Linux tcpdump抓包
- linux 抓包
- Linux抓包代码
- linux命令-- 抓包
- Linux 网络抓包
- Linux 网络抓包
- linux抓包:
- Linux抓包命令
- linux抓包
- Linux 抓包命令
- Linux抓包总结
- pthread_t
- MFC中Radio Button使用方法
- 更改Tomcat默认目录,端口
- SQL Server DTS/SSIS 滥用之复制数据库对象
- 数据类型转化
- 提高Linux抓包性能
- boost安装
- C++中string相关函数
- 二叉树
- google地图:关于GBrowserIsCompatible() 缺少对象以及GMap2未定义
- gtk 设置标签(label)里字体的大小 颜色等属性的方法
- asp.net中数据导出(Word,Excel)以及文件下载
- tomcat中的server.xml中的配置文件中<Host appBase="webaps"修改appBase引起的路问题
- HTTP协议header头域