John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1 | .. _startup: |
| 2 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 3 | ========================================== |
| 4 | VPP Configuration - CLI and 'startup.conf' |
| 5 | ========================================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 6 | |
| 7 | After a successful installation, VPP installs a startup config file named |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 8 | *startup.conf* in the */etc/vpp/* directory. This file can be tailored to |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 9 | make VPP run as desired, but contains default values for typical installations. |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 10 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 11 | Below are more details about this file and some of the the parameters and values |
| 12 | it contains. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 13 | |
| 14 | Command-line Arguments |
| 15 | ---------------------- |
| 16 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 17 | Before we describe details of the startup configuration file (startup.conf) it |
| 18 | should be mentioned that VPP can be started without a startup configuration |
| 19 | file. |
| 20 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 21 | Parameters are grouped by a section name. When providing more than one |
| 22 | parameter to a section, all parameters for that section must be wrapped in |
| 23 | curly braces. For example, to start VPP with configuration data via the |
| 24 | command line with the section name *'unix'*: |
| 25 | |
| 26 | .. code-block:: console |
| 27 | |
| 28 | $ sudo /usr/bin/vpp unix { interactive cli-listen 127.0.0.1:5002 } |
| 29 | |
| 30 | The command line can be presented as a single string or as several; anything |
| 31 | given on the command line is concatenated with spaces into a single string |
| 32 | before parsing. VPP applications must be able to locate their own executable |
| 33 | images. The simplest way to ensure this will work is to invoke a VPP |
| 34 | application by giving its absolute path. For example: |
| 35 | *'/usr/bin/vpp <options>'* At startup, VPP applications parse through their |
| 36 | own ELF-sections [primarily] to make lists of init, configuration, and exit |
| 37 | handlers. |
| 38 | |
| 39 | When developing with VPP, in gdb it's often sufficient to start an application |
| 40 | like this: |
| 41 | |
| 42 | .. code-block:: console |
| 43 | |
| 44 | (gdb) run unix interactive |
| 45 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 46 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 47 | Startup Configuration File (startup.conf) |
| 48 | ----------------------------------------- |
| 49 | |
| 50 | The more typical way to specify the startup configuration to VPP is with the |
| 51 | startup configuration file (startup.conf). |
| 52 | |
| 53 | The path of the file is provided to the VPP application on the command line. |
| 54 | This is typically at /etc/vpp/startup.conf. If VPP is installed as a package |
| 55 | a default startup.conf file is provided at this location. |
| 56 | |
| 57 | The format of the configuration file is a simple text file with the same content |
| 58 | as the command line. |
| 59 | |
| 60 | **A very simple startup.conf file:** |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 61 | |
| 62 | .. code-block:: console |
| 63 | |
| 64 | $ cat /etc/vpp/startup.conf |
| 65 | unix { |
| 66 | nodaemon |
| 67 | log /var/log/vpp/vpp.log |
| 68 | full-coredump |
| 69 | cli-listen localhost:5002 |
| 70 | } |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 71 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 72 | api-trace { |
| 73 | on |
| 74 | } |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 75 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 76 | dpdk { |
| 77 | dev 0000:03:00.0 |
| 78 | } |
| 79 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 80 | VPP is instructed to load this file with the -c option. For example: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 81 | |
| 82 | .. code-block:: console |
| 83 | |
| 84 | $ sudo /usr/bin/vpp -c /etc/vpp/startup.conf |
| 85 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 86 | Configuration Parameters |
| 87 | ------------------------ |
| 88 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 89 | Below is the list of some section names and their associated parameters. |
| 90 | This is not an exhaustive list, but should give you an idea of how VPP can be configured. |
| 91 | |
| 92 | For all of the configuration parameters search the source code for instances of |
| 93 | **VLIB_CONFIG_FUNCTION** and **VLIB_EARLY_CONFIG_FUNCTION**. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 94 | |
| 95 | For example, the invocation *'VLIB_CONFIG_FUNCTION (foo_config, "foo")'* will |
| 96 | cause the function *'foo_config'* to receive all parameters given in a |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 97 | parameter block named "foo": "foo { arg1 arg2 arg3 ... }". |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 98 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 99 | The unix section |
| 100 | ---------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 101 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 102 | Configures VPP startup and behavior type attributes, as well and any OS based |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 103 | attributes. |
| 104 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 105 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 106 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 107 | unix { |
| 108 | nodaemon |
| 109 | log /var/log/vpp/vpp.log |
| 110 | full-coredump |
| 111 | cli-listen /run/vpp/cli.sock |
| 112 | gid vpp |
| 113 | } |
| 114 | |
| 115 | nodaemon |
| 116 | ^^^^^^^^ |
| 117 | |
| 118 | Do not fork / background the vpp process. Typical when invoking VPP |
| 119 | applications from a process monitor. Set by default in the default |
| 120 | *'startup.conf'* file. |
| 121 | |
| 122 | .. code-block:: console |
| 123 | |
| 124 | nodaemon |
| 125 | |
| 126 | interactive |
| 127 | ^^^^^^^^^^^ |
| 128 | |
| 129 | Attach CLI to stdin/out and provide a debugging command line interface. |
| 130 | |
| 131 | .. code-block:: console |
| 132 | |
| 133 | interactive |
| 134 | |
| 135 | log <filename> |
| 136 | ^^^^^^^^^^^^^^ |
| 137 | |
| 138 | Logs the startup configuration and all subsequent CLI commands in filename. |
| 139 | Very useful in situations where folks don't remember or can't be bothered |
| 140 | to include CLI commands in bug reports. The default *'startup.conf'* file |
| 141 | is to write to *'/var/log/vpp/vpp.log'*. |
| 142 | |
| 143 | In VPP 18.04, the default log file location was moved from '/tmp/vpp.log' |
| 144 | to '/var/log/vpp/vpp.log' . The VPP code is indifferent to the file location. |
| 145 | However, if SELinux is enabled, then the new location is required for the file |
| 146 | to be properly labeled. Check your local *'startup.conf'* file for the log file |
| 147 | location on your system. |
| 148 | |
| 149 | .. code-block:: console |
| 150 | |
| 151 | log /var/log/vpp/vpp-debug.log |
| 152 | |
| 153 | exec | startup-config <filename> |
| 154 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 155 | |
| 156 | Read startup operational configuration from filename. The contents of the file |
| 157 | will be performed as though entered at the CLI. The two keywords are aliases |
| 158 | for the same function; if both are specified, only the last will have an effect. |
| 159 | |
| 160 | A file of CLI commands might look like: |
| 161 | |
| 162 | .. code-block:: console |
| 163 | |
| 164 | $ cat /usr/share/vpp/scripts/interface-up.txt |
| 165 | set interface state TenGigabitEthernet1/0/0 up |
| 166 | set interface state TenGigabitEthernet1/0/1 up |
| 167 | |
| 168 | Parameter Example: |
| 169 | |
| 170 | .. code-block:: console |
| 171 | |
| 172 | startup-config /usr/share/vpp/scripts/interface-up.txt |
| 173 | |
| 174 | gid <number | name> |
| 175 | ^^^^^^^^^^^^^^^^^^^ |
| 176 | |
| 177 | Sets the effective group ID to the input group ID or group name of the calling |
| 178 | process. |
| 179 | |
| 180 | .. code-block:: console |
| 181 | |
| 182 | gid vpp |
| 183 | |
| 184 | full-coredump |
| 185 | ^^^^^^^^^^^^^ |
| 186 | |
| 187 | Ask the Linux kernel to dump all memory-mapped address regions, instead of |
| 188 | just text+data+bss. |
| 189 | |
| 190 | .. code-block:: console |
| 191 | |
| 192 | full-coredump |
| 193 | |
| 194 | coredump-size unlimited | <n>G | <n>M | <n>K | <n> |
| 195 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 196 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 197 | Set the maximum size of the coredump file. The input value can be set in |
| 198 | GB, MB, KB or bytes, or set to *'unlimited'*. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 199 | |
| 200 | .. code-block:: console |
| 201 | |
| 202 | coredump-size unlimited |
| 203 | |
| 204 | cli-listen <ipaddress:port> | <socket-path> |
| 205 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 206 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 207 | Bind the CLI to listen at address localhost on TCP port 5002. This will |
| 208 | accept an ipaddress:port pair or a filesystem path; in the latter case a |
| 209 | local Unix socket is opened instead. The default *'startup.conf'* file |
| 210 | is to open the socket *'/run/vpp/cli.sock'*. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 211 | |
| 212 | .. code-block:: console |
| 213 | |
| 214 | cli-listen localhost:5002 |
| 215 | cli-listen /run/vpp/cli.sock |
| 216 | |
| 217 | cli-line-mode |
| 218 | ^^^^^^^^^^^^^ |
| 219 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 220 | Disable character-by-character I/O on stdin. Useful when combined with, |
| 221 | for example, emacs M-x gud-gdb. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 222 | |
| 223 | .. code-block:: console |
| 224 | |
| 225 | cli-line-mode |
| 226 | |
| 227 | cli-prompt <string> |
| 228 | ^^^^^^^^^^^^^^^^^^^ |
| 229 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 230 | Configure the CLI prompt to be string. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 231 | |
| 232 | .. code-block:: console |
| 233 | |
| 234 | cli-prompt vpp-2 |
| 235 | |
| 236 | cli-history-limit <n> |
| 237 | ^^^^^^^^^^^^^^^^^^^^^ |
| 238 | |
Paul Vinciguerra | 7fa3dd2 | 2019-10-27 17:28:10 -0400 | [diff] [blame] | 239 | Limit command history to <n> lines. A value of 0 disables command history. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 240 | Default value: 50 |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 241 | |
| 242 | .. code-block:: console |
| 243 | |
| 244 | cli-history-limit 100 |
| 245 | |
| 246 | cli-no-banner |
| 247 | ^^^^^^^^^^^^^ |
| 248 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 249 | Disable the login banner on stdin and Telnet connections. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 250 | |
| 251 | .. code-block:: console |
| 252 | |
| 253 | cli-no-banner |
| 254 | |
| 255 | cli-no-pager |
| 256 | ^^^^^^^^^^^^ |
| 257 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 258 | Disable the output pager. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 259 | |
| 260 | .. code-block:: console |
| 261 | |
| 262 | cli-no-pager |
| 263 | |
| 264 | cli-pager-buffer-limit <n> |
| 265 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 266 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 267 | Limit pager buffer to <n> lines of output. A value of 0 disables the |
| 268 | pager. Default value: 100000 |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 269 | |
| 270 | .. code-block:: console |
| 271 | |
| 272 | cli-pager-buffer-limit 5000 |
| 273 | |
| 274 | runtime-dir <dir> |
| 275 | ^^^^^^^^^^^^^^^^^ |
| 276 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 277 | Set the runtime directory, which is the default location for certain |
| 278 | files, like socket files. Default is based on User ID used to start VPP. |
| 279 | Typically it is *'root'*, which defaults to *'/run/vpp/'*. Otherwise, |
| 280 | defaults to *'/run/user/<uid>/vpp/'*. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 281 | |
| 282 | .. code-block:: console |
| 283 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 284 | runtime-dir /tmp/vpp |
| 285 | |
| 286 | poll-sleep-usec <n> |
| 287 | ^^^^^^^^^^^^^^^^^^^ |
| 288 | |
| 289 | Add a fixed-sleep between main loop poll. Default is 0, which is not to |
| 290 | sleep. |
| 291 | |
| 292 | .. code-block:: console |
| 293 | |
| 294 | poll-sleep-usec 100 |
| 295 | |
| 296 | pidfile <filename> |
| 297 | ^^^^^^^^^^^^^^^^^^ |
| 298 | |
| 299 | Writes the pid of the main thread in the given filename. |
| 300 | |
| 301 | .. code-block:: console |
| 302 | |
| 303 | pidfile /run/vpp/vpp1.pid |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 304 | |
| 305 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 306 | The api-trace Section |
| 307 | --------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 308 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 309 | The ability to trace, dump, and replay control-plane API traces makes all the |
| 310 | difference in the world when trying to understand what the control-plane has |
| 311 | tried to ask the forwarding-plane to do. |
| 312 | |
| 313 | Typically, one simply enables the API message trace scheme: |
| 314 | |
| 315 | .. code-block:: console |
| 316 | |
| 317 | api-trace { |
| 318 | api-trace on |
| 319 | } |
| 320 | |
| 321 | on | enable |
| 322 | ^^^^^^^^^^^ |
| 323 | |
| 324 | Enable API trace capture from the beginning of time, and arrange for a |
| 325 | post-mortem dump of the API trace if the application terminates abnormally. |
| 326 | By default, the (circular) trace buffer will be configured to capture |
| 327 | 256K traces. The default *'startup.conf'* file has trace enabled by default, |
| 328 | and unless there is a very strong reason, it should remain enabled. |
| 329 | |
| 330 | .. code-block:: console |
| 331 | |
| 332 | on |
| 333 | |
| 334 | nitems <n> |
| 335 | ^^^^^^^^^^ |
| 336 | |
| 337 | Configure the circular trace buffer to contain the last <n> entries. By |
| 338 | default, the trace buffer captures the last 256K API messages received. |
| 339 | |
| 340 | .. code-block:: console |
| 341 | |
| 342 | nitems 524288 |
| 343 | |
| 344 | save-api-table <filename> |
| 345 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 346 | |
| 347 | Dumps the API message table to /tmp/<filename>. |
| 348 | |
| 349 | .. code-block:: console |
| 350 | |
| 351 | save-api-table apiTrace-07-04.txt |
| 352 | |
| 353 | |
| 354 | The api-segment Section |
| 355 | ----------------------- |
| 356 | |
| 357 | These values control various aspects of the binary API interface to VPP. |
| 358 | |
| 359 | The default looks like the following: |
| 360 | |
| 361 | .. code-block:: console |
| 362 | |
| 363 | api-segment { |
| 364 | gid vpp |
| 365 | } |
| 366 | |
| 367 | |
| 368 | prefix <path> |
| 369 | ^^^^^^^^^^^^^ |
| 370 | |
| 371 | Sets the prefix prepended to the name used for shared memory (SHM) |
| 372 | segments. The default is empty, meaning shared memory segments are created |
| 373 | directly in the SHM directory *'/dev/shm'*. It is worth noting that on |
| 374 | many systems *'/dev/shm'* is a symbolic link to somewhere else in the file |
| 375 | system; Ubuntu links it to *'/run/shm'*. |
| 376 | |
| 377 | .. code-block:: console |
| 378 | |
| 379 | prefix /run/shm |
| 380 | |
| 381 | uid <number | name> |
| 382 | ^^^^^^^^^^^^^^^^^^^ |
| 383 | |
| 384 | Sets the user ID or name that should be used to set the ownership of the |
| 385 | shared memory segments. Defaults to the same user that VPP is started |
| 386 | with, probably root. |
| 387 | |
| 388 | .. code-block:: console |
| 389 | |
| 390 | uid root |
| 391 | |
| 392 | gid <number | name> |
| 393 | ^^^^^^^^^^^^^^^^^^^ |
| 394 | |
| 395 | Sets the group ID or name that should be used to set the ownership of the |
| 396 | shared memory segments. Defaults to the same group that VPP is started |
| 397 | with, probably root. |
| 398 | |
| 399 | .. code-block:: console |
| 400 | |
| 401 | gid vpp |
| 402 | |
| 403 | **The following parameters should only be set by those that are familiar with the |
| 404 | interworkings of VPP.** |
| 405 | |
| 406 | baseva <x> |
| 407 | ^^^^^^^^^^ |
| 408 | |
| 409 | Set the base address for SVM global region. If not set, on AArch64, the |
| 410 | code will try to determine the base address. All other default to |
| 411 | 0x30000000. |
| 412 | |
| 413 | .. code-block:: console |
| 414 | |
| 415 | baseva 0x20000000 |
| 416 | |
| 417 | global-size <n>G | <n>M | <n> |
| 418 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 419 | |
| 420 | Set the global memory size, memory shared across all router instances, |
| 421 | packet buffers, etc. If not set, defaults to 64M. The input value can be |
| 422 | set in GB, MB or bytes. |
| 423 | |
| 424 | .. code-block:: console |
| 425 | |
| 426 | global-size 2G |
| 427 | |
| 428 | global-pvt-heap-size <n>M | size <n> |
| 429 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 430 | |
| 431 | Set the size of the global VM private mheap. If not set, defaults to 128k. |
| 432 | The input value can be set in MB or bytes. |
| 433 | |
| 434 | .. code-block:: console |
| 435 | |
| 436 | global-pvt-heap-size size 262144 |
| 437 | |
| 438 | api-pvt-heap-size <n>M | size <n> |
| 439 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 440 | |
| 441 | Set the size of the api private mheap. If not set, defaults to 128k. |
| 442 | The input value can be set in MB or bytes. |
| 443 | |
| 444 | .. code-block:: console |
| 445 | |
| 446 | api-pvt-heap-size 1M |
| 447 | |
| 448 | api-size <n>M | <n>G | <n> |
| 449 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 450 | |
| 451 | Set the size of the API region. If not set, defaults to 16M. The input |
| 452 | value can be set in GB, MB or bytes. |
| 453 | |
| 454 | .. code-block:: console |
| 455 | |
| 456 | api-size 64M |
| 457 | |
| 458 | The socksvr Section |
| 459 | ------------------- |
| 460 | |
| 461 | Enables a Unix domain socket which processes binary API messages. See |
| 462 | .../vlibmemory/socket_api.c. If this parameter is not set, vpp |
| 463 | won't process binary API messages over sockets. |
| 464 | |
| 465 | .. code-block:: console |
| 466 | |
| 467 | socksvr { |
| 468 | # Explicitly name a socket file |
| 469 | socket-name /run/vpp/api.sock |
| 470 | or |
| 471 | # Use defaults as described below |
| 472 | default |
| 473 | } |
| 474 | |
| 475 | The "default" keyword instructs vpp to use /run/vpp/api.sock when |
| 476 | running as root, otherwise to use /run/user/<uid>/api.sock. |
| 477 | |
| 478 | The cpu Section |
| 479 | --------------- |
| 480 | |
| 481 | In the VPP there is one main thread and optionally the user can create worker(s) |
| 482 | The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically |
| 483 | |
| 484 | .. code-block:: console |
| 485 | |
| 486 | cpu { |
| 487 | main-core 1 |
| 488 | corelist-workers 2-3,18-19 |
| 489 | } |
| 490 | |
| 491 | |
| 492 | Manual pinning of thread(s) to CPU core(s) |
| 493 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 494 | |
| 495 | main-core |
| 496 | ^^^^^^^^^ |
| 497 | |
| 498 | Set logical CPU core where main thread runs, if main core is not set VPP will use |
| 499 | core 1 if available |
| 500 | |
| 501 | .. code-block:: console |
| 502 | |
| 503 | main-core 1 |
| 504 | |
| 505 | corelist-workers |
| 506 | ^^^^^^^^^^^^^^^^ |
| 507 | |
| 508 | Set logical CPU core(s) where worker threads are running |
| 509 | |
| 510 | .. code-block:: console |
| 511 | |
| 512 | corelist-workers 2-3,18-19 |
| 513 | |
| 514 | Automatic pinning of thread(s) to CPU core(s) |
| 515 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 516 | |
| 517 | skip-cores number |
| 518 | ^^^^^^^^^^^^^^^^^ |
| 519 | |
| 520 | Sets number of CPU core(s) to be skipped (1 ... N-1), Skipped CPU core(s) are |
| 521 | not used for pinning main thread and working thread(s). |
| 522 | |
| 523 | The main thread is automatically pinned to the first available CPU core and worker(s) |
| 524 | are pinned to next free CPU core(s) after core assigned to main thread |
| 525 | |
| 526 | .. code-block:: console |
| 527 | |
| 528 | skip-cores 4 |
| 529 | |
| 530 | workers number |
| 531 | ^^^^^^^^^^^^^^ |
| 532 | |
| 533 | Specify a number of workers to be created Workers are pinned to N consecutive |
| 534 | CPU cores while skipping "skip-cores" CPU core(s) and main thread's CPU core |
| 535 | |
| 536 | .. code-block:: console |
| 537 | |
| 538 | workers 2 |
| 539 | |
| 540 | scheduler-policy other | batch | idle | fifo | rr |
| 541 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 542 | |
| 543 | Set scheduling policy and priority of main and worker threads |
| 544 | |
| 545 | Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH) |
| 546 | idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR) |
| 547 | |
| 548 | .. code-block:: console |
| 549 | |
| 550 | scheduler-policy fifo |
| 551 | |
| 552 | scheduler-priority number |
| 553 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 554 | |
| 555 | Scheduling priority is used only for "real-time policies (fifo and rr), |
| 556 | and has to be in the range of priorities supported for a particular policy |
| 557 | |
| 558 | .. code-block:: console |
| 559 | |
| 560 | scheduler-priority 50 |
| 561 | |
| 562 | The buffers Section |
| 563 | ------------------- |
| 564 | |
| 565 | .. code-block:: console |
| 566 | |
| 567 | buffers { |
| 568 | buffers-per-numa 128000 |
| 569 | default data-size 2048 |
| 570 | } |
| 571 | |
| 572 | buffers-per-numa number |
| 573 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 574 | |
| 575 | Increase number of buffers allocated, needed only in scenarios with |
| 576 | large number of interfaces and worker threads. Value is per numa node. |
| 577 | Default is 16384 (8192 if running unpriviledged) |
| 578 | |
| 579 | .. code-block:: console |
| 580 | |
| 581 | buffers-per-numa 128000 |
| 582 | |
| 583 | default data-size number |
| 584 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 585 | |
| 586 | Size of buffer data area, default is 2048 |
| 587 | |
| 588 | .. code-block:: console |
| 589 | |
| 590 | default data-size 2048 |
| 591 | |
| 592 | |
| 593 | The dpdk Section |
| 594 | ---------------- |
| 595 | |
| 596 | .. code-block:: console |
| 597 | |
| 598 | dpdk { |
| 599 | dev default { |
| 600 | num-rx-desc 512 |
| 601 | num-tx-desc 512 |
| 602 | } |
| 603 | |
| 604 | dev 0000:02:00.1 { |
| 605 | num-rx-queues 2 |
| 606 | name eth0 |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | dev <pci-dev> | default { .. } |
| 611 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 612 | |
| 613 | White-list [as in, attempt to drive] a specific PCI device. PCI-dev is a |
| 614 | string of the form "DDDD:BB:SS.F" where: |
| 615 | |
| 616 | * DDDD = Domain |
| 617 | * BB = Bus Number |
| 618 | * SS = Slot number |
| 619 | * F = Function |
| 620 | |
| 621 | If the keywork **default** is used the values will apply to all the devices. |
| 622 | |
| 623 | This is the same format used in the linux sysfs tree (i.e./sys/bus/pci/devices) |
| 624 | for PCI device directory names. |
| 625 | |
| 626 | .. code-block:: console |
| 627 | |
| 628 | dpdk { |
| 629 | dev default { |
| 630 | num-rx-desc 512 |
| 631 | num-tx-desc 512 |
| 632 | } |
| 633 | |
| 634 | dev <pci-dev> { .. } |
| 635 | ^^^^^^^^^^^^^^^^^^^^ |
| 636 | |
| 637 | Whitelist specific interface by specifying PCI address. When whitelisting specific |
| 638 | interfaces by specifying PCI address, additional custom parameters can also be |
| 639 | specified. Valid options include: |
| 640 | |
| 641 | .. code-block:: console |
| 642 | |
| 643 | dev 0000:02:00.0 |
| 644 | dev 0000:03:00.0 |
| 645 | |
| 646 | blacklist <pci-dev> |
| 647 | ^^^^^^^^^^^^^^^^^^^ |
| 648 | |
| 649 | Blacklist specific device type by specifying PCI vendor:device Whitelist entries |
| 650 | take precedence |
| 651 | |
| 652 | .. code-block:: console |
| 653 | |
| 654 | blacklist 8086:10fb |
| 655 | |
| 656 | name interface-name |
| 657 | ^^^^^^^^^^^^^^^^^^^ |
| 658 | |
| 659 | Set interface name |
| 660 | |
| 661 | .. code-block:: console |
| 662 | |
| 663 | dev 0000:02:00.1 { |
| 664 | name eth0 |
| 665 | } |
| 666 | |
| 667 | num-rx-queues <n> |
| 668 | ^^^^^^^^^^^^^^^^^ |
| 669 | |
| 670 | Number of receive queues. Also enables RSS. Default value is 1. |
| 671 | |
| 672 | .. code-block:: console |
| 673 | |
| 674 | dev 0000:02:00.1 { |
| 675 | num-tx-queues <n> |
| 676 | } |
| 677 | |
| 678 | num-tx-queues <n> |
| 679 | ^^^^^^^^^^^^^^^^^ |
| 680 | |
| 681 | Number of transmit queues. Default is equal to number of worker threads |
| 682 | or 1 if no workers treads. |
| 683 | |
| 684 | .. code-block:: console |
| 685 | |
| 686 | dev 000:02:00.1 { |
| 687 | num-tx-queues <n> |
| 688 | } |
| 689 | |
| 690 | num-rx-desc <n> |
| 691 | ^^^^^^^^^^^^^^^ |
| 692 | |
| 693 | Number of descriptors in receive ring. Increasing or reducing number |
| 694 | can impact performance. Default is 1024. |
| 695 | |
| 696 | .. code-block:: console |
| 697 | |
| 698 | dev 000:02:00.1 { |
| 699 | num-rx-desc <n> |
| 700 | } |
| 701 | |
| 702 | vlan-strip-offload on | off |
| 703 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 704 | |
| 705 | VLAN strip offload mode for interface. VLAN stripping is off by default |
| 706 | for all NICs except VICs, using ENIC driver, which has VLAN stripping on |
| 707 | by default. |
| 708 | |
| 709 | .. code-block:: console |
| 710 | |
| 711 | dev 000:02:00.1 { |
| 712 | vlan-strip-offload on|off |
| 713 | } |
| 714 | |
| 715 | uio-driver driver-name |
| 716 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 717 | |
| 718 | Change UIO driver used by VPP, Options are: igb_uio, vfio-pci, uio_pci_generic |
| 719 | or auto (default) |
| 720 | |
| 721 | |
| 722 | .. code-block:: console |
| 723 | |
| 724 | uio-driver vfio-pci |
| 725 | |
| 726 | no-multi-seg |
| 727 | ^^^^^^^^^^^^ |
| 728 | |
| 729 | Disable multi-segment buffers, improves performance but disables Jumbo MTU support |
| 730 | |
| 731 | .. code-block:: console |
| 732 | |
| 733 | no-multi-seg |
| 734 | |
| 735 | socket-mem <n> |
| 736 | ^^^^^^^^^^^^^^ |
| 737 | |
| 738 | Change hugepages allocation per-socket, needed only if there is need for |
| 739 | larger number of mbufs. Default is 256M on each detected CPU socket |
| 740 | |
| 741 | .. code-block:: console |
| 742 | |
| 743 | socket-mem 2048,2048 |
| 744 | |
| 745 | no-tx-checksum-offload |
| 746 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 747 | |
| 748 | Disables UDP / TCP TX checksum offload. Typically needed for use faster |
| 749 | vector PMDs (together with no-multi-seg) |
| 750 | |
| 751 | .. code-block:: console |
| 752 | |
| 753 | no-tx-checksum-offload |
| 754 | |
| 755 | enable-tcp-udp-checksum |
| 756 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 757 | |
| 758 | Enable UDP / TCP TX checksum offload This is the reversed option of |
| 759 | 'no-tx-checksum-offload' |
| 760 | |
| 761 | .. code-block:: console |
| 762 | |
| 763 | enable-tcp-udp-checksum |
| 764 | |
| 765 | The plugins Section |
| 766 | ------------------- |
| 767 | |
| 768 | Configure VPP plugins. |
| 769 | |
| 770 | .. code-block:: console |
| 771 | |
| 772 | plugins { |
| 773 | path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins |
| 774 | plugin dpdk_plugin.so enable |
| 775 | } |
| 776 | |
| 777 | path pathname |
| 778 | ^^^^^^^^^^^^^ |
| 779 | |
| 780 | Adjust the plugin path depending on where the VPP plugins are. |
| 781 | |
| 782 | .. code-block:: console |
| 783 | |
| 784 | path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins |
| 785 | |
| 786 | plugin plugin-name | default enable | disable |
| 787 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 788 | |
| 789 | Disable all plugins by default and then selectively enable specific plugins |
| 790 | |
| 791 | .. code-block:: console |
| 792 | |
| 793 | plugin default disable |
| 794 | plugin dpdk_plugin.so enable |
| 795 | plugin acl_plugin.so enable |
| 796 | |
| 797 | Enable all plugins by default and then selectively disable specific plugins |
| 798 | |
| 799 | .. code-block:: console |
| 800 | |
| 801 | plugin dpdk_plugin.so disable |
| 802 | plugin acl_plugin.so disable |
| 803 | |
| 804 | Th statseg Section |
| 805 | ^^^^^^^^^^^^^^^^^^ |
| 806 | |
| 807 | .. code-block:: console |
| 808 | |
| 809 | statseg { |
| 810 | per-node-counters on |
| 811 | } |
| 812 | |
| 813 | socket-name <filename> |
| 814 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 815 | |
| 816 | Name of the stats segment socket defaults to /run/vpp/stats.sock. |
| 817 | |
| 818 | .. code-block:: console |
| 819 | |
| 820 | socket-name /run/vpp/stats.sock |
| 821 | |
| 822 | size <nnn>[KMG] |
| 823 | ^^^^^^^^^^^^^^^ |
| 824 | |
| 825 | The size of the stats segment, defaults to 32mb |
| 826 | |
| 827 | .. code-block:: console |
| 828 | |
| 829 | size 1024M |
| 830 | |
| 831 | per-node-counters on | off |
| 832 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 833 | |
| 834 | Defaults to none |
| 835 | |
| 836 | .. code-block:: console |
| 837 | |
| 838 | per-node-counters on |
| 839 | |
| 840 | update-interval <f64-seconds> |
| 841 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 842 | |
| 843 | Sets the segment scrape / update interval |
| 844 | |
| 845 | .. code-block:: console |
| 846 | |
| 847 | update-interval 300 |
| 848 | |
| 849 | |
| 850 | Some Advanced Parameters: |
| 851 | ------------------------- |
| 852 | |
| 853 | |
| 854 | acl-plugin Section |
| 855 | ------------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 856 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 857 | These parameters change the configuration of the ACL (access control list) plugin, |
| 858 | such as how the ACL bi-hash tables are initialized. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 859 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 860 | They should only be set by those that are familiar with the interworkings of VPP |
| 861 | and the ACL Plugin. |
| 862 | |
| 863 | The first three parameters, *connection hash buckets*, *connection hash memory*, |
| 864 | and *connection count max*, set the **connection table per-interface parameters** |
| 865 | for modifying how the two bounded-index extensible hash tables for |
| 866 | IPv6 (40\*8 bit key and 8\*8 bit value pairs) and IPv4 |
| 867 | (16\*8 bit key and 8\*8 bit value pairs) **ACL plugin FA interface sessions** |
| 868 | are initialized. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 869 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 870 | connection hash buckets <n> |
| 871 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 872 | |
| 873 | Sets the number of hash buckets (rounded up to a power of 2) in each |
| 874 | of the two bi-hash tables. Defaults to 64\*1024 (65536) hash buckets. |
| 875 | |
| 876 | .. code-block:: console |
| 877 | |
| 878 | connection hash buckets 65536 |
| 879 | |
| 880 | connection hash memory <n> |
| 881 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 882 | |
| 883 | Sets the allocated memory size (in bytes) for each of the two bi-hash tables. |
| 884 | Defaults to 1073741824 bytes. |
| 885 | |
| 886 | .. code-block:: console |
| 887 | |
| 888 | connection hash memory 1073741824 |
| 889 | |
| 890 | connection count max <n> |
| 891 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 892 | |
| 893 | Sets the maximum number of pool elements when allocating each per-worker |
| 894 | pool of sessions for both bi-hash tables. Defaults to 500000 elements in each pool. |
| 895 | |
| 896 | .. code-block:: console |
| 897 | |
| 898 | connection count max 500000 |
| 899 | |
| 900 | main heap size <n>G | <n>M | <n>K | <n> |
| 901 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 902 | |
| 903 | Sets the size of the main memory heap that holds all the ACL module related |
| 904 | allocations (other than hash.) Default size is 0, but during |
| 905 | ACL heap initialization is equal to |
| 906 | *per_worker_size_with_slack * tm->n_vlib_mains + bihash_size + main_slack*. |
| 907 | Note that these variables are partially based on the |
| 908 | **connection table per-interface parameters** mentioned above. |
| 909 | |
| 910 | .. code-block:: console |
| 911 | |
| 912 | main heap size 3G |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 913 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 914 | The next three parameters, *hash lookup heap size*, *hash lookup hash buckets*, |
| 915 | and *hash lookup hash memory*, modify the initialization of the bi-hash lookup |
| 916 | table used by the ACL plugin. This table is initialized when attempting to apply |
| 917 | an ACL to the existing vector of ACLs looked up during packet processing |
| 918 | (but it is found that the table does not exist / has not been initialized yet.) |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 919 | |
| 920 | hash lookup heap size <n>G | <n>M | <n> K | <n> |
| 921 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 922 | |
| 923 | Sets the size of the memory heap that holds all the miscellaneous allocations |
| 924 | related to hash-based lookups. Default size is 67108864 bytes. |
| 925 | |
| 926 | .. code-block:: console |
| 927 | |
| 928 | hash lookup heap size 70M |
| 929 | |
| 930 | hash lookup hash buckets <n> |
| 931 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 932 | |
| 933 | Sets the number of hash buckets (rounded up to a power of 2) in the bi-hash |
| 934 | lookup table. Defaults to 65536 hash buckets. |
| 935 | |
| 936 | .. code-block:: console |
| 937 | |
| 938 | hash lookup hash buckets 65536 |
| 939 | |
| 940 | hash lookup hash memory <n> |
| 941 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 942 | |
| 943 | Sets the allocated memory size (in bytes) for the bi-hash lookup table. |
| 944 | Defaults to 67108864 bytes. |
| 945 | |
| 946 | .. code-block:: console |
| 947 | |
| 948 | hash lookup hash memory 67108864 |
| 949 | |
| 950 | use tuple merge <n> |
| 951 | ^^^^^^^^^^^^^^^^^^^ |
| 952 | |
| 953 | Sets a boolean value indicating whether or not to use TupleMerge |
| 954 | for hash ACL's. Defaults to 1 (true), meaning the default implementation |
| 955 | of hashing ACL's does use TupleMerge. |
| 956 | |
| 957 | .. code-block:: console |
| 958 | |
| 959 | use tuple merge 1 |
| 960 | |
| 961 | tuple merge split threshold <n> |
| 962 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 963 | |
| 964 | Sets the maximum amount of rules (ACE's) that can collide in a bi-hash |
| 965 | lookup table before the table is split into two new tables. Splitting ensures |
| 966 | less rule collisions by hashing colliding rules based on their common tuple |
| 967 | (usually their maximum common tuple.) Splitting occurs when the |
| 968 | *length of the colliding rules vector* is greater than this threshold amount. |
| 969 | Defaults to a maximum of 39 rule collisions per table. |
| 970 | |
| 971 | .. code-block:: console |
| 972 | |
| 973 | tuple merge split threshold 30 |
| 974 | |
| 975 | reclassify sessions <n> |
| 976 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 977 | |
| 978 | Sets a boolean value indicating whether or not to take the epoch of the session |
| 979 | into account when dealing with re-applying ACL's or changing already applied ACL's. |
| 980 | Defaults to 0 (false), meaning the default implementation does NOT take the |
| 981 | epoch of the session into account. |
| 982 | |
| 983 | .. code-block:: console |
| 984 | |
| 985 | reclassify sessions 1 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 986 | |
| 987 | .. _api-queue: |
| 988 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 989 | api-queue Section |
| 990 | ----------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 991 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 992 | length <n> |
| 993 | ^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 994 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 995 | Sets the api queue length. Minimum valid queue length is 1024, which is |
| 996 | also the default. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 997 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 998 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 999 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1000 | length 2048 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1001 | |
| 1002 | .. _cj: |
| 1003 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1004 | cj Section |
| 1005 | ---------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1006 | |
| 1007 | The circular journal (CJ) thread-safe circular log buffer scheme is |
| 1008 | occasionally useful when chasing bugs. Calls to it should not be checked in. |
| 1009 | See .../vlib/vlib/unix/cj.c. The circular journal is disables by default. |
| 1010 | When enabled, the number of records must be provided, there is no default |
| 1011 | value. |
| 1012 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1013 | records <n> |
| 1014 | ^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1015 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1016 | Configure the number of circular journal records in the circular buffer. |
| 1017 | The number of records should be a power of 2. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1018 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1019 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1020 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1021 | records 131072 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1022 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1023 | on |
| 1024 | ^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1025 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1026 | Turns on logging at the earliest possible moment. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1027 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1028 | .. code-block:: console |
| 1029 | |
| 1030 | on |
| 1031 | |
| 1032 | dns Section |
| 1033 | ----------- |
| 1034 | |
| 1035 | max-cache-size <n> |
| 1036 | ^^^^^^^^^^^^^^^^^^ |
| 1037 | |
| 1038 | Set the maximum number of active elements allowed in the pool of |
| 1039 | dns cache entries. When resolving an expired entry or adding a new |
| 1040 | static entry and the max number of active entries is reached, |
| 1041 | a random, non-static entry is deleted. Defaults to 65535 entries. |
| 1042 | |
| 1043 | .. code-block:: console |
| 1044 | |
| 1045 | max-cache-size 65535 |
| 1046 | |
| 1047 | heapsize Section |
| 1048 | ----------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1049 | |
| 1050 | Heapsize configuration controls the size of the main heap. The heap size is |
| 1051 | configured very early in the boot sequence, before loading plug-ins or doing |
| 1052 | much of anything else. |
| 1053 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1054 | heapsize <n>M | <n>G |
| 1055 | ^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1056 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1057 | Specifies the size of the heap in MB or GB. The default is 1GB. Setting the |
| 1058 | main heap size to 4GB or more requires recompilation of the entire system |
| 1059 | with CLIB_VEC64 > 0. See .../clib/clib/vec_bootstrap.h. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1060 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1061 | .. code-block:: console |
| 1062 | |
| 1063 | heapsize 2G |
| 1064 | |
| 1065 | ip Section |
| 1066 | ---------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1067 | |
| 1068 | IPv4 heap configuration. he heap size is configured very early in the boot |
| 1069 | sequence, before loading plug-ins or doing much of anything else. |
| 1070 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1071 | heap-size <n>G | <n>M | <n>K | <n> |
| 1072 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1073 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1074 | Set the IPv4 mtrie heap size, which is the amount of memory dedicated to |
| 1075 | the destination IP lookup table. The input value can be set in GB, MB, KB |
| 1076 | or bytes. The default value is 32MB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1077 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1078 | .. code-block:: console |
| 1079 | |
| 1080 | heap-size 64M |
| 1081 | |
| 1082 | ip6 Section |
| 1083 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1084 | |
| 1085 | IPv6 heap configuration. he heap size is configured very early in the boot |
| 1086 | sequence, before loading plug-ins or doing much of anything else. |
| 1087 | |
| 1088 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1089 | heap-size <n>G | <n>M | <n>K | <n> |
| 1090 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1091 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1092 | Set the IPv6 forwarding table heap size. The input value can be set in GB, |
| 1093 | MB, KB or bytes. The default value is 32MB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1094 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1095 | .. code-block:: console |
| 1096 | |
| 1097 | heap-size 64M |
| 1098 | |
| 1099 | hash-buckets <n> |
| 1100 | ^^^^^^^^^^^^^^^^ |
| 1101 | |
| 1102 | Set the number of IPv6 forwarding table hash buckets. The default value is |
| 1103 | 64K (65536). |
| 1104 | |
| 1105 | .. code-block:: console |
| 1106 | |
| 1107 | hash-buckets 131072 |
| 1108 | |
| 1109 | l2learn Section |
| 1110 | --------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1111 | |
| 1112 | Configure Layer 2 MAC Address learning parameters. |
| 1113 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1114 | limit <n> |
| 1115 | ^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1116 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1117 | Configures the number of L2 (MAC) addresses in the L2 FIB at any one time, |
| 1118 | which limits the size of the L2 FIB to <n> concurrent entries. Defaults to |
| 1119 | 4M entries (4194304). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1120 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1121 | .. code-block:: console |
| 1122 | |
| 1123 | limit 8388608 |
| 1124 | |
| 1125 | l2tp Section |
| 1126 | ------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1127 | |
| 1128 | IPv6 Layer 2 Tunnelling Protocol Version 3 (IPv6-L2TPv3) configuration controls |
| 1129 | the method used to locate a specific IPv6-L2TPv3 tunnel. The following settings |
| 1130 | are mutually exclusive: |
| 1131 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1132 | lookup-v6-src |
| 1133 | ^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1134 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1135 | Lookup tunnel by IPv6 source address. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1136 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1137 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1138 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1139 | lookup-v6-src |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1140 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1141 | lookup-v6-dst |
| 1142 | ^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1143 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1144 | Lookup tunnel by IPv6 destination address. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1145 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1146 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1147 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1148 | lookup-v6-dst |
| 1149 | |
| 1150 | lookup-session-id |
| 1151 | ^^^^^^^^^^^^^^^^^ |
| 1152 | |
| 1153 | Lookup tunnel by L2TPv3 session identifier. |
| 1154 | |
| 1155 | .. code-block:: console |
| 1156 | |
| 1157 | lookup-session-id |
| 1158 | |
| 1159 | logging Section |
| 1160 | --------------- |
| 1161 | |
| 1162 | size <n> |
| 1163 | ^^^^^^^^ |
| 1164 | |
| 1165 | Number of entries in the global logging buffer. Defaults to 512. |
| 1166 | |
| 1167 | .. code-block:: console |
| 1168 | |
| 1169 | size 512 |
| 1170 | |
| 1171 | nthrottle-time <n> |
| 1172 | ^^^^^^^^^^^^^^^^^^ |
| 1173 | |
| 1174 | Set the global value for the time to wait (in seconds) before resuming |
| 1175 | logging of a log subclass that exceeded the per-subclass message-per-second |
| 1176 | threshold. Defaults to 3. |
| 1177 | |
| 1178 | .. code-block:: console |
| 1179 | |
| 1180 | unthrottle-time 3 |
| 1181 | |
| 1182 | default-log-level emerg|alert | crit | err | warn | notice | info | debug | disabled |
| 1183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1184 | |
| 1185 | Set the default logging level of the system log. Defaults to notice. |
| 1186 | |
| 1187 | .. code-block:: console |
| 1188 | |
| 1189 | default-log-level notice |
| 1190 | |
| 1191 | default-syslog-log-level emerg|alert | crit | err | warn | notice | info | debug | disabled |
| 1192 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1193 | |
| 1194 | Set the default logging level of the syslog target. Defaults to warning. |
| 1195 | |
| 1196 | .. code-block:: console |
| 1197 | |
| 1198 | default-syslog-log-level warning |
| 1199 | |
| 1200 | mactime Section |
| 1201 | --------------- |
| 1202 | |
| 1203 | lookup-table-buckets <n> |
| 1204 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1205 | |
| 1206 | Sets the number of hash buckets in the mactime bi-hash lookup table. |
| 1207 | Defaults to 128 buckets. |
| 1208 | |
| 1209 | .. code-block:: console |
| 1210 | |
| 1211 | lookup-table-buckets 128 |
| 1212 | |
| 1213 | lookup-table-memory <n>G | <n>M | <n>K | <n> |
| 1214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1215 | |
| 1216 | Sets the allocated memory size (in bytes) for the mactime bi-hash lookup table. |
| 1217 | The input value can be set in GB, MB, KB or bytes. The default value is 262144 |
| 1218 | (256 << 10) bytes or roughly 256KB. |
| 1219 | |
| 1220 | .. code-block:: console |
| 1221 | |
| 1222 | lookup-table-memory 300K |
| 1223 | |
| 1224 | timezone_offset <n> |
| 1225 | ^^^^^^^^^^^^^^^^^^^ |
| 1226 | |
| 1227 | Sets the timezone offset from UTC. Defaults to an offset of -5 hours |
| 1228 | from UTC (US EST / EDT.) |
| 1229 | |
| 1230 | .. code-block:: console |
| 1231 | |
| 1232 | timezone_offset -5 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1233 | |
| 1234 | "map" Parameters |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1235 | ---------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1236 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1237 | customer edge |
| 1238 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1239 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1240 | Sets a boolean true to indicate that the MAP node is a Customer Edge (CE) |
| 1241 | router. The boolean defaults to false, meaning the MAP node is not treated |
| 1242 | as a CE router. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1243 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1244 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1245 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1246 | customer edge |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1247 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1248 | nat Section |
| 1249 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1250 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1251 | These parameters change the configuration of the NAT (Network address translation) |
| 1252 | plugin, such as how the NAT & NAT64 bi-hash tables are initialized, if the NAT is |
| 1253 | endpoint dependent, or if the NAT is deterministic. |
| 1254 | |
| 1255 | For each NAT per thread data, the following 4 parameters change how certain |
| 1256 | bi-hash tables are initialized. |
| 1257 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1258 | translation hash buckets <n> |
| 1259 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1260 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1261 | Sets the number of hash buckets in each of the two in/out NAT bi-hash lookup |
| 1262 | tables. Defaults to 1024 buckets. |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1263 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1264 | If the NAT is indicated to be endpoint dependent, which can be set with the |
| 1265 | :ref:`endpoint-dependent parameter <endpointLabel>`, then this parameter sets |
| 1266 | the number of hash buckets in each of the two endpoint dependent sessions |
| 1267 | NAT bi-hash lookup tables. |
| 1268 | |
| 1269 | .. code-block:: console |
| 1270 | |
| 1271 | translation hash buckets 1024 |
| 1272 | |
| 1273 | translation hash memory <n> |
| 1274 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1275 | |
| 1276 | Sets the allocated memory size (in bytes) for each of the two in/out NAT |
| 1277 | bi-hash tables. Defaults to 134217728 (128 << 20) bytes, which is roughly 128 MB. |
| 1278 | |
| 1279 | If the NAT is indicated to be endpoint dependent, which can be set with the |
| 1280 | :ref:`endpoint-dependent parameter <endpointLabel>`, then this parameter sets the |
| 1281 | allocated memory size for each of the two endpoint dependent sessions NAT bi-hash |
| 1282 | lookup tables. |
| 1283 | |
| 1284 | .. code-block:: console |
| 1285 | |
| 1286 | translation hash memory 134217728 |
| 1287 | |
| 1288 | user hash buckets <n> |
| 1289 | ^^^^^^^^^^^^^^^^^^^^^ |
| 1290 | |
| 1291 | Sets the number of hash buckets in the user bi-hash lookup table |
| 1292 | (src address lookup for a user.) Defaults to 128 buckets. |
| 1293 | |
| 1294 | .. code-block:: console |
| 1295 | |
| 1296 | user hash buckets 128 |
| 1297 | |
| 1298 | user hash memory <n> |
| 1299 | ^^^^^^^^^^^^^^^^^^^^ |
| 1300 | |
| 1301 | Sets the allocated memory size (in bytes) for the user bi-hash lookup table |
| 1302 | (src address lookup for a user.) Defaults to 67108864 (64 << 20) bytes, |
| 1303 | which is roughly 64 MB. |
| 1304 | |
| 1305 | .. code-block:: console |
| 1306 | |
| 1307 | user hash memory 67108864 |
| 1308 | |
| 1309 | max translations per user <n> |
| 1310 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1311 | |
| 1312 | Sets the maximum amount of dynamic and/or static NAT sessions each user can have. |
| 1313 | Defaults to 100. When this limit is reached, the least recently used translation |
| 1314 | is recycled. |
| 1315 | |
| 1316 | .. code-block:: console |
| 1317 | |
| 1318 | max translations per user 50 |
| 1319 | |
| 1320 | deterministic |
| 1321 | ^^^^^^^^^^^^^ |
| 1322 | |
| 1323 | Sets a boolean value to 1 indicating that the NAT is deterministic. Defaults to 0, |
| 1324 | meaning the NAT is not deterministic. |
| 1325 | |
| 1326 | .. code-block:: console |
| 1327 | |
| 1328 | deterministic |
| 1329 | |
| 1330 | nat64 bib hash buckets <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame^] | 1331 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1332 | |
| 1333 | Sets the number of hash buckets in each of the two in/out NAT64 BIB bi-hash |
| 1334 | tables. Defaults to 1024 buckets. |
| 1335 | |
| 1336 | .. code-block:: console |
| 1337 | |
| 1338 | nat64 bib hash buckets 1024 |
| 1339 | |
| 1340 | nat64 bib hash memory <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame^] | 1341 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1342 | |
| 1343 | Sets the allocated memory size (in bytes) for each of the two in/out NAT64 |
| 1344 | BIB bi-hash tables. Defaults to 134217728 (128 << 20) bytes, |
| 1345 | which is roughly 128 MB. |
| 1346 | |
| 1347 | .. code-block:: console |
| 1348 | |
| 1349 | nat64 bib hash memory 134217728 |
| 1350 | |
| 1351 | nat64 st hash buckets <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame^] | 1352 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1353 | |
| 1354 | Sets the number of hash buckets in each of the two in/out NAT64 session table |
| 1355 | bi-hash tables. Defaults to 2048 buckets. |
| 1356 | |
| 1357 | .. code-block:: console |
| 1358 | |
| 1359 | nat64 st hash buckets 2048 |
| 1360 | |
| 1361 | nat64 st hash memory <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame^] | 1362 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1363 | |
| 1364 | Sets the allocated memory size (in bytes) for each of the two in/out NAT64 session |
| 1365 | table bi-hash tables. Defaults to 268435456 (256 << 20) bytes, which is roughly |
| 1366 | 256 MB. |
| 1367 | |
| 1368 | .. code-block:: console |
| 1369 | |
| 1370 | nat64 st hash memory 268435456 |
| 1371 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1372 | .. _endpointLabel: |
| 1373 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1374 | endpoint-dependent |
| 1375 | ^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1376 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1377 | Sets a boolean value to 1, indicating that the NAT is endpoint dependent. |
| 1378 | Defaults to 0, meaning the NAT is not endpoint dependent. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1379 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1380 | .. code-block:: console |
| 1381 | |
| 1382 | endpoint-dependent |
| 1383 | |
| 1384 | oam Section |
| 1385 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1386 | |
| 1387 | OAM configuration controls the (ip4-icmp) interval, and number of misses |
| 1388 | allowed before reporting an oam target down to any registered listener. |
| 1389 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1390 | interval <n.n> |
| 1391 | ^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1392 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1393 | Interval, floating-point seconds, between sending OAM IPv4 ICMP messages. |
| 1394 | Default is 2.04 seconds. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1395 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1396 | .. code-block:: console |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1397 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1398 | interval 3.5 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1399 | |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame^] | 1400 | physmem Section |
| 1401 | --------------- |
| 1402 | |
| 1403 | Configuration parameters used to specify base address and maximum size of |
| 1404 | the memory allocated for the pmalloc module in VPP. pmalloc is a NUMA-aware, |
| 1405 | growable physical memory allocator. pmalloc allocates memory for the DPDK |
| 1406 | memory pool. |
| 1407 | |
| 1408 | base-addr <address> |
| 1409 | ^^^^^^^^^^^^^^^^^^^ |
| 1410 | |
| 1411 | Specify the base address for pmalloc memory space. |
| 1412 | |
| 1413 | .. code-block:: console |
| 1414 | |
| 1415 | base-addr 0xfffe00000000 |
| 1416 | |
| 1417 | max-size <n>G | <n>M | <n>K | <n> |
| 1418 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1419 | |
| 1420 | Set the memory size for pmalloc memory space. The default is 16G. |
| 1421 | |
| 1422 | .. code-block:: console |
| 1423 | |
| 1424 | max-size 4G |
| 1425 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1426 | tapcli Section |
| 1427 | -------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1428 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1429 | Configuration parameters for TAPCLI (dynamic tap interface hookup.) |
| 1430 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1431 | mtu <n> |
| 1432 | ^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1433 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1434 | Sets interface MTU (maximum transmission unit) size in bytes. This size |
| 1435 | is also related to the number of MTU buffers. Defaults to 1500 bytes. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1436 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1437 | .. code-block:: console |
| 1438 | |
| 1439 | mtu 1500 |
| 1440 | |
| 1441 | disable |
| 1442 | ^^^^^^^ |
| 1443 | |
| 1444 | Disables TAPCLI. Default is that TAPCLI is enabled. |
| 1445 | |
| 1446 | .. code-block:: console |
| 1447 | |
| 1448 | disable |
| 1449 | |
| 1450 | |
| 1451 | tcp Section |
| 1452 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1453 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1454 | Configuration parameters for TCP host stack utilities. The following |
| 1455 | preallocation parameters are related to the initialization of fixed-size, |
| 1456 | preallocation pools. |
| 1457 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1458 | preallocated-connections <n> |
| 1459 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1460 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1461 | Sets the number of preallocated TCP connections. Defaults to 0. |
| 1462 | The preallocated connections per thread is related to this value, |
| 1463 | equal to (preallocated_connections / (num_threads - 1)). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1464 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1465 | .. code-block:: console |
| 1466 | |
| 1467 | preallocated-connections 5 |
| 1468 | |
| 1469 | preallocated-half-open-connections <n> |
| 1470 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1471 | |
| 1472 | Sets the number of preallocated TCP half-open connections. Defaults to 0. |
| 1473 | |
| 1474 | .. code-block:: console |
| 1475 | |
| 1476 | preallocated-half-open-connections 5 |
| 1477 | |
| 1478 | buffer-fail-fraction <n.n> |
| 1479 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1480 | |
| 1481 | Sets the TCP buffer fail fraction (a float) used for fault-injection |
| 1482 | when debugging TCP buffer allocation. Its use is found in *tcp_debug.h*. |
| 1483 | Defaults to 0.0. |
| 1484 | |
| 1485 | .. code-block:: console |
| 1486 | |
| 1487 | buffer-fail-fraction 0.0 |
| 1488 | |
| 1489 | |
| 1490 | tls Section |
| 1491 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1492 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1493 | Configures TLS parameters, such as enabling the use of test certificates. |
| 1494 | These parameters affect the tlsmbedtls and tlsopenssl plugins. |
| 1495 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1496 | use-test-cert-in-ca |
| 1497 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1498 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1499 | Sets a boolean value to 1 to indicate during the initialization of a |
| 1500 | TLS CA chain to attempt to parse and add test certificates to the chain. |
| 1501 | Defaults to 0, meaning test certificates are not used. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1502 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1503 | .. code-block:: console |
| 1504 | |
| 1505 | use-test-cert-in-ca |
| 1506 | |
| 1507 | ca-cert-path <filename> |
| 1508 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 1509 | |
| 1510 | Sets the filename path of the location of TLS CA certificates, used when |
| 1511 | initializing and loading TLS CA certificates during the initialization |
| 1512 | of a TLS CA chain. If not set, the default filename path is |
| 1513 | */etc/ssl/certs/ca-certificates.crt*. |
| 1514 | |
| 1515 | .. code-block:: console |
| 1516 | |
| 1517 | ca-cert-path /etc/ssl/certs/ca-certificates.crt |
| 1518 | |
| 1519 | |
| 1520 | tuntap Section |
| 1521 | -------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1522 | |
| 1523 | The "tuntap" driver configures a point-to-point interface between the vpp |
| 1524 | engine and the local Linux kernel stack. This allows e.g. users to ssh to the |
| 1525 | host | VM | container via vpp "revenue" interfaces. It's marginally useful, and |
| 1526 | is currently disabled by default. To [dynamically] create TAP interfaces - the |
| 1527 | preferred scheme - see the "tap_connect" binary API. The Linux network stack |
| 1528 | "vnet" interface needs to manually configure, and VLAN and other settings if |
| 1529 | desired. |
| 1530 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1531 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1532 | enable|disable |
| 1533 | ^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1534 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1535 | Enable or disable the tun/tap driver. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1536 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1537 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1538 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1539 | enable |
| 1540 | |
| 1541 | ethernet|ether |
| 1542 | ^^^^^^^^^^^^^^ |
| 1543 | |
| 1544 | Create a tap device (ethernet MAC) instead of a tun device (point-to-point |
| 1545 | tunnel). The two keywords are aliases for the same function. |
| 1546 | |
| 1547 | .. code-block:: console |
| 1548 | |
| 1549 | ethernet |
| 1550 | |
| 1551 | have-normal-interface|have-normal |
| 1552 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1553 | |
| 1554 | Treat the host Linux stack as a routing peer instead of programming VPP |
| 1555 | interface L3 addresses onto the tun/tap devices. The two keywords are |
| 1556 | aliases for the same function. |
| 1557 | |
| 1558 | .. code-block:: console |
| 1559 | |
| 1560 | have-normal-interface |
| 1561 | |
| 1562 | name <name> |
| 1563 | ^^^^^^^^^^^ |
| 1564 | |
| 1565 | Assign name to the tun/tap device. |
| 1566 | |
| 1567 | .. code-block:: console |
| 1568 | |
| 1569 | name vpp1 |
| 1570 | |
| 1571 | |
| 1572 | vhost-user Section |
| 1573 | ------------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1574 | |
| 1575 | Vhost-user configuration parameters control the vhost-user driver. |
| 1576 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1577 | coalesce-frames <n> |
| 1578 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1579 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1580 | Subject to deadline-timer expiration - see next item - attempt to transmit |
| 1581 | at least <n> packet frames. Default is 32 frames. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1582 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1583 | .. code-block:: console |
| 1584 | |
| 1585 | coalesce-frames 64 |
| 1586 | |
| 1587 | coalesce-time <seconds> |
| 1588 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 1589 | |
| 1590 | Hold packets no longer than (floating-point) seconds before transmitting |
| 1591 | them. Default is 0.001 seconds |
| 1592 | |
| 1593 | .. code-block:: console |
| 1594 | |
| 1595 | coalesce-time 0.002 |
| 1596 | |
| 1597 | dont-dump-memory |
| 1598 | ^^^^^^^^^^^^^^^^ |
| 1599 | |
| 1600 | vhost-user shared-memory segments can add up to a large amount of memory, so |
| 1601 | it's handy to avoid adding them to corefiles when using a significant number |
| 1602 | of such interfaces. |
| 1603 | |
| 1604 | .. code-block:: console |
| 1605 | |
| 1606 | dont-dump-memory |
| 1607 | |
| 1608 | |
| 1609 | vlib Section |
| 1610 | ------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1611 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1612 | These parameters configure VLIB, such as allowing you to choose whether to |
| 1613 | enable memory traceback or a post-mortem elog dump. |
| 1614 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1615 | memory-trace |
| 1616 | ^^^^^^^^^^^^ |
| 1617 | |
| 1618 | Enables memory trace (mheap traceback.) Defaults to 0, meaning memory |
| 1619 | trace is disabled. |
| 1620 | |
| 1621 | .. code-block:: console |
| 1622 | |
| 1623 | memory-trace |
| 1624 | |
| 1625 | elog-events <n> |
| 1626 | ^^^^^^^^^^^^^^^ |
| 1627 | |
| 1628 | Sets the number of elements/events (the size) of the event ring |
| 1629 | (a circular buffer of events.) This number rounds to a power of 2. |
| 1630 | Defaults to 131072 (128 << 10) elements. |
| 1631 | |
| 1632 | .. code-block:: console |
| 1633 | |
| 1634 | elog-events 4096 |
| 1635 | |
| 1636 | elog-post-mortem-dump |
| 1637 | ^^^^^^^^^^^^^^^^^^^^^ |
| 1638 | |
| 1639 | Enables the attempt of a post-mortem elog dump to |
| 1640 | */tmp/elog_post_mortem.<PID_OF_CALLING_PROCESS>* if os_panic or |
| 1641 | os_exit is called. |
| 1642 | |
| 1643 | .. code-block:: console |
| 1644 | |
| 1645 | elog-post-mortem-dump |