From 566be4f1a9393406a6adc1b2fe815c6d1ae4e3bc Mon Sep 17 00:00:00 2001 From: velho Date: Thu, 18 Nov 2010 17:52:43 +0000 Subject: [PATCH] Added test files for testing fullduplex TCP model. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8587 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/AddTests.cmake | 2 ++ examples/msg/gtnets/gtnets-fullduplex.tesh | 29 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 examples/msg/gtnets/gtnets-fullduplex.tesh diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index 12cc3e4072..567b77e5b5 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -204,6 +204,8 @@ ADD_TEST(msg-gtnets-onelink-lv08 ${CMAKE_BINARY_DIR}/bin/tesh --cd ${PROJECT_DIR ADD_TEST(msg-tracing-gtnets-onelink ${CMAKE_BINARY_DIR}/bin/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-onelink-gtnets.tesh) ADD_TEST(msg-tracing-gtnets-dogbone-lv08 ${CMAKE_BINARY_DIR}/bin/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-dogbone-lv08.tesh) ADD_TEST(msg-tracing-gtnets-onelink-lv08 ${CMAKE_BINARY_DIR}/bin/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-onelink-lv08.tesh) + ADD_TEST(msg-gtnets-fullduplex ${CMAKE_BINARY_DIR}/bin/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-fullduplex.tesh) + endif(HAVE_TRACING) endif(HAVE_GTNETS) diff --git a/examples/msg/gtnets/gtnets-fullduplex.tesh b/examples/msg/gtnets/gtnets-fullduplex.tesh new file mode 100644 index 0000000000..f41bfde5ed --- /dev/null +++ b/examples/msg/gtnets/gtnets-fullduplex.tesh @@ -0,0 +1,29 @@ +#! ./tesh + +p Testing fullduplex TCP option DISABLED + +$ gtnets/gtnets gtnets/fullduplex-p.xml gtnets/fullduplex-d.xml --cfg=fullduplex:0 +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'fullduplex' to '0' +> [C1:master:(7) 108.799652] [msg_test/INFO] Send completed (to S1). Transfer time: 108.799652 Agregate bandwidth: 9191.205854 +> [C1:master:(7) 108.799652] [msg_test/INFO] Completed peer: S1 time: 108.799652 +> [S1:slave:(8) 108.799652] [msg_test/INFO] ===> Estimated Bw of FLOW[1] : 3063.735285 ; message from S1 to C1 with remaining : 666666.666667 +> [S1:slave:(8) 108.799652] [msg_test/INFO] ===> Estimated Bw of FLOW[2] : 3063.735285 ; message from S1 to C1 with remaining : 666666.666667 +> [S1:slave:(8) 108.799652] [msg_test/INFO] ===> Estimated Bw of FLOW[3] : 3063.735285 ; message from S1 to C1 with remaining : 666666.666667 +> [S1:slave:(8) 108.799652] [msg_test/INFO] ===> Estimated Bw of FLOW[4] : 9191.205854 ; message from C1 to S1 with remaining : 0.000000 + +p Testing fullduplex TCP option ENABLED + +$ gtnets/gtnets gtnets/fullduplex-p.xml gtnets/fullduplex-d.xml --cfg=fullduplex:1 +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'fullduplex' to '1' +> [S1:master:(1) 331.625739] [msg_test/INFO] Send completed (to C1). Transfer time: 331.625739 Agregate bandwidth: 3015.447482 +> [S1:master:(1) 331.625739] [msg_test/INFO] Completed peer: C1 time: 331.625739 +> [S1:master:(3) 331.625739] [msg_test/INFO] Send completed (to C1). Transfer time: 331.625739 Agregate bandwidth: 3015.447482 +> [S1:master:(3) 331.625739] [msg_test/INFO] Completed peer: C1 time: 331.625739 +> [S1:master:(5) 331.625739] [msg_test/INFO] Send completed (to C1). Transfer time: 331.625739 Agregate bandwidth: 3015.447482 +> [S1:master:(5) 331.625739] [msg_test/INFO] Completed peer: C1 time: 331.625739 +> [C1:master:(7) 331.625739] [msg_test/INFO] Send completed (to S1). Transfer time: 331.625739 Agregate bandwidth: 3015.447482 +> [C1:master:(7) 331.625739] [msg_test/INFO] Completed peer: S1 time: 331.625739 +> [C1:slave:(2) 331.625739] [msg_test/INFO] ===> Estimated Bw of FLOW[1] : 3015.447482 ; message from S1 to C1 with remaining : 0.000000 +> [C1:slave:(2) 331.625739] [msg_test/INFO] ===> Estimated Bw of FLOW[2] : 3015.447482 ; message from S1 to C1 with remaining : 0.000000 +> [C1:slave:(2) 331.625739] [msg_test/INFO] ===> Estimated Bw of FLOW[3] : 3015.447482 ; message from S1 to C1 with remaining : 0.000000 +> [C1:slave:(2) 331.625739] [msg_test/INFO] ===> Estimated Bw of FLOW[4] : 3015.447482 ; message from C1 to S1 with remaining : 0.000000 -- 2.20.1