Skip to content
Snippets Groups Projects
  1. Jul 21, 2021
  2. May 20, 2021
  3. May 03, 2021
  4. Apr 19, 2021
  5. Apr 17, 2021
    • Florian Fischer's avatar
      [EchoClient] support latency histograms · a71a6127
      Florian Fischer authored
      Histograms can only be collected when using a fixed amount of iterations.
      
      When the '--histogram <file>' argument is passed each Client
      collects 4 time stamps (each 8 byte):
      
      1. Before requesting the send operation
      2. After requesting the send operation
      3. After getting unblocked and dispatched because the send operation finished
      4. After getting unblocked and dispatched because the recv operation finished
      
      Taking the timestamps is enabled using a template and thus does not introduce
      any runtime cost if they are not used except binary size.
      
      Before termination three latencies are calculated and written to the histogram
      file as csv data for each client and each echo.
      
      1. total_latency := (T4 - T1)
      2. after_send_latency := (T4 - T2)
      3. after_send_dispatch_latency := (T4 - T3)
      a71a6127
  6. Apr 15, 2021
  7. Apr 14, 2021
    • Florian Fischer's avatar
      [EchoClient] change the output format · 0b08f773
      Florian Fischer authored
      Split output between two ini sections: global, clients.
      The global section includes results like:
      Arguments, total time spent in each phase, ...
      
      The clients section contains a sigle key 'csv' containing the csv data
      from each client inclufing the header:
      iterations, latency, reconnects, unexpected echos
      
      This leaves the post processing of the data to another program
      and does not hide experiment behavior (e.g. starvation of single
      clients) behind averages.
      
      Remove support for appending to an output file, because we do not
      use it in our emper-io-evaluation and it does not work anymore with the
      new output format.
      0b08f773
    • Florian Fischer's avatar
      [EchoClient] reconnect on ECONNRESETC and C++-ify the code · 8f01db62
      Florian Fischer authored
      * Unconditionally reconnect when the TCP connection was reset and count the reconnects
      * Send Client id and iteration in each echo
      * Use a Client class holding a clients state instead of a pthread style clientFunc
      * Create the Client object in the client Fiber to use NUMA first-touch policy
      * Reduce code duplication:
        * starting a new Client is now done with Client::startNew
        * latency measurement and error handling are moved from the clientIteration*
          functions in the Client::run function
      8f01db62
  8. Apr 08, 2021
    • Florian Fischer's avatar
      [EchoClient] collect the total amount of unexpected echos · 592f72d1
      Florian Fischer authored
      My first test runs don't show unexpected echos. Therefore I think
      unexpected echos are rare and their average will always be 0 even if
      some sparse unexpected echos occur.
      592f72d1
    • Florian Fischer's avatar
      [EchoClient] changes to easier debug our IO evaluation artifact · e554f7fd
      Florian Fischer authored
      * Use emper::lib::math::RunningAverage instead of doing it manually
      * Count the unexpected Echos, print a error to the log and go continue
      * Return a duration and error message pair from our clientIteration* functions
      * Print the current iteration on error
      * Wait 10 seconds after an error before terminating
      e554f7fd
    • Florian Fischer's avatar
      [EchoClient] improve unexpected echo output · 23cb213d
      Florian Fischer authored
      Build up output string and don't incrementally output it to stderr
      to hopefully prevent error messages interleaving.
      Only output the least significant byte of the unsigned int cast.
      Always use two digits per byte and remove the whitespace.
      Should have used printf in the first place.
      23cb213d
  9. Apr 06, 2021
  10. Apr 02, 2021
  11. Mar 23, 2021
    • Florian Fischer's avatar
      [Debug] s/WDBG/DBG and always terminate a log messager with a new line · 28028fac
      Florian Fischer authored
      Rename the macro used to build up the debug message, to better reflect
      its generality.
      It can be used anywhere to build a string with C++ stream formatting.
      std::string s = EMPER_BUILD_STR("foo = " << 1 " , bar = " << bar(42));
      
      Since WDBG was the only log macro without a terminating newline, which
      was in fact broken according to flow, we can remove it and the new line
      handling code in the LOG macro.
      28028fac
  12. Mar 17, 2021
    • Florian Fischer's avatar
      [EchoClient] make linked futures optional · ae81b029
      Florian Fischer authored
      While we haven't figured out why the version using linked futures breaks
      we can use a simpler implementation which calls submitAndWait on both futures
      separately
      ae81b029
    • Florian Fischer's avatar
      [EchoCLient] use a thread to terminate · d87acb25
      Florian Fischer authored
      First of all this replaces the call to sleep(execution_seconds)
      which calls POSIX sleep(3) which is definitely not what we want here
      blocking one worker thread.
      
      Using a std::thread for termination was chosen because we assume it
      will be more precise than the emper native emper::sleep.
      d87acb25
  13. Mar 11, 2021
  14. Mar 08, 2021
  15. Feb 22, 2021
  16. Feb 08, 2021
  17. Feb 06, 2021
  18. Feb 05, 2021
  19. Feb 03, 2021
  20. Feb 02, 2021
  21. Jan 26, 2021
  22. Dec 10, 2020
  23. Dec 09, 2020
    • Florian Schmaus's avatar
      Add emper::getFullVersion() · 5b194979
      Florian Schmaus authored
      This also solves a dependency declaration issue in WorkerSleepExample:
      Prior to this change, a clean build could potentially result in
      
      ninja  -C build
      ninja: Entering directory `build'
      [13/57] Compiling C++ object apps/worker_sleep_example.p/WorkerSleepExample.cpp.o
      FAILED: apps/worker_sleep_example.p/WorkerSleepExample.cpp.o
      ccache c++ -Iapps/worker_sleep_example.p -Iapps -I../apps -Iemper -I../emper -Iemper/include -I../emper/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -Werror -std=c++17 -O2 -g -Wno-non-virtual-dtor -MD -MQ apps/worker_sleep_example.p/WorkerSleepExample.cpp.o -MF apps/worker_sleep_example.p/WorkerSleepExample.cpp.o.d -o apps/worker_sleep_example.p/WorkerSleepExample.cpp.o -c ../apps/WorkerSleepExample.cpp
      ../apps/WorkerSleepExample.cpp:12:10: fatal error: emper-version.h: No such file or directory
         12 | #include "emper-version.h"        // for EMPER_FULL_VERSION
            |          ^~~~~~~~~~~~~~~~~
      compilation terminated.
      [17/57] Generating emper-version.h with a custom command
      ninja: build stopped: subcommand failed.
      make: *** [Makefile:23: build] Error 1
      
      because worker_sleep_example_exec should have also depend on
      emper_version_h. However this is obviously error prone, as users
      easily forget to add this dependency. Instead we add
      emper::getFullVersion() which is part of the EMPER shared object (not
      just of a single header).
      5b194979
Loading