1.6.4. Running the Software
Complete the following steps to run the DMA software:
- In a terminal window change to the directory in which you installed the Linux driver.
- Type su.
- Type your super user password.
- Type make to compile the driver and application.
- Type ./install to install the driver.
- To run the DMA driver, type ./run.
The driver prints out the commands available to specify the DMA traffic you want to run. By default, the software enables DMA read, DMA write, and Simultaneous DMA reads and writes.
Table 11. Available Commands for DMA Operation
Start the DMA
Enable or disable read DMA
Enable or disable write DMA
Enable or disable simultaneous read and write DMAs
Set the number of dwords per DMA. The allowed range is 256-4096 dwords
Set the number of descriptors. The allowed range is 1-127 descriptors.
Set the Root Complex source address offset. This address must be a multiple of 4.
Run a loop DMA.
- To start the DMA, type 1. This runs the DMA for one loop. Type 8 to run the DMA in a loop.
The following figure shows the performance for DMA reads, DMA writes, and simultaneous DMA reads and writes.
To measure throughput, the software driver takes two timestamps. Software takes the first timestamp shortly after the you type the Start DMA command. Software takes the second timestamp after the DMA completes and returns the required completion status, EPLAST. If read DMA, write DMA and simultaneous read and write DMAs are all enabled, the driver takes six timestamps to make the three time measurements.
This DMA performance testing used the following PCIe Gen3 x8 in the system:
- Motherboard: Asus PBZ77-V
- Memory: Corsair 8 GB 2 dimm x [4GB (2x2GB)] @ 1600 MHz
- Vendor_ID: GenuineIntel
- CPU family: 6
- Model: 58
- Model name: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
- Stepping: 9
- Microcode: 0xc
- CPU MHz: 3101.000
- Cache size: 6144 KByte
Did you find the information on this page useful?