-
Notifications
You must be signed in to change notification settings - Fork 20
/
README
1262 lines (1075 loc) · 58.5 KB
/
README
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
Introduction
============
Accelerated IO SW library (XLIO) boosts the performance of applications written over standard socket API such as
web serving, reverse proxying, caching, load balancing, media streaming, and more. Reduction of latency, increasing
throughput and effective CPU utilization is achieved by full network stack bypass and direct access to
accelerated network hardware.
XLIO dynamically links with these applications at run-time, redirect standard socket API calls allowing them to be
be accelerated without modification.
Build library from source
========================
Prerequisites:
1. rdma-core upstream kernel and userspace verbs libraries (libibverbs, libmlx4, libmlx5, librdmacm)
2. Autoconf, Automake, libtool, unzip, patch, libnl-devel (netlink 1 or 3)
Build:
1. ./autogen.sh
2. ./configure --prefix=/usr
3. make
4. sudo make install
Install library from rpm or debian
=================================
Installing:
Install the package as any other rpm or debian package [rpm -i libxlio.X.Y.Z-R.rpm].
The installation copies the XLIO library to: /usr/lib[64]/libxlio.so
The XLIO monitoring utility is installed at: /usr/bin/xlio_stats
The XLIO extra socket API is located at: /usr/include/mellanox/xlio_extra.h
Upgrading:
Use rpm update procedure: # rpm -U libxlio.X.Y.Z-R.rpm
You can upgrade by uninstalling (rpm -e) the previously installed package
before starting to install the new library rpm.
Uninstalling:
When uninstalling remember to uninstall (rpm -e) the package before you
uninstall ofed.
Running:
Set the environment variable LD_PRELOAD to libxlio.so and run your application.
Example: # LD_PRELOAD=libxlio.so iperf -uc 224.22.22.22 -t 5
Configuration Values
====================
On default startup the XLIO library logs to stderr the version, the modified
configuration parameters being used and their values.
Please notice that except XLIO_TRACELEVEL, library logs just those parameters whose value != default.
Example:
XLIO INFO : ---------------------------------------------------------------------------
XLIO INFO : XLIO_VERSION: 1.0.0-0 Development Snapshot built on May 26 2021 17:00:30
XLIO INFO : Git: 46d203af1d322799c8de5789ba4fe0955f8d9942
XLIO INFO : Cmd Line: uname -r
XLIO INFO : Current Time: Wed May 26 17:02:52 2021
XLIO INFO : Pid: 31535
XLIO INFO : OFED Version: MLNX_OFED_LINUX-5.2-0.4.8.0:
XLIO DEBUG : System: 4.18.0-80.el8.x86_64
XLIO INFO : Architecture: x86_64
XLIO INFO : Node: r-aa-zorro006
XLIO INFO : ---------------------------------------------------------------------------
XLIO INFO : Log Level DEBUG [XLIO_TRACELEVEL]
XLIO DETAILS: Log Details 0 [XLIO_LOG_DETAILS]
XLIO DETAILS: Log Colors Enabled [XLIO_LOG_COLORS]
XLIO DETAILS: Log File [XLIO_LOG_FILE]
XLIO DETAILS: Stats File [XLIO_STATS_FILE]
XLIO DETAILS: Stats shared memory directory /tmp/xlio [XLIO_STATS_SHMEM_DIR]
XLIO DETAILS: SERVICE output directory /tmp/xlio [XLIO_SERVICE_NOTIFY_DIR]
XLIO DETAILS: Stats FD Num (max) 100 [XLIO_STATS_FD_NUM]
XLIO DETAILS: Conf File /etc/libxlio.conf [XLIO_CONFIG_FILE]
XLIO DETAILS: Application ID XLIO_DEFAULT_APPLICATION_ID [XLIO_APPLICATION_ID]
XLIO DETAILS: Polling CPU idle usage Disabled [XLIO_CPU_USAGE_STATS]
XLIO DETAILS: SigIntr Ctrl-C Handle Enabled [XLIO_HANDLE_SIGINTR]
XLIO DETAILS: SegFault Backtrace Disabled [XLIO_HANDLE_SIGSEGV]
XLIO DETAILS: Print a report Disabled [XLIO_PRINT_REPORT]
XLIO DETAILS: Ring allocation logic TX 0 (Ring per interface) [XLIO_RING_ALLOCATION_LOGIC_TX]
XLIO DETAILS: Ring allocation logic RX 0 (Ring per interface) [XLIO_RING_ALLOCATION_LOGIC_RX]
XLIO INFO : Ring migration ratio TX -1 [XLIO_RING_MIGRATION_RATIO_TX]
XLIO DETAILS: Ring migration ratio RX -1 [XLIO_RING_MIGRATION_RATIO_RX]
XLIO DETAILS: Ring limit per interface 0 (no limit) [XLIO_RING_LIMIT_PER_INTERFACE]
XLIO DETAILS: Ring On Device Memory TX 0 [XLIO_RING_DEV_MEM_TX]
XLIO DETAILS: TCP max syn rate 0 (no limit) [XLIO_TCP_MAX_SYN_RATE]
XLIO DETAILS: Zerocopy Mem Bufs 200000 [XLIO_ZC_BUFS]
XLIO DETAILS: Zerocopy Cache Threshold 10 GB [XLIO_ZC_CACHE_THRESHOLD]
XLIO DETAILS: Tx Mem Bufs 200000 [XLIO_TX_BUFS]
XLIO DETAILS: Tx Mem Buf size 0 [XLIO_TX_BUF_SIZE]
XLIO DETAILS: ZC TX size 32 KB [XLIO_ZC_TX_SIZE]
XLIO DETAILS: Tx QP WRE 32768 [XLIO_TX_WRE]
XLIO DETAILS: Tx QP WRE Batching 64 [XLIO_TX_WRE_BATCHING]
XLIO DETAILS: Tx Max QP INLINE 204 [XLIO_TX_MAX_INLINE]
XLIO DETAILS: Tx MC Loopback Enabled [XLIO_TX_MC_LOOPBACK]
XLIO DETAILS: Tx non-blocked eagains Disabled [XLIO_TX_NONBLOCKED_EAGAINS]
XLIO DETAILS: Tx Prefetch Bytes 256 [XLIO_TX_PREFETCH_BYTES]
XLIO DETAILS: Tx Bufs Batch TCP 16 [XLIO_TX_BUFS_BATCH_TCP]
XLIO DETAILS: Tx Segs Batch TCP 64 [XLIO_TX_SEGS_BATCH_TCP]
XLIO DETAILS: TCP Send Buffer size 1 MB [XLIO_TCP_SEND_BUFFER_SIZE]
XLIO DETAILS: Rx Mem Bufs 200000 [XLIO_RX_BUFS]
XLIO DETAILS: Rx Mem Buf size 0 [XLIO_RX_BUF_SIZE]
XLIO DETAILS: Rx QP WRE 16000 [XLIO_RX_WRE]
XLIO DETAILS: Rx QP WRE Batching 1024 [XLIO_RX_WRE_BATCHING]
XLIO DETAILS: Rx Byte Min Limit 65536 [XLIO_RX_BYTES_MIN]
XLIO DETAILS: Rx Poll Loops 100000 [XLIO_RX_POLL]
XLIO DETAILS: Rx Poll Init Loops 0 [XLIO_RX_POLL_INIT]
XLIO DETAILS: Rx UDP Poll OS Ratio 100 [XLIO_RX_UDP_POLL_OS_RATIO]
XLIO DETAILS: HW TS Conversion 3 [XLIO_HW_TS_CONVERSION]
XLIO DETAILS: Rx Poll Yield Disabled [XLIO_RX_POLL_YIELD]
XLIO DETAILS: Rx Prefetch Bytes 256 [XLIO_RX_PREFETCH_BYTES]
XLIO DETAILS: Rx Prefetch Bytes Before Poll 0 [XLIO_RX_PREFETCH_BYTES_BEFORE_POLL]
XLIO DETAILS: Rx CQ Drain Rate Disabled [XLIO_RX_CQ_DRAIN_RATE_NSEC]
XLIO DETAILS: GRO max streams 32 [XLIO_GRO_STREAMS_MAX]
XLIO DETAILS: TCP 3T rules Disabled [XLIO_TCP_3T_RULES]
XLIO DETAILS: UDP 3T rules Enabled [XLIO_UDP_3T_RULES]
XLIO DETAILS: ETH MC L2 only rules Disabled [XLIO_ETH_MC_L2_ONLY_RULES]
XLIO DETAILS: Force Flowtag for MC Disabled [XLIO_MC_FORCE_FLOWTAG]
XLIO DETAILS: Select Poll (usec) 100000 [XLIO_SELECT_POLL]
XLIO DETAILS: Select Poll OS Force Disabled [XLIO_SELECT_POLL_OS_FORCE]
XLIO DETAILS: Select Poll OS Ratio 10 [XLIO_SELECT_POLL_OS_RATIO]
XLIO DETAILS: Select Skip OS 4 [XLIO_SELECT_SKIP_OS]
XLIO DETAILS: CQ Drain Interval (msec) 10 [XLIO_PROGRESS_ENGINE_INTERVAL]
XLIO DETAILS: CQ Drain WCE (max) 10000 [XLIO_PROGRESS_ENGINE_WCE_MAX]
XLIO DETAILS: CQ Interrupts Moderation Enabled [XLIO_CQ_MODERATION_ENABLE]
XLIO DETAILS: CQ Moderation Count 48 [XLIO_CQ_MODERATION_COUNT]
XLIO DETAILS: CQ Moderation Period (usec) 50 [XLIO_CQ_MODERATION_PERIOD_USEC]
XLIO DETAILS: CQ AIM Max Count 560 [XLIO_CQ_AIM_MAX_COUNT]
XLIO DETAILS: CQ AIM Max Period (usec) 250 [XLIO_CQ_AIM_MAX_PERIOD_USEC]
XLIO DETAILS: CQ AIM Interval (msec) 250 [XLIO_CQ_AIM_INTERVAL_MSEC]
XLIO DETAILS: CQ AIM Interrupts Rate (per sec) 5000 [XLIO_CQ_AIM_INTERRUPTS_RATE_PER_SEC]
XLIO DETAILS: CQ Poll Batch (max) 16 [XLIO_CQ_POLL_BATCH_MAX]
XLIO DETAILS: CQ Keeps QP Full Enabled [XLIO_CQ_KEEP_QP_FULL]
XLIO DETAILS: QP Compensation Level 256 [XLIO_QP_COMPENSATION_LEVEL]
XLIO DETAILS: Offloaded Sockets Enabled [XLIO_OFFLOADED_SOCKETS]
XLIO DETAILS: Timer Resolution (msec) 10 [XLIO_TIMER_RESOLUTION_MSEC]
XLIO DETAILS: TCP Timer Resolution (msec) 100 [XLIO_TCP_TIMER_RESOLUTION_MSEC]
XLIO DETAILS: TCP control thread Disabled [XLIO_TCP_CTL_THREAD]
XLIO DETAILS: TCP timestamp option 0 [XLIO_TCP_TIMESTAMP_OPTION]
XLIO DETAILS: TCP nodelay 0 [XLIO_TCP_NODELAY]
XLIO DETAILS: TCP quickack 0 [XLIO_TCP_QUICKACK]
XLIO DETAILS: Exception handling mode -1(just log debug message) [XLIO_EXCEPTION_HANDLING]
XLIO DETAILS: Avoid sys-calls on tcp fd Disabled [XLIO_AVOID_SYS_CALLS_ON_TCP_FD]
XLIO DETAILS: Allow privileged sock opt Enabled [XLIO_ALLOW_PRIVILEGED_SOCK_OPT]
XLIO DETAILS: Delay after join (msec) 0 [XLIO_WAIT_AFTER_JOIN_MSEC]
XLIO DETAILS: Internal Thread Affinity -1 [XLIO_INTERNAL_THREAD_AFFINITY]
XLIO DETAILS: Internal Thread Cpuset [XLIO_INTERNAL_THREAD_CPUSET]
XLIO DETAILS: Internal Thread Arm CQ Disabled [XLIO_INTERNAL_THREAD_ARM_CQ]
XLIO DETAILS: Thread mode Multi spin lock [XLIO_THREAD_MODE]
XLIO DETAILS: Buffer batching mode 1 (Batch and reclaim buffers) [XLIO_BUFFER_BATCHING_MODE]
XLIO DETAILS: Mem Allocation type Huge pages [XLIO_MEM_ALLOC_TYPE]
XLIO DETAILS: Memory limit 2 GB [XLIO_MEMORY_LIMIT]
XLIO DETAILS: Memory limit (user allocator) 0 [XLIO_MEMORY_LIMIT_USER]
XLIO DETAILS: Hugepage size 0 [XLIO_HUGEPAGE_SIZE]
XLIO DETAILS: Num of UC ARPs 3 [XLIO_NEIGH_UC_ARP_QUATA]
XLIO DETAILS: UC ARP delay (msec) 10000 [XLIO_NEIGH_UC_ARP_DELAY_MSEC]
XLIO DETAILS: Num of neigh restart retries 1 [XLIO_NEIGH_NUM_ERR_RETRIES]
XLIO DETAILS: SocketXtreme mode Disabled [XLIO_SOCKETXTREME]
XLIO DETAILS: TSO support auto [XLIO_TSO]
XLIO DETAILS: UTLS RX support Disabled [XLIO_UTLS_RX]
XLIO DETAILS: UTLS TX support Enabled [XLIO_UTLS_TX]
XLIO DETAILS: LRO support auto [XLIO_LRO]
XLIO DETAILS: BF (Blue Flame) Enabled [XLIO_BF]
XLIO DETAILS: Src port stirde 2 [XLIO_SRC_PORT_STRIDE]
XLIO DETAILS: Size of UDP socket pool 0 [XLIO_NGINX_UDP_POOL_SIZE]
XLIO DETAILS: Number of Nginx workers 0 [XLIO_NGINX_WORKERS_NUM]
XLIO DETAILS: fork() support Enabled [XLIO_FORK]
XLIO DETAILS: close on dup2() Enabled [XLIO_CLOSE_ON_DUP2]
XLIO DETAILS: MTU 0 (follow actual MTU) [XLIO_MTU]
XLIO DETAILS: MSS 0 (follow XLIO_MTU) [XLIO_MSS]
XLIO DETAILS: TCP CC Algorithm 0 (LWIP) [XLIO_TCP_CC_ALGO]
XLIO DETAILS: TCP abort on close Disabled [XLIO_TCP_ABORT_ON_CLOSE]
XLIO DETAILS: Polling Rx on Tx TCP Disabled [XLIO_RX_POLL_ON_TX_TCP]
XLIO DETAILS: Trig dummy send getsockname() Disabled [XLIO_TRIGGER_DUMMY_SEND_GETSOCKNAME]
XLIO DETAILS: Skip CQ polling in rx Disabled [XLIO_SKIP_POLL_IN_RX]
XLIO DETAILS: Lock Type Spin [XLIO_MULTILOCK]
XLIO INFO : ---------------------------------------------------------------------------
XLIO_TRACELEVEL
Logging level the library will be using. Default is info
Example: # XLIO_TRACELEVEL=debug
none
Print no log at all
panic
Panic level logging, this would generally cause fatal behavior and an exception
will be thrown by the library. Typically, this is caused by memory
allocation problems. This level is rarely used.
error
Runtime ERRORs in the library.
Typically, these can provide insight for the developer of wrong internal
logic like: Errors from underlying OS or Infiniband verbs calls. internal
double mapping/unmapping of objects.
warn
Runtime warning that do not disrupt the workflow of the application but
might warn of a problem in the setup or the overall setup configuration.
Typically, these can be address resolution failure (due to wrong routing
setup configuration), corrupted ip packets in the receive path or
unsupported functions requested by the user application
info
General information passed to the user of the application. Bring up
configuration logging or some general info to help the user better
use the library
details
Complete XLIO's configuration information.
Very high level insight of some of the critical decisions done in library.
debug
High level insight to the operations done in the library. All socket API calls
are logged and internal high level control channels log there activity.
fine
Low level run time logging of activity. This logging level includes basic
Tx and Rx logging in the fast path and it will lower application
performance. It is recommended to use this level with XLIO_LOG_FILE parameter.
finer
Very low level run time logging of activity!
This logging level will DRASTICALLY lower application performance.
It is recommended to use this level with XLIO_LOG_FILE parameter.
all
today this level is identical to finer
XLIO_LOG_DETAILS
Add details on each log line.
0 = Basic log line
1 = ThreadId
2 = ProcessId + ThreadId
3 = Time + ProcessId + ThreadId [Time is in milli-seconds from start of process]
Default value is 0
XLIO_LOG_COLORS
Use color scheme when logging. Red for errors, purple for warnings and dim for
low level debugs. XLIO_LOG_COLORS is automatically disabled when logging is direct
to a non terminal device (e.g. XLIO_LOG_FILE is configured).
Default value is 1 (Enabled)
XLIO_LOG_FILE
Redirect all logging to a specific user defined file.
This is very useful when raising the XLIO_TRACELEVEL
Library will replace a single '%d' appearing in the log file name with the pid of
the process loaded with XLIO. This can help in running multiple instances of XLIO
each with it's own log file name.
Example: XLIO_LOG_FILE=/tmp/xlio_log.txt
XLIO_SPEC
XLIO predefined specification profiles.
latency
Optimized for use cases that are keen on latency.
Example: XLIO_SPEC=latency
ultra-latency
Optimized for use cases that are keen on latency even more. This mode uses singe threaded model, avoid OS polling and progress engine.
Example: XLIO_SPEC=ultra-latency
multi_ring_latency
Optimized for use cases that are keen on latency where two applications communicate using send-only and receive-only TCP sockets
Example: XLIO_SPEC=multi_ring_latency
nginx
Optimized for nginx. This profile must be used to offload nginx. This profile is turned indirectly by setting:
XLIO_NGINX_WORKERS_NUM=<N> where N is the number of nginx workers.
nginx_dpu
Optimized for nginx running inside NVIDIA DPU.
Example: XLIO_SPEC=nginx_dpu XLIO_NGINX_WORKERS_NUM=<N>
nvme_bf2
Optimized for SPDK solution over NVIDIA DPU BF2
Example: XLIO_SPEC=nvme_bf2
XLIO_STATS_FILE
Redirect socket statistics to a specific user defined file.
Library will dump each socket's statistics into a file when closing the socket.
Example: XLIO_STATS_FILE=/tmp/stats
XLIO_STATS_SHMEM_DIR
Set the directory path for the library to create the shared memory files for xlio_stats.
No files will be created when setting this value to empty string "".
Default value is /tmp/
XLIO_SERVICE_NOTIFY_DIR
Set the directory path for XLIO to write files used by xliod.
Default value is /tmp/xlio/
Note: when used xliod must be run with --notify-dir directing the same folder.
XLIO_STATS_FD_NUM
Max number of sockets monitored by XLIO statistic mechanism.
Value range is 0 to 1024.
Default value is 100
XLIO_CONFIG_FILE
Sets the full path to the XLIO configuration file.
Default values is: /etc/libxlio.conf
Example: XLIO_CONFIG_FILE=/tmp/libxlio.conf
XLIO_APPLICATION_ID
Specify a group of rules from libxlio.conf for XLIO to apply.
Example: 'XLIO_APPLICATION_ID=iperf_server'.
Default is "XLIO_DEFAULT_APPLICATION_ID" (match only the '*' group rule)
XLIO_CPU_USAGE_STATS
Calculate XLIO CPU usage during polling HW loops.
This information is available through XLIO stats utility.
Default value is 0 (Disabled)
XLIO_HANDLE_SIGINTR
When Enabled, the library handler will be called when interrupt signal is sent to the process.
XLIO will also call to application's handler if exist.
Value range is 0 to 1
Default value is 1 (Enabled)
XLIO_HANDLE_SIGSEGV
When Enabled, print backtrace if segmentation fault happens.
Value range is 0 to 1
Default value is 0 (Disabled)
XLIO_ZC_BUFS
Number of global zerocopy data buffer elements allocation.
Default value is 200000
XLIO_ZC_CACHE_THRESHOLD
Memory limit for the mapping cache which is use by sendfile().
Default value is 10GB
XLIO_TX_BUFS
Number of global Tx data buffer elements allocation.
Default value is 200000
XLIO_TX_BUF_SIZE
Size of Tx data buffer elements allocation.
Can not be less then MTU (Maximum Transfer Unit) and greater than 0xFF00.
Default value is calculated basing on XLIO_MTU and XLIO_MSS.
XLIO_TX_WRE
Number of Work Request Elements allocated in all transmit QP's.
The number of QP's can change according to the number of network offloaded
interfaces.
Default value is 32768
XLIO_TX_WRE_BATCHING
The number of Tx Work Request Elements used until a completion signal is requested.
Tuning this parameter allows a better control of the jitter encountered from the
Tx CQE handling. Setting a high batching value results in high PPS and lower
average latency. Setting a low batching value results in lower latency std-dev.
Value range is 1-64
Default value is 64
XLIO_TX_MAX_INLINE
Max send inline data set for QP.
Data copied into the INLINE space is at least 32 bytes of headers and
the rest can be user datagram payload.
XLIO_TX_MAX_INLINE=0 disables INLINEing on the Tx transmit path.
In older releases this parameter was called: XLIO_MAX_INLINE
Default XLIO_TX_MAX_INLINE is 204
XLIO_TX_MC_LOOPBACK
This parameter sets the initial value used by XLIO internally to controls the
multicast loopback packets behavior during transmission.
An application that calls setsockopt() with IP_MULTICAST_LOOP will run over
the initial value set by this parameter.
Read more in 'Multicast loopback behavior' in notes section below
Default value is 1 (Enabled)
XLIO_TX_NONBLOCKED_EAGAINS
Return value 'OK' on all send operation done on a non-blocked UDP sockets. This
is the OS default behavior. The datagram sent is silently dropped inside XLIO
or the network stack.
When set Enabled (set to 1), the library will return with error EAGAIN if it was unable
accomplish the send operation and the datagram was dropped.
In both cases a dropped Tx statistical counter is incremented.
Default value is 0 (Disabled)
XLIO_TX_PREFETCH_BYTES
Accelerate offloaded send operation by optimizing cache. Different values
give optimized send rate on different machines. We recommend you tune this
for your specific hardware.
Value range is 0 to MTU size
Disable with a value of 0
Default value is 256 bytes
XLIO_TX_BUFS_BATCH_TCP
The number of buffers fetched from the ring pool by a socket at once.
Higher number for less ring accesses to fetch buffers.
Lower number for less memory consumption by a socket.
Min value is 1
Default value is 16
XLIO_TX_SEGS_BATCH_TCP
The number of TCP segments fetched from the segments pool by a socket at once.
Min value is 1
Default value is 64
XLIO_TX_SEGS_RING_BATCH_TCP
The number of TCP segments fetched from the segments pool by a ring at once.
Min value is 1
Default value is 1024
XLIO_RING_ALLOCATION_LOGIC_TX
XLIO_RING_ALLOCATION_LOGIC_RX
Ring allocation logic is used to separate the traffic to different rings.
By default all sockets use the same ring for both RX and TX over the same interface.
Even when specifying the logic to be per socket or thread, for different interfaces
we use different rings. This is useful when tuning for a multi-threaded application
and aiming for HW resource separation.
Warning: This feature might hurt performance for applications which their main
processing loop is based in select() and/or poll().
The logic options are:
0 - Ring per interface
1 - Ring per ip address (using ip address)
10 - Ring per socket (using socket fd as separator)
20 - Ring per thread (using the id of the thread in which the socket was created)
30 - Ring per core (using cpu id)
31 - Ring per core - attach threads : attach each thread to a cpu core
Default value is 0
XLIO_RING_MIGRATION_RATIO_TX
XLIO_RING_MIGRATION_RATIO_RX
Ring migration ratio is used with the "ring per thread" logic in order to decide when
it is beneficial to replace the socket's ring with the ring allocated for the current thread.
Each XLIO_RING_MIGRATION_RATIO iterations (of accessing the ring) we check the current
thread ID and see if our ring is matching the current thread.
If not, we consider ring migration. If we keep accessing the ring from the same thread for some
iterations, we migrate the socket to this thread ring.
Use a value of -1 in order to disable migration.
Default value is -1
XLIO_RING_LIMIT_PER_INTERFACE
Limit the number of rings that can be allocated per interface.
For example, in ring allocation per socket logic, if the number of sockets using
the same interface is larger than the limit, then several sockets will be sharing the
same ring.
[Note:XLIO_RX_BUFS might need to be adjusted in order to have enough buffers for all
rings in the system. Each ring consume XLIO_RX_WRE buffers.]
Use a value of 0 for unlimited number of rings.
Default value is 0 (no limit)
XLIO_RING_DEV_MEM_TX
XLIO can use the On Device Memory to store the egress packet if it does not fit into
the BF inline buffer. This improves application egress latency by reducing PCI transactions.
Using XLIO_RING_DEV_MEM_TX, the user can set the amount of On Device Memory buffer allocated
for each TX ring.
The total size of the On Device Memory is limited to 256k for a single port HCA and to
128k for dual port HCA.
Default value is 0
XLIO_RX_BUFS
Number Rx data buffer elements allocation for the processes. These data buffers
may be used by all QPs on all HCAs
Default value is 200000
XLIO_RX_BUF_SIZE
Size of Rx data buffer elements allocation.
Can not be less then MTU (Maximum Transfer Unit) and greater than 0xFF00.
Default value is calculated basing on maximum MTU.
XLIO_RX_WRE
Number of Work Request Elements allocated in all receive QP's.
Default value is 16000
XLIO_RX_WRE_BATCHING
Number of Work Request Elements and RX buffers to batch before recycling.
Batching decrease latency mean, but might increase latency STD.
Value range is 1-1024.
Default value is 1024
XLIO_RX_BYTES_MIN
Minimum value in bytes that will be used per socket by XLIO when applications
call to setsockopt(SO_RCVBUF). If application tries to set a smaller value then
configured in XLIO_RX_BYTES_MIN, XLIO will force this minimum limit value on the
socket.XLIO offloaded socket's receive max limit of ready bytes count. If the
application does not drain a sockets and the byte limit is reached, new
received datagrams will be dropped.
Monitor of the applications socket's usage of current, max and dropped bytes
and packet counters can be done with xlio_stats.
Default value is 65536
XLIO_RX_POLL
The number of times to poll on Rx path for ready packets before going to sleep
(wait for interrupt in blocked mode) or return -1 (in non-blocked mode).
This Rx polling is done when the application is working with direct blocked
calls to read(), recv(), recvfrom() & recvmsg().
When Rx path has successful poll hits (see performance monitoring) the latency
is improved dramatically. This comes on account of CPU utilization.
Value range is -1, 0 to 100,000,000
Where value of -1 is used for infinite polling
Default value is 100000
XLIO_TSO
With Segmentation Offload, or TCP Large Send, TCP can pass a buffer to be
transmitted that is bigger than the maximum transmission unit (MTU) supported
by the medium. Intelligent adapters implement large sends by using the
prototype TCP and IP headers of the incoming send buffer to carve out segments
of required size. Copying the prototype header and options, then calculating
the sequence number and checksum fields creates TCP segment headers.
Expected benefits: Throughput increase and CPU unload.
Default value: auto
auto
Depends on ethtool setting and adapter ability.
See ethtool -k <eth0> | grep tcp-segmentation-offload
on
Enabled in case adapter supports it
off
Disabled
XLIO_UTLS_RX
UTLS provides TLS data path acceleration. This is achieved by offloading Linux
kTLS API. Refer to your TLS library documentation for kTLS support information.
When this parameter is enabled, XLIO offloads TLS RX path if possible.
Default value is 0 (Disabled)
XLIO_UTLS_TX
When this parameter is enabled, XLIO offloads TLS TX path through kTLS API if
possible. See XLIO_UTLS_RX for details.
Default value is 1 (Enabled)
XLIO_LRO
Large receive offload (LRO) is a technique for increasing inbound throughput of
high-bandwidth network connections by reducing central processing unit (CPU)
overhead. It works by aggregating multiple incoming packets from a single stream
into a larger buffer before they are passed higher up the networking stack,
thus reducing the number of packets that must be processed.
Default value: auto
auto
Depends on ethtool setting and adapter ability.
See ethtool -k <eth0> | grep large-receive-offload
on
Enabled in case adapter supports it
off
Disabled
XLIO_RX_POLL_INIT
XLIO maps all UDP sockets as potential offloaded capable. Only after the
ADD_MEMBERSHIP does the offload start to work and the CQ polling kicks in XLIO.
This parameter control the polling count during this transition phase where the
socket is a UDP unicast socket and no multicast addresses where added to it.
Once the first ADD_MEMBERSHIP is called the above XLIO_RX_POLL takes effect.
Value range is similar to the above XLIO_RX_POLL
Default value is 0
XLIO_RX_UDP_POLL_OS_RATIO
The above parameter will define the ratio between XLIO CQ poll and OS FD poll.
This will result in a single poll of the not-offloaded sockets every
XLIO_RX_UDP_POLL_OS_RATIO offloaded socket (CQ) polls. No matter if the CQ poll
was a hit or miss. No matter if the socket is blocking or non-blocking.
When disabled, only offloaded sockets are polled.
This parameter replaces the two old parameters: XLIO_RX_POLL_OS_RATIO and
XLIO_RX_SKIP_OS
Disable with 0
Default value is 100
XLIO_NGINX_UDP_POOL_SIZE
The above parameter defines the size of UDP socket pool for NGINX.
For any value different that 0 - close() socket will not destroy the socket, but will
place it in a pool for next socket UDP creation.
Disable with 0
Default value is 0
XLIO_HW_TS_CONVERSION
The above parameter defines the time stamp conversion method.
The value of XLIO_HW_TS_CONVERSION is determined by all devices - i.e if the hardware of
one device does not support the conversion, then it will be disabled for the other devices.
Options = [0,1,2,3,4,5]:
0 = Disabled
1 = Raw-HW time - only convert the time stamp to seconds.nano_seconds time
units (or disable if hardware does not supports).
2 = Best possible - Raw-HW or system time - Sync to system time, then Raw hardware time -
disable if none of them are supported by hardware.
3 = Sync to system time - convert the time stamp to seconds.nano_seconds time units.
comparable to receive software timestamp.
disable if hardware does not supports.
4 = PTP Sync - convert the time stamp to seconds.nano_seconds time units.
in case it is not supported - will apply option 3 (or disable
if hardware does not supports).
5 = RTC Sync - convert the time stamp to seconds.nano_seconds time units.
in case it is not supported - will apply option 3 (or disable
if hardware does not supports).
Default value: 3
XLIO_RX_POLL_YIELD
When an application is running with multiple threads, on a limited number of
cores, there is a need for each thread polling inside the XLIO (read, readv,
recv & recvfrom) to yield the CPU to other polling thread so not to starve
them from processing incoming packets.
Default value is 0 (Disabled)
XLIO_RX_PREFETCH_BYTES
Size of receive buffer to prefetch into cache while processing ingress packets.
The default is a single cache line of 64 bytes which should be at least 32
bytes to cover the IP+UDP headers and a small part of the users payload.
Increasing this can help improve performance for larger user payload sizes.
Value range is 32 bytes to MTU size
Default value is 256 bytes
XLIO_RX_PREFETCH_BYTES_BEFORE_POLL
Same as the above XLIO_RX_PREFETCH_BYTES, only that prefetch is done before
actually getting the packets.
This benefit low pps traffic latency.
Disable with 0.
Default value is 0
XLIO_RX_CQ_DRAIN_RATE_NSEC
Socket's receive path CQ drain logic rate control.
When disabled (Default) the socket's receive path will first try to return a
ready packet from the socket's receive ready packet queue. Only if that queue
is empty will the socket check the CQ for ready completions for processing.
When enabled, even if the socket's receive ready packet queue is not empty it
will still check the CQ for ready completions for processing. This CQ polling
rate is controls in nano-second resolution to prevent CPU consumption because
of over CQ polling. This will enable a more 'real time' monitoring of the
sockets ready packet queue.
Recommended value is 100-5000 (nsec)
Default value is 0 (Disabled)
XLIO_TCP_ABORT_ON_CLOSE
This parameter controls how XLIO performs socket close operation. If enabled,
XLIO sends RST segment and discards TCP state for the socket. Notice, in this
scenario pending data segments may be unsent.
If disabled, XLIO sends pending data segments and then FIN segment.
Default: 0 (Disabled)
XLIO_RX_POLL_ON_TX_TCP
This parameter enables/disables TCP RX polling during TCP TX operation for faster
TCP ACK reception.
Default: 0 (Disabled)
XLIO_TRIGGER_DUMMY_SEND_GETSOCKNAME
This parameter triggers dummy packet send from getsockname(), this
will warm up the caches.
For more information regarding dummy send, see XLIO user manual document.
Default: 0 (Disabled)
XLIO_SKIP_POLL_IN_RX
Allow TCP socket to skip CQ polling in rx socket call.
0 - Disabled
1 - Skip always
2 - Skip only if this socket was added to epoll before
Default: 0 (Disabled)
XLIO_GRO_STREAMS_MAX
Control the number of TCP streams to perform GRO (generic receive offload) simultaneously.
Disable GRO with a value of 0.
Default value is 32
XLIO_TCP_3T_RULES
Use only 3 tuple rules for incoming TCP connections, instead of using 5 tuple
rules. This can improve performance for a server with listen socket which
accepts many connections.
Outgoing TCP connections that are established with connect() syscall aren't
affected by this option.
Default: 0 (Disabled)
XLIO_UDP_3T_RULES
This parameter can be relevant in case application uses connected udp sockets.
3 tuple rules are used in hardware flow steering rule when the parameter is enabled and
5 tuple flow steering rule when it is disabled.
Enabling this option can reduce hardware flow steering resources.
But when it is disabled application might see benefits in latency and cycles per packet.
Default: 1 (Enabled)
XLIO_ETH_MC_L2_ONLY_RULES
Use only L2 rules for Ethernet Multicast.
All loopback traffic will be handled by XLIO instead of OS.
XLIO_MC_FORCE_FLOWTAG
Forces the use of flow tag acceleration for multicast flows where setsockopt(SO_REUSEADDR) is
set.
Applicable if there are no other sockets opened for the same flow in system.
XLIO_STRQ
Enable/Disable Striding Receive Queues.
Each WQE in a Striding RQ may receive several packets.
Thus, the WQE buffer size is controlled by XLIO_STRQ_NUM_STRIDES x XLIO_STRQ_STRIDE_SIZE_BYTES
Values: on, off
Default: on (Enabled)
XLIO_STRQ_NUM_STRIDES
The number of strides in each receive WQE. Must be power of two and in range [512 - 65536]
Default: 16384
XLIO_STRQ_STRIDE_SIZE_BYTES
The size, in bytes, of each stride in a receive WQE. Must be power of two and in range [64 - 8192]
Default: 512
XLIO_STRQ_STRIDES_NUM_BUFS
The initial number of stride objects in the strides pool. Each received packet is represented by a stride object.
Each stride object points to a portion of a buffer allocated for a receive WQE.
When the pool runs out of stride objects it expands by another portion of this value.
Default: 262144
XLIO_STRQ_STRIDES_COMPENSATION_LEVEL
Number of spare stride objects a CQ holds to allow faster allocation of a stride object when a packet arrives.
Default: 16384
XLIO_SELECT_POLL
The duration in micro-seconds (usec) in which to poll the hardware on Rx path before
going to sleep (pending an interrupt blocking on OS select(), poll() or epoll_wait().
The max polling duration will be limited by the timeout the user is using when
calling select(), poll() or epoll_wait().
When select(), poll() or epoll_wait() path has successful receive poll hits
(see performance monitoring) the latency is improved dramatically. This comes
on account of CPU utilization.
Value range is -1, 0 to 100,000,000
Where value of -1 is used for infinite polling
Where value of 0 is used for no polling (interrupt driven)
Default value is 100000
XLIO_SELECT_POLL_OS_FORCE
This flag forces to poll the OS file descriptors while user thread calls
select(), poll() or epoll_wait() even when no offloaded sockets are mapped.
Enabling this flag causes XLIO to set XLIO_SELECT_POLL_OS_RATIO and
XLIO_SELECT_SKIP_OS to 1. This will result in XLIO_SELECT_POLL number of
times XLIO will poll the OS file descriptors, along side with offloaded
sockets, if such sockets exists.
Note that setting XLIO_SELECT_SKIP_OS and XLIO_SELECT_POLL_OS_RATIO
directly will override the values these parameters gets while
XLIO_SELECT_POLL_OS_FORCE is enabled.
Enable with 1
Disable with 0
Default value is 0
XLIO_SELECT_POLL_OS_RATIO
This will enable polling of the OS file descriptors while user thread calls
select() or poll() and the XLIO is busy in the offloaded sockets polling loop.
This will result in a single poll of the not-offloaded sockets every
XLIO_SELECT_POLL_RATIO offloaded sockets (CQ) polls.
When disabled, only offloaded sockets are polled.
(See XLIO_SELECT_POLL for more info)
Disable with 0
Default value is 10
XLIO_SELECT_SKIP_OS
Similar to XLIO_RX_SKIP_OS, but in select() or poll() this will force the XLIO
to check the non offloaded fd even though an offloaded socket has ready
packets found while polling.
Default value is 4
XLIO_PROGRESS_ENGINE_INTERVAL
XLIO Internal thread safe check that the CQ is drained at least once
every N milliseconds.
This mechanism allows the library to progress the TCP stack even when the application
doesn't access its socket (so it doesn't provide a context to XLIO).
If CQ was already drained by the application receive
socket API calls then this thread goes back to sleep without any processing.
Disable with 0
Default value is 10 msec
XLIO_PROGRESS_ENGINE_WCE_MAX
Each time XLIO's internal thread starts it's CQ draining, it will stop when
reach this max value.
The application is not limited by this value in the number of CQ elements
it can ProcessId form calling any of the receive path socket APIs.
Default value is 10000
XLIO_CQ_MODERATION_ENABLE
Enable CQ interrupt moderation.
Default value is 1 (Enabled)
XLIO_CQ_MODERATION_COUNT
Number of packets to hold before generating interrupt.
Default value is 48
XLIO_CQ_MODERATION_PERIOD_USEC
Period in micro-seconds for holding the packet before generating interrupt.
Default value is 50
XLIO_CQ_AIM_MAX_COUNT
Maximum count value to use in the adaptive interrupt moderation algorithm.
Default value is 560
XLIO_CQ_AIM_MAX_PERIOD_USEC
Maximum period value to use in the adaptive interrupt moderation algorithm.
Default value is 250
XLIO_CQ_AIM_INTERVAL_MSEC
Frequency of interrupt moderation adaptation.
Interval in milliseconds between adaptation attempts.
Use value of 0 to disable adaptive interrupt moderation.
Default value is 250
XLIO_CQ_AIM_INTERRUPTS_RATE_PER_SEC
Desired interrupts rate per second for each ring (CQ).
The count and period parameters for CQ moderation will change automatically
to achieve the desired interrupt rate for the current traffic rate.
Default value is 5000
XLIO_CQ_POLL_BATCH_MAX
Max size of the array while polling the CQs in the XLIO
Default value is 16
XLIO_CQ_KEEP_QP_FULL
If disabled (default), CQ will not try to compensate for each poll on the
receive path. It will use a "debt" to remember how many WRE miss from each QP
to fill it when buffers become available.
If enabled, CQ will try to compensate QP for each polled receive completion. If
buffers are short it will re-post a recently completed buffer. This causes a packet
drop and will be monitored in the xlio_stats.
Default value is 1 (Enabled)
XLIO_QP_COMPENSATION_LEVEL
Number of spare receive buffer CQ holds to allow for filling up QP while full
receive buffers are being processes inside XLIO.
Default value is 256 buffers
XLIO_USER_HUGE_PAGE_SIZE
Size of huge pages used by user application for buffers provided as part
of the TX Zero Copy socket API (sendmsg with MSG_ZEROCOPY flag)
Default value is 2MB
XLIO_OFFLOADED_SOCKETS
Create all sockets as offloaded/not-offloaded by default.
Value of 1 is for offloaded, 0 for not-offloaded.
Default value is 1 (Enabled)
XLIO_TIMER_RESOLUTION_MSEC
Control XLIO internal thread wakeup timer resolution (in milliseconds)
Default value is 10 (milliseconds)
XLIO_TCP_TIMER_RESOLUTION_MSEC
Control XLIO internal TCP timer resolution (fast timer) (in milliseconds).
Minimum value is the internal thread wakeup timer resolution (XLIO_TIMER_RESOLUTION_MSEC).
Default value is 100 (milliseconds)
XLIO_TCP_CTL_THREAD
Select which TCP control flows are done in the internal thread.
This feature should be kept disabled if using blocking poll/select (epoll is OK).
Use value of 'disable' to disable.
Use value of 'delegate' to handle TCP timers in application context threads.
In this mode the socket must be handled by the same thread from the time of its creation
to the time of its destruction. Otherwise, it may lead to an unexpected behaviour.
Use value of 'with_wakeup' for waking up the thread when there is work to do.
Use value of 'no_wakeup' for waiting for thread timer to expire.
Default value is disabled
XLIO_TCP_TIMESTAMP_OPTION
If set, enable TCP timestamp option.
Currently, LWIP is not supporting RTTM and PAWS mechanisms.
See RFC1323 for info.
Use value of 0 to disable.
Use value of 1 for enable.
Use value of 2 for OS follow up.
Disabled by default (enabling causing a slight performance degradation).
XLIO_TCP_NODELAY
If set, disable the Nagle algorithm option for each TCP socket during initialization.
This means that TCP segments are always sent as soon as possible, even if there is
only a small amount of data.
For more information on TCP_NODELAY flag refer to TCP manual page.
Valid Values are:
Use value of 0 to disable.
Use value of 1 for enable.
Default value is Disabled.
XLIO_TCP_NODELAY_TRESHOLD
Triggers TCP nodelay only if unsent data is larger than this value.
The value is in bytes.
Default 0 - No treshold.
XLIO_TCP_QUICKACK
If set, disable delayed acknowledge ability.
This means that TCP responds after every packet.
For more information on TCP_QUICKACK flag refer to TCP manual page.
Valid Values are:
Use value of 0 to disable.
Use value of 1 for enable.
Default value is Disabled.
XLIO_EXCEPTION_HANDLING
Mode for handling missing support or error cases in Socket API or functionality by XLIO.
Useful for quickly identifying XLIO unsupported Socket API or features
Use value of -2 to exit() on XLIO startup failure.
Use value of -1 for just handling at DEBUG severity.
Use value of 0 to log DEBUG message and try recovering via Kernel network stack (un-offloading the socket).
Use value of 1 to log ERROR message and try recovering via Kernel network stack (un-offloading the socket).
Use value of 2 to log ERROR message and return API respectful error code.
Use value of 3 to log ERROR message and abort application (throw xlio_error exception).
Default value is -1 (notice, that in the future the default value will be changed to 0)
XLIO_AVOID_SYS_CALLS_ON_TCP_FD
For TCP fd, avoid system calls for the supported options of:
ioctl, fcntl, getsockopt, setsockopt.
Non-supported options will go to OS.
To activate, use XLIO_AVOID_SYS_CALLS_ON_TCP_FD=1.
Default value is disabled
XLIO_INTERNAL_THREAD_AFFINITY
Control which CPU core(s) the XLIO internal thread is serviced on. The cpu set
should be provided as *EITHER* a hexadecimal value that represents a bitmask. *OR* as a
comma delimited of values (ranges are ok). Both the bitmask and comma delimited list
methods are identical to what is supported by the taskset command. See the man page
on taskset for additional information.
Where value of -1 disables internal thread affinity setting by XLIO
Bitmask Examples:
0x00000001 - Run on processor 0.
0x00000007 - Run on processors 1,2, and 3.
Comma Delimited Examples:
0,4,8 - Run on processors 0,4, and 8.
0,1,7-10 - Run on processors 0,1,7,8,9 and 10.
Default value is -1 (Disabled).
XLIO_INTERNAL_THREAD_CPUSET
Select a cpuset for XLIO internal thread (see man page of cpuset).
The value is the path to the cpuset (for example: /dev/cpuset/my_set), or an empty
string to run it on the same cpuset the process runs on.
Default value is an empty string.
XLIO_INTERNAL_THREAD_ARM_CQ
Wakeup the internal thread for each packet that the CQ receive.
Poll and process the packet and bring it to the socket layer.
This can minimize latency in case of a busy application which is not available to
receive the packet when it arrived.
However, this might decrease performance in case of high pps rate application.
Default value is 0 (Disabled)
XLIO_WAIT_AFTER_JOIN_MSEC
This parameter indicates the time of delay the first packet send after
receiving the multicast JOINED event from the SM
This is helpful to over come loss of first few packets of an outgoing stream
due to SM lengthy handling of MFT configuration on the switch chips
Default value is 0 (milliseconds)
XLIO_THREAD_MODE
By default XLIO is ready for multi-threaded applications, meaning it is thread safe.
If the users application is a single threaded one, then using this configuration
parameter you can help eliminate XLIO locks and get even better performance.
Single threaded application value is 0
Multi threaded application using spin lock value is 1
Multi threaded application using mutex lock value is 2
Multi threaded application with more threads than cores using spin lock value is 3
Default value is 1 (Multi with spin lock)
XLIO_BUFFER_BATCHING_MODE
Batching of returning Rx buffers and pulling Tx buffers per socket.
In case the value is 0 then library will not use buffer batching.
In case the value is 1 then library will use buffer batching and will try to periodically reclaim unused buffers.
In case the value is 2 then library will use buffer batching with no reclaim.
[future: other values are reserved]
Default value is 1
XLIO_MEM_ALLOC_TYPE
XLIO will try to allocate data buffers as configured:
0 or "ANON" - using malloc
2 or "HUGE" - using huge pages.
XLIO also overrides rdma-core parameters MLX_QP_ALLOC_TYPE and MLX_CQ_ALLOC_TYPE
accordingly:
XLIO parameter | rdma-core parameter
---------------+--------------------
ANON | ANON
HUGE | ALL (PREFER_CONTIG for >32MB hugepage)
Default value is 2 (Huge pages)
XLIO_MEMORY_LIMIT
Pre-allocated memory limit for buffers. Note that the limit doesn't include
dynamic memory allocation and XLIO memory consumption can exceed the limit.
Default value is 2GB
The following XLIO neigh parameters are for advanced users or internal support only:
XLIO_MEMORY_LIMIT_USER
Memory limit for external user allocator. The user allocator can optionally be
provided with XLIO extra API. Default value 0 makes XLIO use XLIO_MEMORY_LIMIT
value for user allocations.
Default value is 0
XLIO_HUGEPAGE_SIZE
Force specific hugepage size for XLIO internal memory allocations. Value 0 allows
to use any supported and available hugepages. The size may be specified with
suffixes such as KB, MB, GB.
Default value is 0
XLIO_NEIGH_UC_ARP_QUATA
XLIO will send UC ARP in case neigh state is NUD_STALE.
In case that neigh state is still NUD_STALE XLIO will try
XLIO_NEIGH_UC_ARP_QUATA retries to send UC ARP again and then will send BC ARP.
XLIO_NEIGH_UC_ARP_DELAY_MSEC
This parameter indicates number of msec to wait between every UC ARP.
XLIO_NEIGH_NUM_ERR_RETRIES
This number indicates number of retries to restart neigh state machine in case neigh got ERROR event.
Default value is 1
XLIO_BF
This flag enables / disables BF (Blue Flame) usage of the ConnectX
Default value is 1 (Enabled)
XLIO_FORK
Control whether XLIO should support fork. Setting this flag on will cause XLIO to
call ibv_fork_init() function. ibv_fork_init() initializes libibverbs's data
structures to handle fork() function calls correctly and avoid data corruption.
If ibv_fork_init() is not called or returns a non-zero status, then libibverbs
data structures are not fork()-safe and the effect of an application calling
fork() is undefined.
Default value is 1 (Enabled)
XLIO_CLOSE_ON_DUP2
When this parameter is enabled, XLIO will handle the duplicate fd (oldfd),
as if it was closed (clear internal data structures) and only then,