background image

Appendix C    QAT_speed.sh

 

 

27 

 
 

APPENDIX C    QAT_SPEED.SH 

#yum    install -y git 

 

######################################### 

### 

### download and build openssl 1.1.0e 

### 

######################################### 

Test_Dir=/root/ssl_speed 

cd $Test_Dir 

git clone https://github.com/openssl/openssl.git 

cd openssl 

#git tag 

git checkout OpenSSL_1_1_0e 

git describe --tag 

./config --prefix=/usr/local/ssl 

make depend 

make 

make install 

 

######################################### 

### 

### download and build QAT Engine patch 

### 

######################################### 

 

 

cd $Test_Dir/openssl 

git clone https://github.com/01org/QAT_Engine.git 

export OPENSSL_ENGINES=/usr/local/ssl/lib/engines-1.1 

#make sure usdm_drv is installed 

insmod /opt/APP/driver/QAT/quickassist/utilities/libusdm_drv/usdm_drv.ko 

 

cd $Test_Dir/openssl/QAT_Engine 

./autogen.sh 

./configure \ 

--with-qat_dir=/opt/APP/driver/QAT \ 

--with-openssl_dir=$Test_Dir/openssl \ 

--with-openssl_install_dir=/usr/local/ssl \ 

--enable-upstream_driver \ 

--enable-usdm \ 

--disable-qat_lenstra_protection 

make 

make install 

 

 

###################################################### 

### 

### Copy conf file and change the LimitDevAccess to 0   

### 

###################################################### 

 

 

cp $Test_Dir/openssl/QAT_Engine/qat/config/c6xx/multi_process_optimized/*    $Test_Dir/ 

 

cd $Test_Dir 

sed -e 's/LimitDevAccess = 1/LimitDevAccess = 0/g' ./c6xx_dev0.conf > /etc/c6xx_dev0.conf 

echo "modify c6xx_dev0.conf" 

sed -e 's/LimitDevAccess = 1/LimitDevAccess = 0/g' ./c6xx_dev1.conf > /etc/c6xx_dev1.conf 

echo "modify c6xx_dev1.conf" 

sed -e 's/LimitDevAccess = 1/LimitDevAccess = 0/g' ./c6xx_dev2.conf > /etc/c6xx_dev2.conf 

echo "modify c6xx_dev1.conf" 

 

##Restart qat service 

echo "Restart qat service" 

service qat_service restart 

export LD_LIBRARY_PATH=$PATH:/usr/local/ssl/lib 

Содержание uCPE NCA-4020

Страница 1: ...1 Verified Intel Select Solution for Universal Customer Premises Equipment uCPE Version 1 0 Date of Release 2018 09 12 Lanner uCPE NCA 4020 Installation Guide...

Страница 2: ...Installation 9 3 1 OS Installation Overview 9 3 2 Detailed Installation Steps 9 Chapter 4 Default Settings 12 4 1 Account Settings 12 4 2 Changing Passwords 12 4 3 Time Zone Settings 12 4 4 Auto Logo...

Страница 3: ...es 22M Cache 2 20 GHz 16 Cores 22M Cache 2 00 GHz Intel QuickAssist Technology N A 100G Crypto Comp Memory 16 GB DDR4 2400 MHz 4 4 GB Total of 16 GB 64 GB DDR4 2667 MHz 4 16 GB Total of 64 GB NIC Modu...

Страница 4: ...untu Ubuntu 16 04 3 kernel 4 4 0 116 generic APPs DPDK DPDK 18 02 Hypervisor KVM QEMU 2 5 0 Libvirt Libvirt Libvirt1 3 1 Drivers Intel QAT 1 7 L 1 0 5 25 I40e 2 4 6 Ixgbe 5 3 6 1 3 Terminology Term De...

Страница 5: ...96273 Intel QuickAssist Technology Software for Linux Getting Started Guide HW Version 1 7 336212 Benchmarking Methodology for Network Interconnect Devices https tools ietf org html rfc2544 Benchmarki...

Страница 6: ...ws 1 Connect the drive to a USB port 2 Open Windows Explorer or File Explorer 3 Right click on the USB drive and select Format 4 Under File System choose FAT32 Default 5 In the Volume Label box enter...

Страница 7: ...and boot folders to the USB drive Figure 2 File listing of OS Install package 2 2 2 Copy the SW Package to the root of the USB 1 Download the SW Package Document Number 596273 from Intel IBL site 2 G...

Страница 8: ...as below d i mirror http proxy string http proxy prc intel com 911 5 Copy all contents of the LinuxPackage folder to the root of the USB drive The final driver file structure on the USB drive should...

Страница 9: ...r takes about 30 minutes to complete The system reboots two times during auto installation 3 2 Detailed Installation Steps 1 System s MGMT port connect to the network with dhcp available Figure 6 Loca...

Страница 10: ...de scroll down to the USB drive and select it Note The manufacturer and model of your USB drive may not match Figure 8 Figure 8 Select USB Drive to Use for Boot If BIOS settings are configured correct...

Страница 11: ...work connection during the installation refer to Figure 10 Figure 10 Network Device Selection Page 9 Continue with the installation to select the disk to install and partition etc The system will rebo...

Страница 12: ...x root remote login is disabled because of security reasons Please enable it if needed by editing etc ssh sshd_config and setting PermitRootLogin yes as shown in Figure 11 Figure 11 Editing etc ssh ss...

Страница 13: ...sh NCA 4020 plus NCA 4020_Ubuntu log 5 2 Packet Processing Performance Requirements Intel Select Solution for uCPE base and plus configuration compliant platform solutions must demonstrate a minimum...

Страница 14: ...s is not equal to the count of received frames reduce the number of sent frames and rerun the test The throughput is the fastest rate at which the count of test frames transmitted by the DUT is equal...

Страница 15: ...port 10GbE SFP NIC Module Test Configuration Two ports of the NIC are used Each port has one queue One queue is assigned per logical core Total two logical cores two queues and two ports Test Paramet...

Страница 16: ...Performance to be measured at 4 KB packet size 3 Performance to be measured at 2 KB packet size The test can be accomplished by executing the command opt APP driver QAT build cpa_sample_code NCB 4020_...

Страница 17: ...t Solution for uCPE Plus Platform 100 Gb s 100 K sign s NOTE 1 Performance to be measured at 16 KB packet size This section contains instructions for setting up the requirements on running OpenSSL spe...

Страница 18: ...the file to opt APP driver directory then untar it mkdir opt APP driver QAT cd opt APP driver QAT tar zxf qat1 7 l x x x xxxxx tar gz 3 To rebuild and install the new QAT driver run installer sh with...

Страница 19: ...i if check 1 then echo Checking for Conformance file fi echo file echo file echo echo CPU Info lscpu grep Model lscpu grep CPU s lscpu grep Stepping failstr failplus failbase Microcode cat proc cpuinf...

Страница 20: ...fi fi if Mem_Pass eq 1 then echo Passed MemSize else echo Failed Totol Memory MemSize fi MemArrange dmidecode t Memory Device grep Size n echo MemArrange wc l 24 MemArrangeCPU1 dmidecode t Memory Devi...

Страница 21: ...dr fi if DeviceID 0x37c8 then Count_37c8 Count_37c8 1 fi done if Count_37c8 ge 3 then echo Intel R QAT Engines Passed else echo Only Count_37c8 x Intel R QAT Engines base 0 plus 0 pcie_qat_pass 0 fi i...

Страница 22: ...SDateD if BIOSDateY gt 2018 then BIOS_Pass 1 elif BIOSDateY eq 2018 BIOSDateM gt 2 then BIOS_Pass 1 elif BIOSDateY eq 2018 BIOSDateM eq 2 BIOSDateD ge 8 then BIOS_Pass 1 fi check_tool dpkg l grep msr...

Страница 23: ...ersion1 eq 1 QATVersion2 eq 0 QATVersion3 eq 3 QATVersion4 ge 42 then QAT_Pass 1 fi if QAT_Pass eq 1 then echo Passed QAT_VER else echo Failed QAT_VER QAT L 1 0 3 42 Needed fi fi echo echo DPDK DPDK_P...

Страница 24: ...2 QemuVer2 gt 5 then Qemu_Pass 1 elif QemuVer1 eq 2 QemuVer2 eq 5 QemuVer3 ge 0 then Qemu_Pass 1 fi if Qemu_Pass eq 1 then echo Passed QEMU else echo Failed Require Qemu Version 2 5 0 fi echo echo Lib...

Страница 25: ...ware stacks BIOS Intel Platform Technology PASS fi echo SCOREBOARD SUMMARY file echo file echo Intel Select Reference file if check 1 then if base 1 then echo Intel Select Reference HW BOM Base PASS s...

Страница 26: ...ile lscpu file echo file cat proc cmdline file echo file cat proc meminfo file uname a file echo NIC INFO file echo file lspci grep Eth file echo file ifconfig a file echo file modinfo i40e file echo...

Страница 27: ...Engine autogen sh configure with qat_dir opt APP driver QAT with openssl_dir Test_Dir openssl with openssl_install_dir usr local ssl enable upstream_driver enable usdm disable qat_lenstra_protection m...

Страница 28: ...taskset c 1 4 23 26 openssl speed engine qat async_jobs 150 evp aes 128 cbc hmac sha1 multi 7 Test_Dir openssl log cat openssl bulk log grep evp openssl2 log awk evp print 7 openssl2 log Learn More L...

Отзывы: