yaay-rs icon indicating copy to clipboard operation
yaay-rs copied to clipboard

ping pong bench fail

Open BowenXiao1999 opened this issue 3 years ago • 1 comments

run time ./target/release/mio_ping_pong 127.0.0.1:12346 8 1

get Connection reset by peer

thread 'yaay-mt-runtime-worker-7' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }', yaay-tests/src/mio_ping_pong.rs:75:51
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'thread 'yaay-mt-runtime-worker-6' panicked at 'thread 'thread 'yaay-mt-runtime-worker-1called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }yaay-mt-runtime-worker-0thread '', ' panicked at 'yaay-mt-runtime-worker-4yaay-tests/src/mio_ping_pong.rs' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }' panicked at ':', called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }75yaay-tests/src/mio_ping_pong.rs', ::yaay-tests/src/mio_ping_pong.rs', 51:75yaay-tests/src/mio_ping_pong.rs
75:::755151:thread '
51
yaay-mt-runtime-worker-2
' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }', yaay-tests/src/mio_ping_pong.rsyaay-mt-runtime-worker-5:75' panicked at ':called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }51', 
yaay-tests/src/mio_ping_pong.rs:75:51
thread 'yaay-mt-runtime-worker-3' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }', yaay-tests/src/mio_ping_pong.rs:75:51
./target/release/mio_ping_pong 127.0.0.1:12346 8 1  0.11s user 0.10s system 167% cpu 0.122 total

Any idea for setting up environment for this bench?

BowenXiao1999 avatar Aug 28 '21 10:08 BowenXiao1999

try:

ulimit -n 10000

As stated in the README:

To run these programs, some system limits need to be adjusted (and these programs does no error handling :)).

Fugoes avatar Nov 05 '21 14:11 Fugoes