write->wait();
XBT_INFO(" Total : %.6f seconds", sg4::Engine::get_clock() - clock);
-
XBT_INFO("[Bob -> Alice] Streaming (Read bottleneck)");
clock = sg4::Engine::get_clock();
sg4::Io::streamto(bob, bob_disk, alice, alice_disk, size);
XBT_INFO(" Total : %.6f seconds", sg4::Engine::get_clock() - clock);
bt1->wait();
bt2->wait();
+
+ XBT_INFO("[Bob -> Alice] Streaming \"from disk to memory\" (no write)");
+ clock = sg4::Engine::get_clock();
+ sg4::Io::streamto(bob, bob_disk, alice, nullptr, size);
+ XBT_INFO(" Total : %.6f seconds", sg4::Engine::get_clock() - clock);
+
+ XBT_INFO("[Bob -> Alice] Streaming \"from memory to disk\" (no read)");
+ clock = sg4::Engine::get_clock();
+ sg4::Io::streamto(bob, nullptr, alice, alice_disk, size);
+ XBT_INFO(" Total : %.6f seconds", sg4::Engine::get_clock() - clock);
+
+ XBT_INFO("[Bob -> Bob] Disk to disk (no transfer)");
+ clock = sg4::Engine::get_clock();
+ sg4::Io::streamto(bob, bob_disk, bob, bob_disk, size);
+ XBT_INFO(" Total : %.6f seconds", sg4::Engine::get_clock() - clock);
+
}
int main(int argc, char** argv)
> [ 11.000050] [1:streamer@bob] [Bob -> Alice] Streaming (Read bottleneck)
> [ 15.000100] [1:streamer@bob] Total : 4.000050 seconds
> [ 15.000100] [1:streamer@bob] [Bob -> Alice] Streaming (Write bottleneck)
-> [ 23.000150] [1:streamer@bob] Total : 8.000050 seconds
\ No newline at end of file
+> [ 23.000150] [1:streamer@bob] Total : 8.000050 seconds
+> [ 23.000150] [1:streamer@bob] Start two 10-second background traffic between Bob and Alice
+> [ 23.000150] [1:streamer@bob] [Bob -> Alice] Streaming (Transfer bottleneck)
+> [ 29.000200] [1:streamer@bob] Total : 6.000050 seconds
+> [ 45.000200] [1:streamer@bob] [Bob -> Alice] Streaming "from disk to memory" (no write)
+> [ 49.000250] [1:streamer@bob] Total : 4.000050 seconds
+> [ 49.000250] [1:streamer@bob] [Bob -> Alice] Streaming "from memory to disk" (no read)
+> [ 51.000300] [1:streamer@bob] Total : 2.000050 seconds
+> [ 51.000300] [1:streamer@bob] [Bob -> Bob] Disk to disk (no transfer)
+> [ 59.000300] [1:streamer@bob] Total : 8.000000 seconds
\ No newline at end of file