beautypg.com

Lanner AV-ICE01 User Manual

Page 26

background image

Software User Manual Version 1.0.1

23

Note:

1.

This test takes a few minutes to complete. When the insmod command is
executed, there is no indication on the terminal window of the activities.
Instructions on viewing the results are included on next page.

2.

If loading of the module fails and some messages in /var/log/messages show
Device 0 not found or not stated or There are no cryptio instances, ensure
that the kernel option intel_iommu has been configured as specified in
Updating Grub Configuration file.

User Space

After building the sample code with the installation script, the kernel space kernel driver,
the user space applicaton, and the memory mapping driver are located at:

$ICP_ROOT/quickassist/lookaside/access_layer/sample_code/build

To execute the sign of life test in User space, use the following commands:

Install the kernel memory driver qaeMemDrv.ko, if the module has not already been
installed.

# insmod $ICP_ROOT/quickassist/lookaside/access_layer/src/sample_code/build/qaeMemDrv.ko

# cd $ICP_ROOT/quickassist/lookaside/access_layer/src/sample_code/build

# ./cpa_sample_code signOfLife=1

You will observe that execution time of the user space code takes longer than the
kernel space code. This is due to the sample code kernel space memory management
driver (qaeMemDrv.ko), which is slow to allocate and map memory to user space.
Before beginning performance measurements, the sample code allocates memory
up-front which slows execution time. This does not affect the performance of the
acceleration driver itself. The acceleration driver user space and kernel space
performance are equivalent, other things being equal (for instance, no throttling takes
place in either case).