270160217a0f3b6835e3c3ef2e82e83e1122db23
[vpp.git] / src / vpp / conf / startup.conf
1
2 unix {
3   nodaemon
4   log /var/log/vpp/vpp.log
5   full-coredump
6   cli-listen /run/vpp/cli.sock
7   gid vpp
8
9   ## run vpp in the interactive mode
10   # interactive
11
12   ## do not use colors in terminal output
13   # nocolor
14
15   ## do not display banner
16   # nobanner
17 }
18
19 api-trace {
20 ## This stanza controls binary API tracing. Unless there is a very strong reason,
21 ## please leave this feature enabled.
22   on
23 ## Additional parameters:
24 ##
25 ## To set the number of binary API trace records in the circular buffer, configure nitems
26 ##
27 ## nitems <nnn>
28 ##
29 ## To save the api message table decode tables, configure a filename. Results in /tmp/<filename>
30 ## Very handy for understanding api message changes between versions, identifying missing
31 ## plugins, and so forth.
32 ##
33 ## save-api-table <filename>
34 }
35
36 api-segment {
37   gid vpp
38 }
39
40 socksvr {
41   default
42 }
43
44 # memory {
45         ## Set the main heap size, default is 1G
46         # main-heap-size 2G
47
48         ## Set the main heap page size. Default page size is OS default page
49         ## which is in most cases 4K. if different page size is specified VPP
50         ## will try to allocate main heap by using specified page size.
51         ## special keyword 'default-hugepage' will use system default hugepage
52         ## size
53         # main-heap-page-size 1G
54 #}
55
56 cpu {
57         ## In the VPP there is one main thread and optionally the user can create worker(s)
58         ## The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically
59
60         ## Manual pinning of thread(s) to CPU core(s)
61
62         ## Set logical CPU core where main thread runs, if main core is not set
63         ## VPP will use core 1 if available
64         # main-core 1
65
66         ## Set logical CPU core(s) where worker threads are running
67         # corelist-workers 2-3,18-19
68
69         ## Automatic pinning of thread(s) to CPU core(s)
70
71         ## Sets number of CPU core(s) to be skipped (1 ... N-1)
72         ## Skipped CPU core(s) are not used for pinning main thread and working thread(s).
73         ## The main thread is automatically pinned to the first available CPU core and worker(s)
74         ## are pinned to next free CPU core(s) after core assigned to main thread
75         # skip-cores 4
76
77         ## Specify a number of workers to be created
78         ## Workers are pinned to N consecutive CPU cores while skipping "skip-cores" CPU core(s)
79         ## and main thread's CPU core
80         # workers 2
81
82         ## Set scheduling policy and priority of main and worker threads
83
84         ## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)
85         ## idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR)
86         # scheduler-policy fifo
87
88         ## Scheduling priority is used only for "real-time policies (fifo and rr),
89         ## and has to be in the range of priorities supported for a particular policy
90         # scheduler-priority 50
91 }
92
93 # buffers {
94         ## Increase number of buffers allocated, needed only in scenarios with
95         ## large number of interfaces and worker threads. Value is per numa node.
96         ## Default is 16384 (8192 if running unpriviledged)
97         # buffers-per-numa 128000
98
99         ## Size of buffer data area
100         ## Default is 2048
101         # default data-size 2048
102
103         ## Size of the memory pages allocated for buffer data
104         ## Default will try 'default-hugepage' then 'default'
105         ## you can also pass a size in K/M/G e.g. '8M'
106         # page-size default-hugepage
107 # }
108
109 # dpdk {
110         ## Change default settings for all interfaces
111         # dev default {
112                 ## Number of receive queues, enables RSS
113                 ## Default is 1
114                 # num-rx-queues 3
115
116                 ## Number of transmit queues, Default is equal
117                 ## to number of worker threads or 1 if no workers treads
118                 # num-tx-queues 3
119
120                 ## Number of descriptors in transmit and receive rings
121                 ## increasing or reducing number can impact performance
122                 ## Default is 1024 for both rx and tx
123                 # num-rx-desc 512
124                 # num-tx-desc 512
125
126                 ## VLAN strip offload mode for interface
127                 ## Default is off
128                 # vlan-strip-offload on
129
130                 ## TCP Segment Offload
131                 ## Default is off
132                 ## To enable TSO, 'enable-tcp-udp-checksum' must be set
133                 # tso on
134
135                 ## Devargs
136                 ## device specific init args
137                 ## Default is NULL
138                 # devargs safe-mode-support=1,pipeline-mode-support=1
139
140                 ## rss-queues
141                 ## set valid rss steering queues
142                 # rss-queues 0,2,5-7
143         # }
144
145         ## Whitelist specific interface by specifying PCI address
146         # dev 0000:02:00.0
147
148         ## Blacklist specific device type by specifying PCI vendor:device
149         ## Whitelist entries take precedence
150         # blacklist 8086:10fb
151
152         ## Set interface name
153         # dev 0000:02:00.1 {
154         #       name eth0
155         # }
156
157         ## Whitelist specific interface by specifying PCI address and in
158         ## addition specify custom parameters for this interface
159         # dev 0000:02:00.1 {
160         #       num-rx-queues 2
161         # }
162
163         ## Change UIO driver used by VPP, Options are: igb_uio, vfio-pci,
164         ## uio_pci_generic or auto (default)
165         # uio-driver vfio-pci
166
167         ## Disable multi-segment buffers, improves performance but
168         ## disables Jumbo MTU support
169         # no-multi-seg
170
171         ## Change hugepages allocation per-socket, needed only if there is need for
172         ## larger number of mbufs. Default is 256M on each detected CPU socket
173         # socket-mem 2048,2048
174
175         ## Disables UDP / TCP TX checksum offload. Typically needed for use
176         ## faster vector PMDs (together with no-multi-seg)
177         # no-tx-checksum-offload
178
179         ## Enable UDP / TCP TX checksum offload
180         ## This is the reversed option of 'no-tx-checksum-offload'
181         # enable-tcp-udp-checksum
182 # }
183
184 ## node variant defaults
185 #node {
186
187 ## specify the preferred default variant
188 #       default { variant avx512 }
189
190 ## specify the preferred variant, for a given node
191 #       ip4-rewrite { variant avx2 }
192
193 #}
194
195
196 # plugins {
197         ## Adjusting the plugin path depending on where the VPP plugins are
198         #       path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins
199
200         ## Disable all plugins by default and then selectively enable specific plugins
201         # plugin default { disable }
202         # plugin dpdk_plugin.so { enable }
203         # plugin acl_plugin.so { enable }
204
205         ## Enable all plugins by default and then selectively disable specific plugins
206         # plugin dpdk_plugin.so { disable }
207         # plugin acl_plugin.so { disable }
208 # }
209
210 ## Statistics Segment
211 # statseg {
212     # socket-name <filename>, name of the stats segment socket
213     #     defaults to /run/vpp/stats.sock
214     # size <nnn>[KMG], size of the stats segment, defaults to 32mb
215     # page-size <nnn>, page size, ie. 2m, defaults to 4k
216     # per-node-counters on | off, defaults to none
217     # update-interval <f64-seconds>, sets the segment scrape / update interval
218 # }
219
220 ## L2 FIB
221 # l2fib {
222     ## l2fib hash table size.
223     #  table-size 512M
224
225     ## l2fib hash table number of buckets. Must be power of 2.
226     #  num-buckets 524288
227 # }
228
229 ## ipsec
230 # {
231    # ip4 {
232    ## ipsec for ipv4 tunnel lookup hash number of buckets.
233    #  num-buckets 524288
234    # }
235    # ip6 {
236    ## ipsec for ipv6 tunnel lookup hash number of buckets.
237    #  num-buckets 524288
238    # }
239 # }
240
241 # logging {
242    ## set default logging level for logging buffer
243    ## logging levels: emerg, alert,crit, error, warn, notice, info, debug, disabled
244    # default-log-level debug
245    ## set default logging level for syslog or stderr output
246    # default-syslog-log-level info
247    ## Set per-class configuration
248    # class dpdk/cryptodev { rate-limit 100 level debug syslog-level error }
249 # }