Skip to content

Commit

Permalink
print the sleep and idle wait duration while SBK Starting.
Browse files Browse the repository at this point in the history
Signed-off-by: Keshava Munegowda <keshava.gowda@gmail.com>
  • Loading branch information
kmgowda committed Aug 18, 2024
1 parent 4ec67eb commit 299ae0b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void run(final long secondsToRun, final long totalRecords) {
long recordsCnt = 0;
boolean notFound;
TimeStamp t;
PerlPrinter.log.info("PerformanceRecorderIdleBusyWait Started");
PerlPrinter.log.info("PerformanceRecorderIdleBusyWait Started : {} nanoseconds idle busy wait", this.idleNS);
periodicRecorder.start(startTime);
periodicRecorder.startWindow(startTime);
while (doWork) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public void run(final long secondsToRun, final long totalRecords) {
long recordsCnt = 0;
boolean notFound;
TimeStamp t;
PerlPrinter.log.info("PerformanceRecorderIdleSleep Started");
PerlPrinter.log.info("PerformanceRecorderIdleSleep Started : {} milliseconds idle sleep",
this.sleepMS);
periodicRecorder.start(startTime);
periodicRecorder.startWindow(startTime);
while (doWork) {
Expand Down
11 changes: 6 additions & 5 deletions sbk-gem/src/main/java/io/gem/params/impl/SbkGemParameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public final class SbkGemParameters extends SbkDriversParameters implements GemP
/**
* This Constructor is responsible for initializing all values.
*
* @param name String
* @param drivers String[]
* @param name String
* @param drivers String[]
* @param loggers
* @param config NotNull GemConfig
* @param sbmPort int
* @param config NotNull GemConfig
* @param sbmPort int
* @param sbmIdleSleepMilliSeconds int
*/
public SbkGemParameters(String name, String[] drivers, String[] loggers, @NotNull GemConfig config, int sbmPort,
Expand Down Expand Up @@ -95,7 +95,8 @@ public SbkGemParameters(String name, String[] drivers, String[] loggers, @NotNul
addOption("delete", true, "Delete SBK package after benchmark; default: " + config.delete);
addOption("localhost", true, "this local SBM host name, default: " + localHost);
addOption("sbmport", true, "SBM port number; default: " + this.sbmPort);
addOption("sbmsleepms", true, "SBM idle milliseconds to sleep; default: " + this.sbmIdleSleepMilliSeconds);
addOption("sbmsleepms", true, "SBM idle milliseconds to sleep; default: " + this.sbmIdleSleepMilliSeconds +
" ms");
this.optionsArgs = new String[]{"-nodes", "-gemuser", "-gempass", "-gemport", "-sbkdir", "-sbkcommand",
"-copy", "-delete", "-localhost", "-sbmPort", "-sbmsleepms"};
this.parsedArgs = null;
Expand Down
2 changes: 1 addition & 1 deletion sbm/src/main/java/io/sbm/api/impl/SbmLatencyBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void run() throws InterruptedException {
MessageLatenciesRecord record;
boolean doWork = true;
boolean notFound;
Printer.log.info("SbmLatencyBenchmark Started");
Printer.log.info("SbmLatencyBenchmark Started : {} milliseconds idle sleep", this.idleMS);
long currentTime = time.getCurrentTime();
window.start(currentTime);
window.startWindow(currentTime);
Expand Down
2 changes: 1 addition & 1 deletion sbm/src/main/java/io/sbm/params/impl/SbmParameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public SbmParameters(String name, int port, int maxConnections, int idleMS, Stri
default: r""");
addOption("port", true, "SBM port number; default: " + this.port);
addOption("max", true, "Maximum number of connections; default: " + maxConnections);
addOption("millisecsleep", true, "Idle sleep in milliseconds; default: " + idleMS);
addOption("millisecsleep", true, "Idle sleep in milliseconds; default: " + idleMS+" ms");
}


Expand Down

0 comments on commit 299ae0b

Please sign in to comment.