-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathvswitch.xml
7181 lines (6444 loc) · 297 KB
/
vswitch.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<database name="ovs-vswitchd.conf.db" title="Open vSwitch Configuration Database">
<p>
A database with this schema holds the configuration for one Open
vSwitch daemon. The top-level configuration for the daemon is the
<ref table="Open_vSwitch"/> table, which must have exactly one
record. Records in other tables are significant only when they
can be reached directly or indirectly from the <ref
table="Open_vSwitch"/> table. Records that are not reachable from
the <ref table="Open_vSwitch"/> table are automatically deleted
from the database, except for records in a few distinguished
``root set'' tables.
</p>
<h2>Common Columns</h2>
<p>
Most tables contain two special columns, named <code>other_config</code>
and <code>external_ids</code>. These columns have the same form and
purpose each place that they appear, so we describe them here to save space
later.
</p>
<dl>
<dt><code>other_config</code>: map of string-string pairs</dt>
<dd>
<p>
Key-value pairs for configuring rarely used features. Supported keys,
along with the forms taken by their values, are documented individually
for each table.
</p>
<p>
A few tables do not have <code>other_config</code> columns because no
key-value pairs have yet been defined for them.
</p>
</dd>
<dt><code>external_ids</code>: map of string-string pairs</dt>
<dd>
Key-value pairs for use by external frameworks that integrate with Open
vSwitch, rather than by Open vSwitch itself. System integrators should
either use the Open vSwitch development mailing list to coordinate on
common key-value definitions, or choose key names that are likely to be
unique. In some cases, where key-value pairs have been defined that are
likely to be widely useful, they are documented individually for each
table.
</dd>
</dl>
<table name="Open_vSwitch" title="Open vSwitch configuration.">
Configuration for an Open vSwitch daemon. There must be exactly
one record in the <ref table="Open_vSwitch"/> table.
<group title="Configuration">
<column name="datapaths">
Map of datapath types to datapaths. The
<ref column="datapath_type"/> column of the <ref table="Bridge"/>
table is used as a key for this map. The value points to a row in
the <ref table="Datapath"/> table.
</column>
<column name="bridges">
Set of bridges managed by the daemon.
</column>
<column name="ssl">
SSL used globally by the daemon.
</column>
<column name="external_ids" key="system-id">
A unique identifier for the Open vSwitch's physical host.
The form of the identifier depends on the type of the host.
</column>
<column name="external_ids" key="hostname">
The hostname for the host running Open vSwitch. This is a fully
qualified domain name since version 2.6.2.
</column>
<column name="external_ids" key="rundir">
In Open vSwitch 2.8 and later, the run directory of the running Open
vSwitch daemon. This directory is used for runtime state such as
control and management sockets. The value of <ref
column="other_config" key="vhost-sock-dir"/> is relative to this
directory.
</column>
<column name="other_config" key="stats-update-interval"
type='{"type": "integer", "minInteger": 5000}'>
<p>
Interval for updating statistics to the database, in milliseconds.
This option will affect the update of the <code>statistics</code>
column in the following tables: <code>Port</code>, <code>Interface
</code>, <code>Mirror</code>.
</p>
<p>
Default value is 5000 ms.
</p>
<p>
Getting statistics more frequently can be achieved via OpenFlow.
</p>
</column>
<column name="other_config" key="flow-restore-wait"
type='{"type": "boolean"}'>
<p>
When <code>ovs-vswitchd</code> starts up, it has an empty flow table
and therefore it handles all arriving packets in its default fashion
according to its configuration, by dropping them or sending them to
an OpenFlow controller or switching them as a standalone switch.
This behavior is ordinarily desirable. However, if
<code>ovs-vswitchd</code> is restarting as part of a ``hot-upgrade,''
then this leads to a relatively long period during which packets are
mishandled.
</p>
<p>
This option allows for improvement. When <code>ovs-vswitchd</code>
starts with this value set as <code>true</code>, it will neither
flush or expire previously set datapath flows nor will it send and
receive any packets to or from the datapath. When this value is
later set to <code>false</code>, <code>ovs-vswitchd</code> will
start receiving packets from the datapath and re-setup the flows.
</p>
<p>
Additionally, <code>ovs-vswitchd</code> is prevented from connecting
to controllers when this value is set to <code>true</code>. This
prevents controllers from making changes to the flow table in the
middle of flow restoration, which could result in undesirable
intermediate states. Once this value has been set to
<code>false</code> and the desired flow state has been
restored, <code>ovs-vswitchd</code> will be able to reconnect to
controllers and process any new flow table modifications.
</p>
<p>
Thus, with this option, the procedure for a hot-upgrade of
<code>ovs-vswitchd</code> becomes roughly the following:
</p>
<ol>
<li>
Stop <code>ovs-vswitchd</code>.
</li>
<li>
Set <ref column="other_config" key="flow-restore-wait"/>
to <code>true</code>.
</li>
<li>
Start <code>ovs-vswitchd</code>.
</li>
<li>
Use <code>ovs-ofctl</code> (or some other program, such as an
OpenFlow controller) to restore the OpenFlow flow table
to the desired state.
</li>
<li>
Set <ref column="other_config" key="flow-restore-wait"/>
to <code>false</code> (or remove it entirely from the database).
</li>
</ol>
<p>
The <code>ovs-ctl</code>'s ``restart'' and ``force-reload-kmod''
functions use the above config option during hot upgrades.
</p>
</column>
<column name="other_config" key="flow-limit"
type='{"type": "integer", "minInteger": 0}'>
<p>
The maximum
number of flows allowed in the datapath flow table. Internally OVS
will choose a flow limit which will likely be lower than this number,
based on real time network conditions. Tweaking this value is
discouraged unless you know exactly what you're doing.
</p>
<p>
The default is 200000.
</p>
</column>
<column name="other_config" key="max-idle"
type='{"type": "integer", "minInteger": 500}'>
<p>
The maximum time (in ms) that idle flows will remain cached in the
datapath. Internally OVS will check the validity and activity for
datapath flows regularly and may expire flows quicker than this
number, based on real time network conditions. Tweaking this
value is discouraged unless you know exactly what you're doing.
</p>
<p>
The default is 10000.
</p>
</column>
<column name="other_config" key="max-revalidator"
type='{"type": "integer", "minInteger": 100}'>
<p>
The maximum time (in ms) that revalidator threads will wait before
executing flow revalidation. Note that this is maximum allowed value.
Actual timeout used by OVS is minimum of max-idle and max-revalidator
values. Tweaking this value is discouraged unless you know exactly
what you're doing.
</p>
<p>
The default is 500.
</p>
</column>
<column name="other_config" key="min-revalidate-pps"
type='{"type": "integer", "minInteger": 0}'>
<p>
Set minimum pps that flow must have in order to be revalidated when
revalidation duration exceeds half of max-revalidator config variable.
Setting to 0 means always revalidate flows regardless of pps.
</p>
<p>
The default is 5.
</p>
</column>
<column name="other_config" key="offloaded-stats-delay"
type='{"type": "integer", "minInteger": 0}'>
<p>
Set worst case delay (in ms) it might take before statistics of
offloaded flows are updated. Offloaded flows younger than this
delay will always be revalidated regardless of
<ref column="other_config" key="min-revalidate-pps"/>.
</p>
<p>
The default is 2000.
</p>
</column>
<column name="other_config" key="hw-offload"
type='{"type": "boolean"}'>
<p>
Set this value to <code>true</code> to enable netdev flow offload.
</p>
<p>
The default value is <code>false</code>. Changing this value requires
restarting the daemon
</p>
<p>
Currently Open vSwitch supports hardware offloading on
Linux systems. On other systems, this value is ignored.
This functionality is considered 'experimental'. Depending
on which OpenFlow matches and actions are configured,
which kernel version is used, and what hardware is
available, Open vSwitch may not be able to offload
functionality to hardware.
</p>
<p>
In order to dump HW offloaded flows use
<code>ovs-appctl dpctl/dump-flows</code>, <code>ovs-dpctl</code>
doesn't support this functionality. See ovs-vswitchd(8) for details.
</p>
</column>
<column name="other_config" key="n-offload-threads"
type='{"type": "integer", "minInteger": 1, "maxInteger": 10}'>
<p>
Set this value to the number of threads created to manage hardware
offloads.
</p>
<p>
The default value is <code>1</code>. Changing this value requires
restarting the daemon.
</p>
<p>
This is only relevant for userspace datapath and only if
<ref column="other_config" key="hw-offload"/> is enabled.
</p>
</column>
<column name="other_config" key="tc-policy"
type='{"type": "string",
"enum": ["set", ["none", "skip_sw", "skip_hw"]]}'>
<p>
Specified the policy used with HW offloading.
Options:
<dl>
<dt><code>none</code></dt>
<dd>Add software rule and offload rule to HW.</dd>
<dt><code>skip_sw</code></dt>
<dd>Offload rule to HW only.</dd>
<dt><code>skip_hw</code></dt>
<dd>Add software rule without offloading rule to HW.</dd>
</dl>
</p>
<p>
This is only relevant if
<ref column="other_config" key="hw-offload"/> is enabled.
</p>
<p>
The default value is <code>none</code>.
</p>
</column>
<column name="other_config" key="dpdk-init"
type='{"type": "string",
"enum": ["set", ["false", "true", "try"]]}'>
<p>
Set this value to <code>true</code> or <code>try</code> to enable
runtime support for DPDK ports. The vswitch must have compile-time
support for DPDK as well.
</p>
<p>
A value of <code>true</code> will cause the ovs-vswitchd process to
abort if DPDK cannot be initialized. A value of <code>try</code>
will allow the ovs-vswitchd process to continue running even if DPDK
cannot be initialized.
</p>
<p>
The default value is <code>false</code>. Changing this value requires
restarting the daemon
</p>
<p>
If this value is <code>false</code> at startup, any dpdk ports which
are configured in the bridge will fail due to memory errors.
</p>
</column>
<column name="other_config" key="dpdk-lcore-mask"
type='{"type": "integer", "minInteger": 1}'>
<p>
Specifies the CPU cores where dpdk lcore threads should be spawned.
The DPDK lcore threads are used for DPDK library tasks, such as
library internal message processing, logging, etc. Value should be in
the form of a hex string (so '0x123') similar to the 'taskset' mask
input.
</p>
<p>
The lowest order bit corresponds to the first CPU core. A set bit
means the corresponding core is available and an lcore thread will be
created and pinned to it. If the input does not cover all cores,
those uncovered cores are considered not set.
</p>
<p>
For performance reasons, it is best to set this to a single core on
the system, rather than allow lcore threads to float.
</p>
<p>
If not specified, the value will be determined by choosing the lowest
CPU core from initial cpu affinity list. Otherwise, the value will be
passed directly to the DPDK library.
</p>
</column>
<column name="other_config" key="pmd-cpu-mask">
<p>
Specifies CPU mask for setting the cpu affinity of PMD (Poll
Mode Driver) threads. Value should be in the form of hex string,
similar to the dpdk EAL '-c COREMASK' option input or the 'taskset'
mask input.
</p>
<p>
The lowest order bit corresponds to the first CPU core. A set bit
means the corresponding core is available and a pmd thread will be
created and pinned to it. If the input does not cover all cores,
those uncovered cores are considered not set.
</p>
<p>
If not specified, one pmd thread will be created for each numa node
and pinned to any available core on the numa node by default.
</p>
</column>
<column name="other_config" key="dpdk-alloc-mem"
type='{"type": "integer", "minInteger": 0}'>
<p>
Specifies the amount of memory to preallocate from the hugepage pool,
regardless of socket. It is recommended that dpdk-socket-mem is used
instead.
</p>
</column>
<column name="other_config" key="dpdk-socket-mem"
type='{"type": "string"}'>
<p>
Specifies the amount of memory to preallocate from the hugepage pool,
on a per-socket basis.
</p>
<p>
The specifier is a comma-separated string, in ascending order of CPU
socket. E.g. On a four socket system 1024,0,2048 would set socket 0
to preallocate 1024MB, socket 1 to preallocate 0MB, socket 2 to
preallocate 2048MB and socket 3 (no value given) to preallocate 0MB.
</p>
<p>
If <ref column="other_config" key="dpdk-socket-mem"/> and
<ref column="other_config" key="dpdk-alloc-mem"/> are not specified,
neither will be used and there will be no default value for each numa
node. DPDK defaults will be used instead.
If <ref column="other_config" key="dpdk-socket-mem"/> and
<ref column="other_config" key="dpdk-alloc-mem"/> are specified at
the same time, <ref column="other_config" key="dpdk-socket-mem"/>
will be used as default.
Changing this value requires restarting the daemon.
</p>
</column>
<column name="other_config" key="dpdk-socket-limit"
type='{"type": "string"}'>
<p>
Limits the maximum amount of memory that can be used from the
hugepage pool, on a per-socket basis.
</p>
<p>
The specifier is a comma-separated list of memory limits per socket.
<code>0</code> will disable the limit for a particular socket.
</p>
<p>
If not specified, OVS will not configure limits by default.
Changing this value requires restarting the daemon.
</p>
</column>
<column name="other_config" key="dpdk-hugepage-dir"
type='{"type": "string"}'>
<p>
Specifies the path to the hugetlbfs mount point.
</p>
<p>
If not specified, this will be guessed by the DPDK library (default
is /dev/hugepages). Changing this value requires restarting the
daemon.
</p>
</column>
<column name="other_config" key="dpdk-extra"
type='{"type": "string"}'>
<p>
Specifies additional eal command line arguments for DPDK.
</p>
<p>
The default is empty. Changing this value requires restarting the
daemon
</p>
</column>
<column name="other_config" key="vhost-sock-dir"
type='{"type": "string"}'>
<p>
Specifies a relative path from <ref column="external_ids"
key="rundir"/> to the vhost-user unix domain socket files. If this
value is unset, the sockets are put directly in <ref
column="external_ids" key="rundir"/>.
</p>
<p>
Changing this value requires restarting the daemon.
</p>
</column>
<column name="other_config" key="vhost-iommu-support"
type='{"type": "boolean"}'>
<p>
vHost IOMMU is a security feature, which restricts the vhost memory
that a virtio device may access. vHost IOMMU support is disabled by
default, due to a bug in QEMU implementations of the vhost REPLY_ACK
protocol, (on which vHost IOMMU relies) prior to v2.9.1. Setting this
value to <code>true</code> enables vHost IOMMU support for vHost User
Client ports in OvS-DPDK, starting from DPDK v17.11.
</p>
<p>
Changing this value requires restarting the daemon.
</p>
</column>
<column name="other_config" key="vhost-postcopy-support"
type='{"type": "boolean"}'>
<p>
vHost post-copy is a feature which allows switching live migration
of VM attached to dpdkvhostuserclient port to post-copy mode if
default pre-copy migration can not be converged or takes too long to
converge.
Setting this value to <code>true</code> enables vHost post-copy
support for all dpdkvhostuserclient ports. Available starting from
DPDK v18.11 and QEMU 2.12.
</p>
<p>
Changing this value requires restarting the daemon.
</p>
</column>
<column name="other_config" key="per-port-memory"
type='{"type": "boolean"}'>
<p>
By default OVS DPDK uses a shared memory model wherein devices
that have the same MTU and socket values can share the same
mempool. Setting this value to <code>true</code> changes this
behaviour. Per port memory allow DPDK devices to use private
memory per device. This can provide greater transparency as
regards memory usage but potentially at the cost of greater memory
requirements.
</p>
<p>
Changing this value requires restarting the daemon if dpdk-init has
already been set to true.
</p>
</column>
<column name="other_config" key="shared-mempool-config">
<p>Specifies dpdk shared mempool config.</p>
<p>Value should be set in the following form:</p>
<p>
<code>other_config:shared-mempool-config=<
user-shared-mempool-mtu-list></code>
</p>
<p>where</p>
<p>
<ul>
<li>
<user-shared-mempool-mtu-list> ::=
NULL | <non-empty-list>
</li>
<li>
<non-empty-list> ::= <user-mtus> |
<user-mtus> ,
<non-empty-list>
</li>
<li>
<user-mtus> ::= <mtu-all-socket> |
<mtu-socket-pair>
</li>
<li>
<mtu-all-socket> ::= <mtu>
</li>
<li>
<mtu-socket-pair> ::= <mtu> : <socket-id>
</li>
</ul>
</p>
<p>
Changing this value requires restarting the daemon if dpdk-init has
already been set to true.
</p>
</column>
<column name="other_config" key="tx-flush-interval"
type='{"type": "integer",
"minInteger": 0, "maxInteger": 1000000}'>
<p>
Specifies the time in microseconds that a packet can wait in output
batch for sending i.e. amount of time that packet can spend in an
intermediate output queue before sending to netdev.
This option can be used to configure balance between throughput
and latency. Lower values decreases latency while higher values
may be useful to achieve higher performance.
</p>
<p>
Defaults to 0 i.e. instant packet sending (latency optimized).
</p>
</column>
<column name="other_config" key="pmd-perf-metrics"
type='{"type": "boolean"}'>
<p>
Enables recording of detailed PMD performance metrics for analysis
and trouble-shooting. This can have a performance impact in the
order of 1%.
</p>
<p>
Defaults to false but can be changed at any time.
</p>
</column>
<column name="other_config" key="smc-enable"
type='{"type": "boolean"}'>
<p>
Signature match cache or SMC is a cache between EMC and megaflow
cache. It does not store the full key of the flow, so it is more
memory efficient comparing to EMC cache. SMC is especially useful
when flow count is larger than EMC capacity.
</p>
<p>
Defaults to false but can be changed at any time.
</p>
</column>
<column name="other_config" key="pmd-rxq-assign"
type='{"type": "string",
"enum": ["set", ["cycles", "roundrobin", "group"]]}'>
<p>
Specifies how RX queues will be automatically assigned to CPU cores.
Options:
<dl>
<dt><code>cycles</code></dt>
<dd>Rxqs will be sorted by order of measured processing cycles
before being assigned to CPU cores.</dd>
<dt><code>roundrobin</code></dt>
<dd>Rxqs will be round-robined across CPU cores.</dd>
<dt><code>group</code></dt>
<dd>Rxqs will be sorted by order of measured processing cycles
before being assigned to CPU cores with lowest estimated load.</dd>
</dl>
</p>
<p>
The default value is <code>cycles</code>.
</p>
<p>
Changing this value will affect an automatic re-assignment of Rxqs to
CPUs. Note: Rxqs mapped to CPU cores with
<code>pmd-rxq-affinity</code> are unaffected.
</p>
</column>
<column name="other_config" key="pmd-rxq-isolate"
type='{"type": "boolean"}'>
<p>
Specifies if a CPU core will be isolated after being pinned with
an Rx queue.
<p/>
Set this value to <code>false</code> to non-isolate a CPU core after
it is pinned with an Rxq using <code>pmd-rxq-affinity</code>. This
will allow OVS to assign other Rxqs to that CPU core.
</p>
<p>
The default value is <code>true</code>.
</p>
<p>
This can only be <code>false</code> when <code>pmd-rxq-assign</code>
is set to <code>group</code>.
</p>
</column>
<column name="other_config" key="n-handler-threads"
type='{"type": "integer", "minInteger": 1}'>
<p>
Attempts to specify the number of threads for software datapaths to
use for handling new flows. Some datapaths may choose to ignore
this and it will be set to a sensible option for the datapath type.
</p>
<p>
This configuration is per datapath. If you have more than one
software datapath (e.g. some <code>system</code> bridges and some
<code>netdev</code> bridges), then the total number of threads is
<code>n-handler-threads</code> times the number of software
datapaths.
</p>
</column>
<column name="other_config" key="n-revalidator-threads"
type='{"type": "integer", "minInteger": 1}'>
<p>
Attempts to specify the number of threads for software datapaths to
use for revalidating flows in the datapath. Some datapaths may
choose to ignore this and will set to a sensible option for the
datapath type.
</p>
<p>
Typically, there is a direct correlation between the
number of revalidator threads, and the number of flows allowed in the
datapath. The default is the number of cpu cores divided by four
plus one. If <code>n-handler-threads</code> is set, the default
changes to the number of cpu cores minus the number
of handler threads.
</p>
<p>
This configuration is per datapath. If you have more than one
software datapath (e.g. some <code>system</code> bridges and some
<code>netdev</code> bridges), then the total number of threads is
<code>n-handler-threads</code> times the number of software
datapaths.
</p>
</column>
<column name="other_config" key="emc-insert-inv-prob"
type='{"type": "integer", "minInteger": 0, "maxInteger": 4294967295}'>
<p>
Specifies the inverse probability (1/emc-insert-inv-prob) of a flow
being inserted into the Exact Match Cache (EMC). On average one in
every <code>emc-insert-inv-prob</code> packets that generate a unique
flow will cause an insertion into the EMC.
A value of 1 will result in an insertion for every flow (1/1 = 100%)
whereas a value of zero will result in no insertions and essentially
disable the EMC.
</p>
<p>
Defaults to 100 ie. there is (1/100 =) 1% chance of EMC insertion.
</p>
</column>
<column name="other_config" key="vlan-limit"
type='{"type": "integer", "minInteger": 0}'>
<p>
Limits the number of VLAN headers that can be matched to the
specified number. Further VLAN headers will be treated as payload,
e.g. a packet with more 802.1q headers will match Ethernet type
0x8100.
</p>
<p>
Open vSwitch userspace currently supports at most 2 VLANs, and each
datapath has its own limit. If <code>vlan-limit</code> is nonzero,
it acts as a further limit.
</p>
<p>
If this value is absent, the default is currently 1. This maintains
backward compatibility with controllers that were designed for use
with Open vSwitch versions earlier than 2.8, which only supported one
VLAN.
</p>
</column>
<column name="other_config" key="bundle-idle-timeout"
type='{"type": "integer", "minInteger": 1}'>
<p>
The maximum time (in seconds) that idle bundles will wait
to be expired since it was either opened, modified or closed.
</p>
<p>
OpenFlow specification mandates the timeout to be at least one
second. The default is 10 seconds.
</p>
</column>
<column name="other_config" key="offload-rebalance"
type='{"type": "boolean"}'>
<p>
Configures HW offload rebalancing, that allows to dynamically
offload and un-offload flows while an offload-device is out of
resources (OOR). This policy allows flows to be selected for
offloading based on the packets-per-second (pps) rate of flows.
</p>
<p>
Set this value to <code>true</code> to enable this option.
</p>
<p>
The default value is <code>false</code>. Changing this value requires
restarting the daemon.
</p>
<p>
This is only relevant if HW offloading is enabled (hw-offload).
When this policy is enabled, it also requires 'tc-policy' to
be set to 'skip_sw'.
</p>
</column>
<column name="other_config" key="pmd-auto-lb"
type='{"type": "boolean"}'>
<p>
Configures PMD Auto Load Balancing that allows automatic assignment of
RX queues to PMDs if any of PMDs is overloaded (i.e. a processing
cycles >
<ref column="other_config" key="pmd-auto-lb-load-threshold"/>).
</p>
<p>
It uses current scheme of cycle based assignment of RX queues that
are not statically pinned to PMDs.
</p>
<p>
The default value is <code>false</code>.
</p>
<p>
Set this value to <code>true</code> to enable this option. It is
currently disabled by default and an experimental feature.
</p>
<p>
This only comes in effect if cycle based assignment is enabled and
there are more than one non-isolated PMDs present and at least one of
it polls more than one queue.
</p>
</column>
<column name="other_config" key="pmd-auto-lb-rebal-interval"
type='{"type": "integer",
"minInteger": 0, "maxInteger": 20000}'>
<p>
The minimum time (in minutes) 2 consecutive PMD Auto Load Balancing
iterations.
</p>
<p>
The default value is 1 min. If configured to 0 then it would be
converted to default value i.e. 1 min
</p>
<p>
This option can be configured to avoid frequent trigger of auto load
balancing of PMDs. For e.g. set the value (in min) such that it occurs
once in few hours or a day or a week.
</p>
</column>
<column name="other_config" key="pmd-auto-lb-load-threshold"
type='{"type": "integer", "minInteger": 0, "maxInteger": 100}'>
<p>
Specifies the minimum PMD thread load threshold (% of used cycles) of
any non-isolated PMD threads when a PMD Auto Load Balance may be
triggered.
</p>
<p>
The default value is <code>95%</code>.
</p>
</column>
<column name="other_config" key="pmd-auto-lb-improvement-threshold"
type='{"type": "integer", "minInteger": 0, "maxInteger": 100}'>
<p>
Specifies the minimum evaluated % improvement in load distribution
across the non-isolated PMD threads that will allow a PMD Auto Load
Balance to occur.
</p>
<p>
Note, setting this parameter to 0 will always allow an auto load
balance to occur regardless of estimated improvement or not.
</p>
<p>
The default value is <code>25%</code>.
</p>
</column>
<column name="other_config" key="pmd-sleep-max">
<p>
Specifies the maximum sleep time that will be requested in
microseconds per iteration for a PMD thread which has received zero
or a small amount of packets from the Rx queues it is polling.
</p>
<p>
The actual sleep time requested is based on the load
of the Rx queues that the PMD polls and may be less than
the maximum value.
</p>
<p>
The default value is <code>0 microseconds</code>, which means
that the PMD will not sleep regardless of the load from the
Rx queues that it polls.
</p>
<p>
The maximum value is <code>10000 microseconds</code>.
</p>
<p>
<code>other_config:pmd-sleep-max=<pmd-sleep-list></code>
</p>
<p>where</p>
<p>
<ul>
<li>
<pmd-sleep-list> ::= NULL | <non-empty-list>
</li>
<li>
<non-empty-list> ::= <pmd-sleep-value> |
<pmd-sleep-value> ,
<non-empty-list>
</li>
<li>
<pmd-sleep-value> ::= <global-default-sleep-value> |
<pmd-core-sleep-pair>
</li>
<li>
<global-default-sleep-value> ::= <max-sleep-time>
</li>
<li>
<pmd-core-sleep-pair> ::= <core> :
<max-sleep-time>
</li>
</ul>
</p>
</column>
<column name="other_config" key="userspace-tso-enable"
type='{"type": "boolean"}'>
<p>
Set this value to <code>true</code> to enable userspace support for
TCP Segmentation Offloading (TSO). When it is enabled, the interfaces
can provide an oversized TCP segment to the datapath and the datapath
will offload the TCP segmentation and checksum calculation to the
interfaces when necessary.
</p>
<p>
The default value is <code>false</code>. Changing this value requires
restarting the daemon.
</p>
<p>
The feature only works if Open vSwitch is built with DPDK support.
</p>
<p>
The feature is considered experimental.
</p>
</column>
<column name="other_config" key="explicit-sampled-drops"
type='{"type": "boolean"}'>
<p>
When a flow is installed in the datapath with an empty action list,
it indicates an implicit "drop" action. Most datapaths report this
for event for statistics and monitoring (in datapath-specific ways).
</p>
<p>
However, if any of the per-bridge or per-flow sampling functionalities
are enabled (e.g: sFlow, IPFIX, local sampling), the action list might
not be empty, but contain an action to implement such functionality.
This makes the datapaths not report the packet drop.
</p>
<p>
This knob makes Open vSwitch detect when the last datapath action
comes from these sampling features and add an explicit drop action at
the end to keep drop statistics accurate.
</p>
<p>
The default value is <code>false</code>.
</p>
</column>
</group>
<group title="Status">
<column name="next_cfg">
Sequence number for client to increment. When a client modifies
any part of the database configuration and wishes to wait for
Open vSwitch to finish applying the changes, it may increment
this sequence number.
</column>
<column name="cur_cfg">
Sequence number that Open vSwitch sets to the current value of
<ref column="next_cfg"/> after it finishes applying a set of
configuration changes.
</column>
<column name="dpdk_initialized">
True if <ref column="other_config" key="dpdk-init"/> is set to
true and the DPDK library is successfully initialized.
</column>
<group title="Statistics">
<p>
The <code>statistics</code> column contains key-value pairs that
report statistics about a system running an Open vSwitch. These are
updated periodically (currently, every 5 seconds). Key-value pairs
that cannot be determined or that do not apply to a platform are
omitted.
</p>
<column name="other_config" key="enable-statistics"
type='{"type": "boolean"}'>
Statistics are disabled by default to avoid overhead in the common
case when statistics gathering is not useful. Set this value to
<code>true</code> to enable populating the <ref column="statistics"/>
column or to <code>false</code> to explicitly disable it.
</column>
<column name="statistics" key="cpu"
type='{"type": "integer", "minInteger": 1}'>
<p>
Number of CPU processors, threads, or cores currently online and
available to the operating system on which Open vSwitch is running,
as an integer. This may be less than the number installed, if some
are not online or if they are not available to the operating
system.
</p>
<p>
Open vSwitch userspace processes are not multithreaded, but the
Linux kernel-based datapath is.
</p>
</column>
<column name="statistics" key="load_average">
A comma-separated list of three floating-point numbers,
representing the system load average over the last 1, 5, and 15
minutes, respectively.
</column>
<column name="statistics" key="memory">
<p>
A comma-separated list of integers, each of which represents a
quantity of memory in kilobytes that describes the operating
system on which Open vSwitch is running. In respective order,
these values are:
</p>
<ol>
<li>Total amount of RAM allocated to the OS.</li>
<li>RAM allocated to the OS that is in use.</li>
<li>RAM that can be flushed out to disk or otherwise discarded
if that space is needed for another purpose. This number is
necessarily less than or equal to the previous value.</li>
<li>Total disk space allocated for swap.</li>
<li>Swap space currently in use.</li>
</ol>
<p>
On Linux, all five values can be determined and are included. On
other operating systems, only the first two values can be
determined, so the list will only have two values.
</p>
</column>
<column name="statistics" key="process_NAME">
<p>
One such key-value pair, with <code>NAME</code> replaced by
a process name, will exist for each running Open vSwitch
daemon process, with <var>name</var> replaced by the
daemon's name (e.g. <code>process_ovs-vswitchd</code>). The
value is a comma-separated list of integers. The integers
represent the following, with memory measured in kilobytes
and durations in milliseconds:
</p>
<ol>
<li>The process's virtual memory size.</li>
<li>The process's resident set size.</li>
<li>The amount of user and system CPU time consumed by the
process.</li>
<li>The number of times that the process has crashed and been
automatically restarted by the monitor.</li>
<li>The duration since the process was started.</li>
<li>The duration for which the process has been running.</li>
</ol>