User`s guide

Chapter V. WD-UDP
Chelsio T5/T4 Unified Wire For Linux Page 90
To preload libcxb4_sock and load the config file, use the LD_PRELOAD environment variable
along with the config file when starting your application:
[root@host]# CXGB4_SOCK_CFG=<path to config file>
LD_PRELOAD=libcxgb4_sock.so <pathto>/your_application
4.1.4. Example with hpcbench/udp
The udp benchmark from the hpcbench suite can be used to show the benefits of
libcxgb4_sock. The hpcbench suite can be found at:
Source: http://hpcbench.sourceforge.net/index.html
Sample: http://hpcbench.sourceforge.net/udp.html
The nodes in this example, r9 and r10, have T5/T4 eth1 configured and the ports are connected
point-to-point.
[root@r9 ~]# ifconfig eth1|grep inet
inet addr:192.168.2.111 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::7:4300:104:465a/64 Scope:Link
[root@r9 ~]#
[root@r10 ~]# ifconfig eth1|grep inet
inet addr:192.168.2.112 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::7:4300:104:456a/64 Scope:Link
[root@r10 ~]#
For this benchmark, we need a simple “accelerate all” configuration on both nodes:
[root@r9 ~]# cat /etc/libcxgb4_sock.conf
endpoint {interface=eth1 port=0}
[root@r9 ~]#
[root@r10 ~]# cat /etc/libcxgb4_sock.conf
endpoint {interface=eth1 port=0}
[root@r10 ~]#
On R10, we run udpserver on port 9000 without libcxgb4_sock preloaded, and on port 90001
with preload: