When the Black Hat USA 2026 NOC stopped capturing on August 6, I had 57 TB of full packet capture in 30,495 pcap files. They held seven days of traffic, about 36 billion packets and 610 million connections. Our packet capture array page covers the capture array itself. This post covers reading the data back, which I did in four full analysis passes, most of them with Zeek.

The scale

The capture is stored on an Apex X16 card holding 8 TB M.2 drives. Twelve of them form the capture volume, Linux RAID 0 on XFS, which the OS reports as 88 T. Three more form a separate analysis volume, reported as 22 T. All fifteen drives sit on one card, so the corpus and the working space are in the same machine.

I split the corpus into 480 batches. 57 TB over 480 batches is about 119 GB per batch, or roughly 64 pcap files each on average. The hunt then made four full passes: two with Zeek, a raw byte-level scan and an AI traffic pass. On the two main passes, 480 of 480 batches finished with zero failures. The first pass alone wrote 234 GB of logs.

A pass that reads the whole corpus reads all 57 TB. The site rates the X16 Gen5 at 56.5 GB/s read, and the 57 TB that Linux reports is about 62.7 TB in the decimal units that rating uses, so one read of the corpus takes about 1,110 seconds, or 18 minutes. At the X16 Gen4's site rating of 30.5 GB/s it takes about 34 minutes. Four full passes would cost about 67 minutes of pure reading on Gen5 and about two hours on Gen4.

Those are floors. Zeek spends CPU on every packet, so a pass runs longer than its read time, and the storage only has to stay ahead of the workers. The floor still matters, because it multiplies by every pass you decide to run. A pass you don't run costs nothing, and lesson two is mostly about that.

Density decides whether this fits in one box at all. This build used fifteen 8 TB drives, 120 TB raw, on one card that holds 16 M.2 drives in a single PCIe x16 slot. Bandwidth per slot decides how long each pass waits on disk.

If you are sizing a capture box that will also do the analysis, request a multi-unit quote and tell us your retention window and how many passes you expect to run.

Six lessons, and the rule each one left me

1. Size parallel workers by RAM, not cores

I started 46 Zeek workers at about 2.5 GB each. That is 115 GB on a 125 GB host, before the kernel and the page cache got anything, and it exhausted the host's memory.

Now I measure one worker's peak resident memory on a representative file before picking a worker count. For example:

/usr/bin/time -v zeek -C -r sample.pcap 2>&1 | grep "Maximum resident"
free -g

Divide the RAM you are willing to give Zeek by that peak, and use the smaller of that and your core count. If you drive the batches with GNU parallel, --memfree holds back new jobs until that much memory is free, which catches the batch that runs larger than your sample.

2. Reduce the corpus, then inspect the small part

tshark ran at about 10 MB/s for me. On 57 TB that is about 6.3 million seconds, more than two months, for one pass.

So I use the Zeek logs to pick the flows that matter for a given question, extract those flows into a sub-corpus, and point the slow tools at the sub-corpus only. Re-running a job against one 1.3 TB sub-corpus took 4 minutes instead of 2 hours. A 14 GB sub-corpus took 3 minutes.

The storage arithmetic says the same thing. At the X16 Gen5's 56.5 GB/s site rating, 1.3 TB is about 23 seconds of reading against 18 minutes for the full corpus. A reduction step can look like this example:

zeek-cut id.orig_h id.resp_h id.resp_p < conn.log | sort -u > flows.txt
# build a BPF filter from flows.txt, then per file:
tcpdump -r in.pcap -w sub/in.pcap "$FILTER"

3. Kill jobs by PID, never by pattern

pkill -f matches the pattern against the full command line of every process, not only the process name. That includes the shell running your command, for example ssh host 'pkill -f pattern; ...', whose own command line contains the pattern, and any unrelated job whose arguments happen to contain it. I learned this when a pkill -f sent over SSH matched its own command line and killed an unrelated batch job partway through the corpus.

Now every long job runs in its own session and process group and records its PID when it starts, so a kill reaches its children and nothing else. For example:

setsid bash -c 'echo $$ > run.pid; exec ./run-batches.sh' > logs/run.log 2>&1 < /dev/null &
kill -- -"$(cat run.pid)"

If I must match by pattern, I run pgrep -af <pattern> first and read the list.

4. A carved file exactly at the size cap may be truncated

File extraction has a size limit. In Zeek it is FileExtract::default_limit, 100 MB (104,857,600 bytes) by default, and extracted files never exceed it. A carved file whose size equals that limit exactly cannot be told apart from one that was cut off at the cap. I compare every carved file against the cap, for example with Zeek's default limit and output directory:

find extract_files -type f -size 104857600c

Anything that command lists gets re-extracted with a higher limit or marked incomplete.

5. Batch boundaries split connections

A connection that crosses a batch boundary shows up as two partial records, one in each batch, and the second one starts with no handshake. Zeek's conn_state and history fields in conn.log tell you how many connections look partial:

zeek-cut conn_state < conn.log | sort | uniq -c

Those counts put a bound on completeness. They do not prove it. I report them as a bound and say how the batches were cut.

6. Mount the capture read-only during analysis

During analysis I remount the capture volume read-only and send every write to the separate analysis volume:

sudo mount -o remount,ro /capture

A script with a wrong output path fails with a read-only error instead of writing into the corpus. The split also keeps analysis writes off the twelve drives the passes are reading.

What I would size for next time

Plan the capture volume for the corpus, and plan a second volume for the derived output you expect. The first pass alone wrote 234 GB of logs here. Work out the read floor per pass at your card's bandwidth before you schedule the passes. Measure a Zeek worker's memory before you pick a worker count. Run one census, then reduce before you inspect.


Request Multi-Unit Quote · Apex X16 Gen5 product page

Related: