- 论坛徽章:
- 0
|
在這裏找到一點數據
http://www.debian-administration.org/articles/540
Some benchmarks...
System: Intel Core 2 Duo T7200 2GHz (which was running with 1GHz all the time),
2GB RAM, 100Mb networkcard
During the tests the complete bandwith of 100Mbit was used (only Upload).
- Using scp to copy one 1500 MByte file to another machine in my LAN with
100Mbit cards without nfqueue
time of scp:
23,42s user 13,75s system 27% cpu 2:17,01 total
- the same copying with nfqueue and 165,000 rules inserted, with the above script which filters in INPUT and OUTPUT chains. Every packet was send to nfqueue, not just the ones with state NEW. Logging of nfqueue was disabled.
time of scp:
42,05s user 21,24s system 45% cpu 2:19,61 total
average cpu usage of nfqueue was:
* thread that was listening on the INPUT chain 7%
* thread that was listening on the OUTPUT chain 11%
The same test with 77,000 rules
time of scp:
42,01s user 21,44s system 45% cpu 2:19,80 total
nfqueue was running with 10% on the OUTPUT thread
and 7% on the other.
似乎性能相差還是不小。
種種原因,最終還是不用nf_queue了,有機會我自己測一下性能,與大家分享。 |
|