FD.io VPP配置文件详解:https://rtoax.blog.csdn.net/article/details/108056964

## Filename:     startup.conf
## Introduction:    VPP start up configure file
## Intro URL: https://my-vpp-docs.readthedocs.io/en/latest/gettingstarted/users/configuring/startup.html#unix
## File History:
##  2020.09.01  rongtao     Init startup
##
unix {nodaemonlog /var/log/vpp/vpp.logfull-coredump# cli-listen /run/vpp/cli.sockgid vppcoredump-size unlimitedcli-listen localhost:5002cli-prompt RToax-VPP#cli-history-limit 100cli-pager-buffer-limit 5000pidfile /run/vpp/vpp.pidstartup-config /usr/share/vpp/scripts/interface-up.txt
}logging {## default-log-level emerg|alertcrit|err|warn|notice|info|debug|disableddefault-log-level warn## default-syslog-log-level emerg|alertcrit|err|warn|notice|info|debug|disableddefault-syslog-log-level warn
}api-trace {
## This stanza controls binary API tracing. Unless there is a very strong reason,
## please leave this feature enabled.on
## Additional parameters:
##
## To set the number of binary API trace records in the circular buffer, configure nitems
##
## nitems <nnn>
##
## To save the api message table decode tables, configure a filename. Results in /tmp/<filename>
## Very handy for understanding api message changes between versions, identifying missing
## plugins, and so forth.
##
## save-api-table <filename>
}## These values control various aspects of the binary API interface to VPP.
## rtoax 2020年9月1日10:36:51
api-segment {## Sets the prefix prepended to the name used for shared memory (SHM) segments. ## The default is empty, meaning shared memory segments are created directly in ## the SHM directory ‘/dev/shm’. It is worth noting that on many systems ‘/dev/shm’ ## is a symbolic link to somewhere else in the file system; Ubuntu links it to ‘/run/shm’.# prefix /run/shm## Sets the user ID or name that should be used to set the ownership of the shared memory ## segments. Defaults to the same user that VPP is started with, probably root.# uid root## Sets the group ID or name that should be used to set the ownership of the shared memory ## segments. Defaults to the same group that VPP is started with, probably root.gid vpp
}socksvr {default
}## Config: https://my-vpp-docs.readthedocs.io/en/latest/gettingstarted/users/configuring/startup.html#unix
## rtoax 2020年9月1日
cpu {## In the VPP there is one main thread and optionally the user can create worker(s)## The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically## Manual pinning of thread(s) to CPU core(s)## Set logical CPU core where main thread runs, if main core is not set## VPP will use core 1 if availablemain-core 1## Place worker threads according to the bitmap hex-mask## rtoax 2020年9月1日## Error : vpp[35209]: cpu_config: no such thread type 3 'coremask-workers'# coremask-workers 0x0030## Set logical CPU core(s) where worker threads are running# corelist-workers 2-3,18-19## Automatic pinning of thread(s) to CPU core(s)## Sets number of CPU core(s) to be skipped (1 ... N-1)## Skipped CPU core(s) are not used for pinning main thread and working thread(s).## The main thread is automatically pinned to the first available CPU core and worker(s)## are pinned to next free CPU core(s) after core assigned to main thread# skip-cores 4## Specify a number of workers to be created## Workers are pinned to N consecutive CPU cores while skipping "skip-cores" CPU core(s)## and main thread's CPU coreworkers 2## Set scheduling policy and priority of main and worker threads## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)## idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR)scheduler-policy fifo## Scheduling priority is used only for "real-time policies (fifo and rr),## and has to be in the range of priorities supported for a particular policyscheduler-priority 50## create <n> i/o threads ## rtoax 2020年9月1日09:30:09## 报错:vpp[35100]: cpu_config: no such thread type 3 'io'# io 2## Handle i/o devices from thread 0, hand off traffic to worker threads.## Requires workers <n>## 报错: vpp[35115]: cpu_config: no such thread type 3 'main-thread-io'# main-thread-io 2## 设置线程名称前缀 rtoaxthread-prefix vpp
}buffers {## Increase number of buffers allocated, needed only in scenarios with## large number of interfaces and worker threads. Value is per numa node.## Default is 16384 (8192 if running unpriviledged)buffers-per-numa 128000## Size of buffer data area## Default is 2048# default data-size 2048
}dpdk {log-level debugdev 0000:3b:00.0dev 0000:3b:00.1no-multi-seg dev default {num-rx-queues 2num-tx-queues 2}
}
# dpdk {## Change default settings for all interfaces# dev default {## Number of receive queues, enables RSS## Default is 1# num-rx-queues 3## Number of transmit queues, Default is equal## to number of worker threads or 1 if no workers treads# num-tx-queues 3## Number of descriptors in transmit and receive rings## increasing or reducing number can impact performance## Default is 1024 for both rx and tx# num-rx-desc 512# num-tx-desc 512## VLAN strip offload mode for interface## Default is off# vlan-strip-offload on## TCP Segment Offload## Default is off## To enable TSO, 'enable-tcp-udp-checksum' must be set# tso on## Devargs## device specific init args## Default is NULL# devargs safe-mode-support=1,pipeline-mode-support=1# }## Whitelist specific interface by specifying PCI address# dev 0000:02:00.0## Blacklist specific device type by specifying PCI vendor:device## Whitelist entries take precedence# blacklist 8086:10fb## Set interface name# dev 0000:02:00.1 {#    name eth0# }## Whitelist specific interface by specifying PCI address and in## addition specify custom parameters for this interface# dev 0000:02:00.1 {#   num-rx-queues 2# }## Change UIO driver used by VPP, Options are: igb_uio, vfio-pci,## uio_pci_generic or auto (default)# uio-driver vfio-pci## Disable multi-segment buffers, improves performance but## disables Jumbo MTU support# no-multi-seg## Change hugepages allocation per-socket, needed only if there is need for## larger number of mbufs. Default is 256M on each detected CPU socket# socket-mem 2048,2048## Disables UDP / TCP TX checksum offload. Typically needed for use## faster vector PMDs (together with no-multi-seg)# no-tx-checksum-offload## Enable UDP / TCP TX checksum offload## This is the reversed option of 'no-tx-checksum-offload'# enable-tcp-udp-checksum
# }## node variant defaults
#node {## specify the preferred default variant
#   default { variant avx512 }## specify the preferred variant, for a given node
#   ip4-rewrite { variant avx2 }#}# plugins {## Adjusting the plugin path depending on where the VPP plugins are#   path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins## Disable all plugins by default and then selectively enable specific plugins# plugin default { disable }# plugin dpdk_plugin.so { enable }# plugin acl_plugin.so { enable }## Enable all plugins by default and then selectively disable specific plugins# plugin dpdk_plugin.so { disable }# plugin acl_plugin.so { disable }
# }## The following parameters should only be set by those that are familiar with
## the interworkings of VPP and the ACL Plugin.
## ACL,访问控制列表(Access Control List,ACL) 是路由器和交换机接口的指令列表,
## 用来控制端口进出的数据包。 rtoax 2020年9月1日10:34:39
#acl-plugin {# TODO
#}## The following parameters should only be set by those that are familiar
## with the interworkings of VPP.
api-queue {## Sets the api queue length. Minimum valid queue length is 1024, ## which is also the default.length 2048
}## Statistics Segment
# statseg {# socket-name <filename>, name of the stats segment socket#     defaults to /run/vpp/stats.sock# size <nnn>[KMG], size of the stats segment, defaults to 32mb# per-node-counters on | off, defaults to none# update-interval <f64-seconds>, sets the segment scrape / update interval
# }##
tls {## # se-test-cert-in-ca## If not set, the default is set to ‘/etc/ssl/certs/ca-certificates.crt’.ca-cert-path /etc/ssl/certs/ca-certificates.crt
}## The “tuntap” driver configures a point-to-point interface between the vpp
# engine and the local Linux kernel stack.
# This allows e.g. users to ssh to the host | VM | container via vpp “revenue” interfaces.
# It’s marginally useful, and is currently disabled by default. To [dynamically] create TAP
# interfaces - the preferred scheme - see the “tap_connect” binary API. The Linux network
# stack “vnet” interface needs to manually configure, and VLAN and other settings if desired.
#   rtoax 2020年9月1日
#tuntap {
#   enable
#
#}## Vhost-user configuration parameters control the vhost-user driver.
vhost-user {## Subject to deadline-timer expiration - see next item - attempt to transmit at # least <n> packet frames. Default is 32 frames.coalesce-frames 64## Hold packets no longer than (floating-point) seconds before transmitting them. # Default is 0.001 secondscoalesce-time 0.002## vhost-user shared-memory segments can add up to a large amount of memory, so # it’s handy to avoid adding them to corefiles when using a significant number #  of such interfaces.dont-dump-memory
}## vlib
# vpp[56687]: vlib_main_configure: parse error `elog-events elog-post-mortem-d...'
#vlib {
#   memory-trace
#   elog-events
#   elog-post-mortem-dump
#}

FD.io VPP startup.conf配置文件示例:安装后第一次配置相关推荐

  1. FD.io VPP:用户文档:VPP RPM包的构建与离线安装

    VPP RPM包的构建与离线安装 RToax 2020年9月 要开始使用VPP进行开发,您需要获取所需的VPP源代码,然后构建软件包. 1. 设置代理 如果你的服务器本地可以连接互联网,则跳过设置代理 ...

  2. FD.io VPP配置文件详解

    目录 VPP Configuration File - 'startup.conf' Introduction Command-line Arguments Configuration File Co ...

  3. FD.io VPP环境下运行用户应用程序教程

    FD.io VPP环境下运行用户应用程序教程 RToax 2020年9月 相关文章:<FD.io VPP利用iperf3进行UDP灌包测试-英特尔X520万兆网卡> 1. VPP简介 VP ...

  4. FD.io VPP利用iperf3进行UDP灌包测试-英特尔X520万兆网卡

    FD.io VPP:用户文档 iperf3灌包测试 RToax 2020年9月 架构 1. VPP环境配置与启动 1.1. 安装VPP环境 略 1.2. VPP配置文件 启动配置文件startup-i ...

  5. FD.io VPP:vlib buffer pool(vlib_buffer) 内存初始化

    Table of Contents vlib buffer创建过程 vlib_buffer相关内存初始化 1.函数一开始就查询numa的个数 2.遍历numa节点来初始化 3.查询系统大页大小. 4. ...

  6. FD.io/VPP — 常用指令集合

    目录 文章目录 目录 前言 System Level Interface Add NIC into VPP as Interface Interface State Hardware Interfac ...

  7. FD.io VPP用户文档:会话层架构与VPP应用

    FD.io VPP:用户文档 HostStack RToax 2020年9月 HostStack 1. 描述 VPP的主机协议栈是利用VPP传输,会话和应用程序层协议的用户空间实现.它大致包括四个主要 ...

  8. FD.io VPP:CentOS7下构建自己的VPP RPM包

    FD.io VPP:用户文档 构建VPP RToax 2020年9月 要开始使用VPP进行开发,您需要获取所需的VPP源代码,然后构建软件包. 1. 设置代理 如果你的服务器本地可以连接互联网,则跳过 ...

  9. FD.io VPP 20.05 官方文档 总目录:用户文档+开发文档+命令行

    https://docs.fd.io/vpp/20.05/index.html Vector Packet Processing FD.io VPP ▼Vector Packet Processing ...

最新文章

  1. 华科计算机学院多难考,计算机学院2019年硕士研究生入学考试成绩公告
  2. 为什么Java中1000==1000为false,而100==100为true?
  3. [Java Plasterer] Java Components 3:Java Enum
  4. 【Android 修炼手册】常用技术篇 -- Android 热修复解析
  5. r语言dataellipse_r – 在ggplot2中微调stat_ellipse()
  6. 判断字符串中是否包含中文
  7. 如何使用fiddler抓取APP接口
  8. 《东周列国志》第二十四回 盟召陵礼款楚大夫 会葵邱义戴周天子
  9. 堪比端游 欧美十大RPG网页游戏推荐
  10. win10 更新计算机时间,win10电脑时间不能自动更新
  11. 普渡大学电子计算机专业,普渡大学最热门专业,了解一下?
  12. 【Win10电脑更新】Win10电脑更新后小娜Cortana不能登录、咨询和兴趣不能查看的问题怎么解决
  13. Linux ls -l 名:命令详解
  14. Latex--入门系列三
  15. Linux 常用的操作
  16. 电信iptv信号接入服务器,IPTV发展需国家明确电信与广电交叉进入政策
  17. 混合高斯模型介绍以及应用
  18. Linux汇编代码中加打印,汇编语言中调用C函数打印“hello world”
  19. Udacity数据分析(进阶试学)-五王之战分析 - 冰与火之歌
  20. 网页CAD开发快速入门

热门文章

  1. freemarker 生成java_半自动化Java代码生成器[利用freemarker模板生成]
  2. Matlab绘制箕舌线
  3. leetcode题解776-旋转字符串
  4. css3 动画 vs js 动画
  5. 软件测试人员必备的linux命令
  6. lateral函数oracle,ORACLE LATERAL-SQL-INJECTION 个人见解
  7. c语言定义92bit位变量,Keil C51对C语言的关键词扩展之四: bit
  8. python个人总结_python个人总结
  9. centos7 安装jdk_Centos 7安装和配置 ElasticSearch入门小白
  10. 如何设置打印的时候不加上页面链接_电子面单史上最全打印问题集合--【拼点管家软件】...