DD1984 / sockperf

Automatically exported from code.google.com/p/sockperf
Other
1 stars 0 forks source link

it seems that TCP's accept() is called too much times, perhaps in non blocking mode #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run LD_PRELOAD=libvma.so valgrind -v  sockperf sr --tcp 
2. after the server completed its loading, press CTRL-C
3.

What is the expected output? What do you see instead?
valgrind will print its statistics.  I would expect low number of calls to the 
server_accept(int) method.
Instead I see that the suppression rule below was used huge number of times.

NOTE: it could be that this is normal.  Please verify!

Please use labels and text to provide additional information.

use the following in your valgrind's suppressions file:
# Use of uninitialised value of size 8
#    at 0x5548C4A: mlx4_poll_cq (in /usr/lib64/libmlx4-m-rdmav2.so)
#    by 0x4C69F18: cq_mgr::poll(ibv_wc*, int, unsigned long*) (in 
/usr/lib64/libvma.so.6.3.6)
#    by 0x4C6B83A: cq_mgr::poll_and_process_helper_rx(unsigned long*, void*) 
(in /usr/lib64/libvma.so.6.3.6)
#    by 0x4C6F0FE: ring::poll_and_process_element_rx(unsigned long*, void*) (in 
/usr/lib64/libvma.so.6.3.6)
#    by 0x4CB4E33: sockinfo_tcp::rx_wait_helper(int&, bool) (in 
/usr/lib64/libvma.so.6.3.6)
#    by 0x4CB72D2: sockinfo_tcp::accept(sockaddr*, unsigned int*) (in 
/usr/lib64/libvma.so.6.3.6)
#    by 0x65606B: Server<IoRecvfrom, SwitchOff, SwitchOff>::server_accept(int) 
(Server.cpp:272)
#    by 0x65905D: Server<IoRecvfrom, SwitchOff, SwitchOff>::doLoop() 
(Server.cpp:198)
#    by 0x65B789: void server_handler<IoRecvfrom, SwitchOff, SwitchOff>(int, 
int, int) (Server.h:58)
#    by 0x66AAB9: main (SockPerf.cpp:2818)
#  Uninitialised value was created by a stack allocation
#    at 0x554C410: mlx4_create_cq (in /usr/lib64/libmlx4-m-rdmav2.so)
# 
{
   rule-90
   Memcheck:Value8
   fun:mlx4_poll_cq
   fun:_ZN6cq_mgr4pollEP6ibv_wciPm
   fun:_ZN6cq_mgr26poll_and_process_helper_rxEPmPv
   fun:_ZN4ring27poll_and_process_element_rxEPmPv
   fun:_ZN12sockinfo_tcp14rx_wait_helperERib
   fun:_ZN12sockinfo_tcp6acceptEP8sockaddrPj
   fun:_ZN6ServerI10IoRecvfrom9SwitchOffS1_E13server_acceptEi
}

Original issue reported on code.google.com by avne...@gmail.com on 24 Sep 2012 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by avne...@gmail.com on 24 Sep 2012 at 8:46

GoogleCodeExporter commented 9 years ago
please have a look on this while you are handling issue #37

Original comment by avne...@gmail.com on 27 Sep 2012 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by rosenbau...@gmail.com on 18 Jun 2013 at 11:10