[dpdk-users] DPDK-Pktgen big pcap files

Merve Orakcı merveorakci58 at gmail.com
Mon Dec 21 21:00:11 CET 2020


Ok, thanks.

Wiles, Keith <keith.wiles at intel.com>, 5 Ara 2020 Cmt, 18:56 tarihinde şunu
yazdı:

>
>
> > On Dec 5, 2020, at 4:36 AM, Merve Orakcı <merveorakci58 at gmail.com>
> wrote:
> >
> > Hi everyboyd, I have 58 GB pcap file. I want to use this pcap file and
> send
> > packet over DPDK port. For this reason, I use Pktgen tool but when i try
> to
> > replay pcap file. pktgen aborted. This is about not enough memory for
> this
> > pcap file? How should I adjust pktgen?
> >
> > root at lucky-X10SRA:/home/lucky# grep -i huge /proc/meminfo
> > AnonHugePages:         0 kB
> > ShmemHugePages:        0 kB
> > HugePages_Total:      28
> > HugePages_Free:       28
> > HugePages_Rsvd:        0
> > HugePages_Surp:        0
> > Hugepagesize:    1048576 kB
>
> Getting 58GB pcap file to be sent by Pktgen is going to be hard as the
> number of packet buffers currently allocated to Pktgen is not that huge.
> The other problem you have only have 28 hugepages. For Pktgen to use that
> large of file it needs to load all 58GB into memory and then we have to
> adjust the number of buffers that Pktgen allocates, which means changing
> the code. The PCAP file is somewhat compressed meaning packets are back to
> back and Pktgen would need (normally) a 2K buffer for even one 64 byte
> frame. So multiply the number of frames in the 58GB file with 2K and that
> is how much memory you would need to hold that 58K file.
>
> Maybe some other tool is needed to send this large of a file.  It appears
> I am not going to be much help here :-(
>
> >
> > --
> > *Merve Orakcı*
> > Research Asistant
> > Gazi University - Institute of Informatics
> > Computer Forensics
> > Phone :+90 0312 202 3814
>
>

-- 
*Merve Orakcı*
Research Asistant
Gazi University - Institute of Informatics
Computer Forensics
Phone :+90 0312 202 3814


More information about the users mailing list