You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular when doing long term captures and using the -G option it's useful to compress on the fly.
It's already possible to compress files using the post-rotate command, but it leads to write amplification. Capture files compresses well in my experience and with fast compressors such as LZ4 or zstd that can compress faster than disk bandwidth it can also increase maximum capture rate.
I have already implemented this in my own capture tool that focuses on efficient long term capture. The additional code is quite low, using fopencookie with pcap_dump_fopen. I'm happy to provide this under BSD license:
In particular when doing long term captures and using the -G option it's useful to compress on the fly.
It's already possible to compress files using the post-rotate command, but it leads to write amplification. Capture files compresses well in my experience and with fast compressors such as LZ4 or zstd that can compress faster than disk bandwidth it can also increase maximum capture rate.
I have already implemented this in my own capture tool that focuses on efficient long term capture. The additional code is quite low, using
fopencookie
withpcap_dump_fopen
. I'm happy to provide this under BSD license:There's some funkiness with the error handling because
pcap_dump
doesn't return the error code fromfwrite
.The text was updated successfully, but these errors were encountered: