dfarrell07 / wcbench

CBench, wrapped in stuff that makes it useful.
BSD 2-Clause "Simplified" License
20 stars 9 forks source link

cbench error:msgbuf_read: make_tcp_connection: connect: Bad file descriptor #74

Open ChenJingbo opened 9 years ago

ChenJingbo commented 9 years ago

if the switch number is more than 1019,the cbench return error: $ cbench -c 191.4.3.152 -p 6633 -m 10000 -l 6 -s 1024 -t cbench: controller benchmarking tool running in mode 'throughput' connecting to controller at 191.4.3.152:6633 faking 1024 switches offset 1 :: 6 tests each; 10000 ms per test with 100000 unique source MACs per switch learning destination mac addresses before the test starting test with 0 ms delay after features_reply ignoring first 1 "warmup" and last 0 "cooldown" loops connection delay of 0ms per 1 switch(es) debugging info is off Cannot use epoll to create connection make_tcp_connection: connect: Bad file descriptor

make_nonblock_tcp_connection :: returned -1hsh@eblade2:soft$

if add -d option:output as follow: Initializing switch 999 ... -------Switch 999: sent hello :: done. Initializing switch 1000 ... -------Switch 1000: sent hello :: done. Initializing switch 1001 ... -------Switch 1001: sent hello :: done. Initializing switch 1002 ... -------Switch 1002: sent hello :: done. Initializing switch 1003 ... -------Switch 1003: sent hello :: done. Initializing switch 1004 ... -------Switch 1004: sent hello :: done. Initializing switch 1005 ... -------Switch 1005: sent hello :: done. Initializing switch 1006 ... -------Switch 1006: sent hello :: done. Initializing switch 1007 ... -------Switch 1007: sent hello :: done. Initializing switch 1008 ... -------Switch 1008: sent hello :: done. Initializing switch 1009 ... -------Switch 1009: sent hello :: done. Initializing switch 1010 ... -------Switch 1010: sent hello :: done. Initializing switch 1011 ... -------Switch 1011: sent hello :: done. Initializing switch 1012 ... -------Switch 1012: sent hello :: done. Initializing switch 1013 ... -------Switch 1013: sent hello :: done. Initializing switch 1014 ... -------Switch 1014: sent hello :: done. Initializing switch 1015 ... -------Switch 1015: sent hello :: done. Initializing switch 1016 ... -------Switch 1016: sent hello :: done. Initializing switch 1017 ... -------Switch 1017: sent hello :: done. Initializing switch 1018 ... -------Switch 1018: sent hello :: done. Initializing switch 1019 ... -------Switch 1019: sent hello :: done. Cannot use epoll to create connection make_tcp_connection: connect: Bad file descriptor how can i handle this error?

dfarrell07 commented 9 years ago

It's much harder to help support raw CBench usage/errors than WCBench errors (especially using the Vagrant env) because your configuration is largely unknown. The initial driver for creating WCBench was to reduce the rate of people coming to ODL's Integration team with questions like "CBench is broken in X way", with the root cause almost always being a difference in configuration.

Are you able to reproduce the failure using WCBench? In the Vagrant environment? If you restart ODL, do you still see this error? How consistently? How many times have you reproduced it?