Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add the capacity the update the priority of an I/O during its execution
[simgrid.git] / examples / cpp / io-priority / s4u-io-priority.tesh
diff --git a/examples/cpp/io-priority/s4u-io-priority.tesh b/examples/cpp/io-priority/s4u-io-priority.tesh
new file mode 100644 (file)
index 0000000..3a9b3e6
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env tesh
+
+$ ${bindir:=.}/s4u-io-priority ${platfdir}/hosts_with_disks.xml
+> [bob:privileged_writer:(2) 0.150000] [s4u_test/INFO] First write done.
+> [bob:writer:(1) 0.200000] [s4u_test/INFO] First write done.
+> [bob:privileged_writer:(2) 0.300000] [s4u_test/INFO] Increase priority for the priviledged writer (2000000 bytes remaining to write)
+> [bob:privileged_writer:(2) 0.375000] [s4u_test/INFO] Second write done.
+> [bob:writer:(1) 0.400000] [s4u_test/INFO] Second write done.