Chapter VI. WD-UDP
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 Terminator eth1 configured and the ports are
connected point-to-point.
[root@r9 ~]# ifconfig eth1|grep inet
inet addr:192.168.2.111
inet6 addr: fe80::7:4300:104:465a/64 Scope:Link
[root@r9 ~]#
[root@r10 ~]# ifconfig eth1|grep inet
inet addr:192.168.2.112
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:
[root@r10 ~]# /usr/local/src/hpcbench/udp/udpserver -p 9000 &
[1] 11453
[root@r10 ~]# TCP socket listening on port [9000]
[root@r10 ~]# LD_PRELOAD=libcxgb4_sock.so
/usr/local/src/hpcbench/udp/udpserver -p 9001 &
[2] 11454
[root@r10 ~]# TCP socket listening on port [9001]
Chelsio Unified Wire for Linux
Bcast:192.168.2.255
Bcast:192.168.2.255
Mask:255.255.255.0
Mask:255.255.255.0
116
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers