tcpreplay icon indicating copy to clipboard operation
tcpreplay copied to clipboard

Double pre-buffering for better performance with very large pcaps

Open synfinatic opened this issue 10 years ago • 0 comments

Use the TCPivo method of dual memory buffers to prefetch packets from disk. Locking penalties are reduced by having two buffers which are at any given time a write buffer (from disk) or a read buffer (to network). Only really useful if you're using a really large pcap file and you can't use the cache file to store it completely in memory IMHO.

Not as important now that we have a full cache option in 3.0. Still worth doing for large pcaps (larger then free RAM) or when you're not looping.

synfinatic avatar Nov 24 '13 06:11 synfinatic