Copyright (c) 2016-2017 Atomic Rules LLC

Ed Czeck
June 2017

Required Bitstream Class: FX100GX1 FX10GX4 FXPPP

This directory contains a simple RX performance test.  Packets are
generated in the packet generator, sent directly to the host via
Arkville.  On the host side packets are just discarded.  The goal of
this test is to measure the raw Upstream performance of Arkville
without regard to any host application or user logic such as MAC.

The test setup consists of 3 layers.
-- The core C++ application (ark_rxperf_raw.cpp)
-- The Makefile which sets up the environment and call the application
   with appropriate arguments.  The configuration for the packet
   generator (pg.conf) is created for each run of the application.
-- A runtest.sh script which invokes the application via the Makefile
   for a range of configurations.
These layers are described in greater detail below.


Options for the applications are:
  --burst       -b <val>     Number of packets read in each burst
  --rxQueueSize -z <val>     Size of buffer queue
  --txQueueSize -t <val>     Size of buffer queue
  --minPkt      -m <val>     Min packet size
  --maxPkt      -M <val>     Max packet size
  --cores       -c <val>     Number of cores to distribute workload
  --runtime     -r <val>     Run time in seconds for the packet generator
  --multi-pool  -p <val>     Use one mbuf pool per core
  --help        -h           Obvious message


Environments variable which are read in the Makefile are passed to the
application or otherwise set in the packet generator configuration.
	 QUEUESIZE      Set Rx and Tx Queue Depth
	 BURST          Set Burst for Rx
	 CORES          Number of Cores to use
	 PKTSIZEMIN     Min Packet Size generated
	 PKTSIZEMAX     Max Packet Size generated
	 RUNTIME        Runtime of pkt generator (seconds)
	 BYTESPERCYCLE  Packet Generator shaping rate
         MULTIPOOL      Use one mbuf pool per core

A few notes and observations:
- Runtime should be at least 15 seconds to avoid startup
  overhead. This is very important when running with multiple cores.
- Packet drops are observed for small packet sizes, and are reduced
  when more cores are enabled.


Limitations: Only supports testing on a single port.
