Scheduler policy & priority config, few minor fixes (VPP-425)
[vpp.git] / vpp / conf / startup.conf
1
2 unix {
3   nodaemon
4   log /tmp/vpp.log
5   full-coredump
6 }
7
8 api-trace {
9   on
10 }
11
12 api-segment {
13   gid vpp
14 }
15
16 cpu {
17         ## Set logical CPU core where main thread runs
18         # main-core 1
19
20         ## Set logical CPU core(s) where worker threads are running
21         ## by default there is no worker threads started
22         # corelist-workers 2-3,18-19
23
24         ## Set scheduling policy and priority of main and worker threads
25
26         ## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)
27         ## idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR)
28         # scheduler-policy fifo
29
30         ## Scheduling priority is used only for "real-time policies (fifo and rr),
31         ## and has to be in the range of priorities supported for a particular policy
32         # scheduler-priority 50
33 }
34
35 dpdk {
36         ## Change default settings for all intefaces
37         # dev default {
38                 ## Number of receive queues, enables RSS
39                 ## Default is 1
40                 # num-rx-queues 3
41
42                 ## Number of transmit queues, Default is equal
43                 ## to number of worker threads or 1 if no workers treads
44                 # num-tx-queues 3
45
46                 ## Number of descriptors in transmit and receive rings
47                 ## increasing or reducing number can impact performance
48                 ## Default is 1024 for both rx and tx
49                 # num-rx-desc 512
50                 # num-tx-desc 512
51
52                 ## VLAN strip offload mode for interface
53                 ## Default is off
54                 # vlan-strip-offload on
55         # }
56
57         ## Whitelist specific interface by specifying PCI address
58         # dev 0000:02:00.0
59
60         ## Whitelist specific interface by specifying PCI address and in
61         ## addition specify custom parameters for this interface
62         # dev 0000:02:00.1 {
63         #       num-rx-queues 2
64         # }
65
66         ## Change UIO driver used by VPP, Options are: uio_pci_generic, vfio-pci
67         ## and igb_uio (default)
68         # uio-driver uio_pci_generic
69
70         ## Disable mutli-segment buffers, improves performance but
71         ## disables Jumbo MTU support
72         # no-multi-seg
73
74         ## Increase number of buffers allocated, needed only in scenarios with
75         ## large number of interfaces and worker threads. Value is per CPU socket.
76         ## Default is 32768
77         # num-mbufs 128000
78
79         ## Change hugepages allocation per-socket, needed only if there is need for
80         ## larger number of mbufs. Default is 256M on each detected CPU socket
81         # socket-mem 2048,2048
82 }