Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please 32-bit
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 12 Sep 2019 15:09:54 +0000 (17:09 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 12 Sep 2019 15:09:54 +0000 (17:09 +0200)
examples/s4u/io-file-remote/s4u-io-file-remote.cpp
examples/s4u/io-file-remote/s4u-io-file-remote.tesh

index d1dda93..b05b501 100644 (file)
@@ -19,7 +19,7 @@ static int host(int argc, char* argv[])
   file.dump();
   XBT_INFO("Try to write %llu MiB to '%s'", file.size() / 1024, filename);
   sg_size_t write = file.write(file.size() * 1024);
-  XBT_INFO("Have written %llu bytes to '%s'.", write, filename);
+  XBT_INFO("Have written %llu MiB to '%s'.", write / (1024 * 1024), filename);
 
   if (std::stoi(argv[4]) != 0) {
     XBT_INFO("Move '%s' (of size %llu) from '%s' to '%s'", filename, file.size(),
index 6f27f1c..6fd81fa 100644 (file)
@@ -22,9 +22,9 @@ $ ${bindir:=.}/s4u-io-file-remote ${platfdir}/hosts_with_disks.xml s4u-io-file-r
 >              Host Id: 'bob'
 >              File Descriptor Id: 0
 > [  0.000000] (2@  bob) Try to write 16 MiB to '/scratch/doc/simgrid/examples/platforms/g5k.xml'
-> [  0.435917] (2@  bob) Have written 17436672 bytes to '/scratch/doc/simgrid/examples/platforms/g5k.xml'.
+> [  0.435917] (2@  bob) Have written 16 MiB to '/scratch/doc/simgrid/examples/platforms/g5k.xml'.
 > [  0.435917] (2@  bob) Copy '/scratch/doc/simgrid/examples/platforms/g5k.xml' (of size 17436672) from 'bob' to 'alice'
-> [162.912320] (1@alice) Have written 13015548928 bytes to '/lib/libsimgrid.so.3.6.2'.
+> [162.912320] (1@alice) Have written 12412 MiB to '/lib/libsimgrid.so.3.6.2'.
 > [162.912320] (1@alice) Move '/lib/libsimgrid.so.3.6.2' (of size 13015548928) from 'alice' to 'bob'
 > [666.092709] (0@     ) End: 17/511982 MiB used/free on 'Disk1@alice'
 > [666.092709] (0@     ) End: 12452/499547 MiB used/free on 'Disk1@bob'