Better barrier

This commit is contained in:
Quentin 2020-02-05 20:46:28 +01:00
parent f4f7f35e8a
commit 069db154e6
10 changed files with 21 additions and 18 deletions

View file

@ -11,9 +11,8 @@ donar \
-r 5000 \
> $3/log/client-donar-stdout.log 2> $3/log/client-donar-stderr.log &
measlat -h 127.13.3.7 -p 5000 -c 1 \
sync_barrier_donar \
> $4/log/client-measboot-stdout.log 2> $4/log/client-measboot-stderr.log
sleep 10
dcall \
-t filesrc \

View file

@ -11,9 +11,8 @@ donar \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
measlat -l -h 127.0.0.1 -p 5000 -r -c 1 \
sync_barrier_donar \
> ../log/server-measboot-stdout.log 2> ../log/server-measboot-stderr.log
sleep 10
dcall \
-t filesrc \

View file

@ -12,9 +12,8 @@ donar \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
measlat -l -h 127.0.0.1 -p 5000 -r -c 1 \
sync_barrier_donar \
> ../log/server-measboot-stdout.log 2> ../log/server-measboot-stderr.log &
sleep 10
dcall \
-t filesrc \

View file

@ -12,9 +12,8 @@ donar \
-r 5000 \
> $4/log/client-donar-stdout.log 2> $4/log/client-donar-stderr.log &
measlat -h 127.13.3.7 -p 5000 -c 1 \
sync_barrier_donar \
> $4/log/client-measboot-stdout.log 2> $4/log/client-measboot-stderr.log
sleep 10
dcall \
-t filesrc \

View file

@ -12,9 +12,8 @@ donar \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
measlat -l -h 127.0.0.1 -p 5000 -r -c 1 \
sync_barrier_donar \
> ../log/server-measboot-stdout.log 2> ../log/server-measboot-stderr.log
sleep 10
dcall \
-t filesrc \

View file

@ -13,9 +13,8 @@ donar \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
measlat -l -h 127.0.0.1 -p 5000 -r -c 1 \
sync_barrier_donar \
> ../log/server-measboot-stdout.log 2> ../log/server-measboot-stderr.log &
sleep 10
dcall \
-t filesrc \

View file

@ -11,9 +11,8 @@ donar \
-r 5000 \
> $3/log/client-donar-stdout.log 2> $3/log/client-donar-stderr.log &
measlat -h 127.13.3.7 -p 5000 -c 1 \
sync_barrier_donar \
> $4/log/client-measboot-stdout.log 2> $4/log/client-measboot-stderr.log
sleep 10
dcall \
-t filesrc \

View file

@ -11,9 +11,8 @@ donar \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
measlat -l -h 127.0.0.1 -p 5000 -r -c 1 \
sync_barrier_donar \
> ../log/server-measboot-stdout.log 2> ../log/server-measboot-stderr.log
sleep 10
dcall \
-t filesrc \

View file

@ -11,9 +11,8 @@ donar \
-r 5000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
measlat -l -h 127.0.0.1 -p 5000 -r -c 1 \
sync_barrier_donar \
> ../log/server-measboot-stdout.log 2> ../log/server-measboot-stderr.log &
sleep 10
dcall \
-t filesrc \

View file

@ -0,0 +1,12 @@
#!/bin/bash
sleep 1
echo "sync_barrier_start"
nc -u 127.13.3.7 5000 --sh-exec 'while true; do sleep 1; echo a; done' &
CAPTURE=$!
nc -ul 127.0.0.1 5000 --exec /bin/true
echo "sync_barrier_release"
sleep 1
kill $CAPTURE
sleep 10
echo "sync_barrier_done"