DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] DPDK-Pktgen big pcap files
@ 2020-12-05 10:36 Merve Orakcı
  2020-12-05 15:56 ` Wiles, Keith
  0 siblings, 1 reply; 3+ messages in thread
From: Merve Orakcı @ 2020-12-05 10:36 UTC (permalink / raw)
  To: users

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@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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] DPDK-Pktgen big pcap files
  2020-12-05 10:36 [dpdk-users] DPDK-Pktgen big pcap files Merve Orakcı
@ 2020-12-05 15:56 ` Wiles, Keith
  2020-12-21 20:00   ` Merve Orakcı
  0 siblings, 1 reply; 3+ messages in thread
From: Wiles, Keith @ 2020-12-05 15:56 UTC (permalink / raw)
  To: Merve Orakcı; +Cc: users



> On Dec 5, 2020, at 4:36 AM, Merve Orakcı <merveorakci58@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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] DPDK-Pktgen big pcap files
  2020-12-05 15:56 ` Wiles, Keith
@ 2020-12-21 20:00   ` Merve Orakcı
  0 siblings, 0 replies; 3+ messages in thread
From: Merve Orakcı @ 2020-12-21 20:00 UTC (permalink / raw)
  To: Wiles, Keith; +Cc: users

Ok, thanks.

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

>
>
> > On Dec 5, 2020, at 4:36 AM, Merve Orakcı <merveorakci58@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@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-21 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05 10:36 [dpdk-users] DPDK-Pktgen big pcap files Merve Orakcı
2020-12-05 15:56 ` Wiles, Keith
2020-12-21 20:00   ` Merve Orakcı

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).