没有合适的资源?快使用搜索试试~ 我知道了~
首页dpdk套件的入门指南
资源详情
资源评论
资源推荐

Getting Started Guide for Linux
Release 2.0.0
April 24, 2015

CONTENTS
1 Introduction 2
1.1 Documentation Roadmap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 System Requirements 3
2.1 BIOS Setting Prerequisite on x86 . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Compilation of the DPDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 Running DPDK Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Compiling the DPDK Target from Source 8
3.1 Install the DPDK and Browse Sources . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Installation of DPDK Target Environments . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Browsing the Installed DPDK Environment Target . . . . . . . . . . . . . . . . . 10
3.4 Loading Modules to Enable Userspace IO for DPDK . . . . . . . . . . . . . . . . 10
3.5 Loading VFIO Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.6 Binding and Unbinding Network Ports to/from the Kernel Modules . . . . . . . . 11
4 Compiling and Running Sample Applications 13
4.1 Compiling a Sample Application . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2 Running a Sample Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Additional Sample Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 Additional Test Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 Enabling Additional Functionality 17
5.1 High Precision Event Timer HPET) Functionality . . . . . . . . . . . . . . . . . . 17
5.2 Running DPDK Applications Without Root Privileges . . . . . . . . . . . . . . . 18
5.3 Power Management and Power Saving Functionality . . . . . . . . . . . . . . . . 18
5.4 Using Linux* Core Isolation to Reduce Context Switches . . . . . . . . . . . . . 19
5.5 Loading the DPDK KNI Kernel Module . . . . . . . . . . . . . . . . . . . . . . . 19
5.6 Using Linux IOMMU Pass-Through to Run DPDK with Intel® VT-d . . . . . . . . 19
5.7 High Performance of Small Packets on 40G NIC . . . . . . . . . . . . . . . . . . 20
6 Quick Start Setup Script 21
6.1 Script Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.2 Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
i

Getting Started Guide for Linux, Release 2.0.0
April 24, 2015
Contents
CONTENTS 1

CHAPTER
ONE
INTRODUCTION
This document contains instructions for installing and configuring the Intel® Data Plane De-
velopment Kit (DPDK) software. It is designed to get customers up and running quickly. The
document describes how to compile and run a DPDK application in a Linux* application (lin-
uxapp) environment, without going deeply into detail.
1.1 Documentation Roadmap
The following is a list of DPDK documents in the suggested reading order:
• Release Notes: Provides release-specific information, including supported features, lim-
itations, fixed issues, known issues and so on. Also, provides the answers to frequently
asked questions in FAQ format.
• Getting Started Guide (this document): Describes how to install and configure the DPDK;
designed to get users up and running quickly with the software.
• Programmer’s Guide: Describes:
– The software architecture and how to use it (through examples), specifically in a
Linux* application (linuxapp) environment
– The content of the DPDK, the build system (including the commands that can be
used in the root DPDK Makefile to build the development kit and an application) and
guidelines for porting an application
– Optimizations used in the software and those that should be considered for new
development
A glossary of terms is also provided.
• API Reference: Provides detailed information about DPDK functions, data structures and
other programming constructs.
• Sample Applications User Guide: Describes a set of sample applications. Each chap-
ter describes a sample application that showcases specific functionality and provides
instructions on how to compile, run and use the sample application.
Note: These documents are available for download as a separate documentation package at
the same location as the DPDK code package.
2

CHAPTER
TWO
SYSTEM REQUIREMENTS
This chapter describes the packages required to compile the DPDK.
Note: If the DPDK is being used on an Intel® Communications Chipset 89xx Series platform,
please consult the Intel® Communications Chipset 89xx Series Software for Linux Getting
Started Guide*.
2.1 BIOS Setting Prerequisite on x86
For the majority of platforms, no special BIOS settings are needed to use basic DPDK func-
tionality. However, for additional HPET timer and power management functionality, and high
performance of small packets on 40G NIC, BIOS setting changes may be needed. Consult
Chapter 5. Enabling Additional Functionality for more information on the required changes.
2.2 Compilation of the DPDK
Required Tools:
Note: Testing has been performed using Fedora* 18. The setup commands and installed
packages needed on other systems may be different. For details on other Linux distributions
and the versions tested, please consult the DPDK Release Notes.
• GNU make
• coreutils: cmp, sed, grep, arch
• gcc: versions 4.5.x or later is recommended for i686/x86_64. versions 4.8.x or later
is recommended for ppc_64 and x86_x32 ABI. On some distributions, some specific
compiler flags and linker flags are enabled by default and affect performance (- fstack-
protector, for example). Please refer to the documentation of your distribution and to gcc
-dumpspecs.
• libc headers (glibc-devel.i686 / libc6-dev-i386; glibc-devel.x86_64 for 64-bit compilation
on Intel architecture; glibc-devel.ppc64 for 64 bit IBM Power architecture;)
• Linux kernel headers or sources required to build kernel modules. (kernel - devel.x86_64;
kernel - devel.ppc64)
• Additional packages required for 32-bit compilation on 64-bit systems are:
3
剩余26页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0