On Jul 8, 2013, at 1:26 PM, Jason Gunthorpe <[email protected]>
wrote:
> Jeff's patch doesn't break old binaries, old binaries, running with
> normal IB MTUs work fine. The structure layouts all stay the same,
> etc.
FWIW, I did a simple test to confirm this. I installed a stock git HEAD
libibverbs into $HOME/libibverbs-HEAD and a libibverbs with the MTU patch in
$HOME/libibverbs-mtu-patch. The mlx4 driver was installed into both trees (I
used some fairly old Mellanox HCAs+Dell servers for this test).
This is the base case:
-----
[5:06] dell012:~ ❯❯❯ cd libibverbs-HEAD
[5:07] dell012:~/libibverbs-HEAD ❯❯❯ ldd bin/ibv_rc_pingpong
linux-vdso.so.1 => (0x00002aaaaaacb000)
libibverbs.so.1 => /home/jsquyres/libibverbs-HEAD/lib/libibverbs.so.1
(0x00002aaaaaccd000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaaaeec000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab109000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaab30e000)
/lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
[5:07] dell012:~/libibverbs-HEAD ❯❯❯ ./bin/ibv_rc_pingpong dell011
local address: LID 0x0004, QPN 0x04004a, PSN 0xc08742, GID ::
remote address: LID 0x0019, QPN 0x20004a, PSN 0x44c48e, GID ::
8192000 bytes in 0.02 seconds = 4170.28 Mbit/sec
1000 iters in 0.02 seconds = 15.72 usec/iter
-----
Works fine. Now let's use the same libibverbs-HEAD rc pingpong binary, but
with the MTU-patched libibverbs.so:
-----
[5:07] dell012:~/libibverbs-HEAD ❯❯❯ mv lib/libibverbs.so.1
lib/libibverbs.so.1-bogus
[5:07] dell012:~/libibverbs-HEAD ❯❯❯ export
LD_LIBRARY_PATH=$HOME/libibverbs-mtu-patch/lib
[5:08] dell012:~/libibverbs-HEAD ❯❯❯ ldd bin/ibv_rc_pingpong
linux-vdso.so.1 => (0x00002aaaaaacb000)
libibverbs.so.1 =>
/home/jsquyres/libibverbs-mtu-patch/lib/libibverbs.so.1 (0x00002aaaaaccd000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaaaeed000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab10a000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaab30e000)
/lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
[5:08] dell012:~/libibverbs-HEAD ❯❯❯ ./bin/ibv_rc_pingpong dell011
local address: LID 0x0004, QPN 0x08004a, PSN 0x65391c, GID ::
remote address: LID 0x0019, QPN 0x24004a, PSN 0x7d137e, GID ::
8192000 bytes in 0.02 seconds = 4163.39 Mbit/sec
1000 iters in 0.02 seconds = 15.74 usec/iter
-----
Still works fine.
--
Jeff Squyres
[email protected]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/
N�����r��y����b�X��ǧv�^�){.n�+����{��ٚ�{ay�ʇڙ�,j��f���h���z��w���
���j:+v���w�j�m��������zZ+�����ݢj"��!�i