diff options
author | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-04-15 08:22:54 +0200 |
---|---|---|
committer | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-04-15 08:22:54 +0200 |
commit | a0dd6c977d94009485698a7fecc51996c18bf628 (patch) | |
tree | 356aa0e2350f1c96ccffdee002ac08b4eeb3cf33 /src/setu/perf_setu_api.c | |
parent | 148b3fd442fd689818e5e7f29f52e34a1b2b61c5 (diff) | |
download | gnunet-a0dd6c977d94009485698a7fecc51996c18bf628.tar.gz gnunet-a0dd6c977d94009485698a7fecc51996c18bf628.zip |
Prepare original perf run
Diffstat (limited to 'src/setu/perf_setu_api.c')
-rw-r--r-- | src/setu/perf_setu_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c index 9c7b51984..00cf96b85 100644 --- a/src/setu/perf_setu_api.c +++ b/src/setu/perf_setu_api.c | |||
@@ -418,7 +418,7 @@ void perf_thread() { | |||
418 | 418 | ||
419 | 419 | ||
420 | static void run_petf_thread(int total_runs) { | 420 | static void run_petf_thread(int total_runs) { |
421 | int core_count = get_nprocs_conf() * 2; | 421 | int core_count = get_nprocs_conf(); |
422 | pid_t child_pid, wpid; | 422 | pid_t child_pid, wpid; |
423 | int status = 0; | 423 | int status = 0; |
424 | 424 | ||
@@ -447,9 +447,9 @@ static void execute_perf() { | |||
447 | //FILE *out = fopen("perfstats.log", "w"); | 447 | //FILE *out = fopen("perfstats.log", "w"); |
448 | //fprintf(out, "se_diff,active_passive_switches,bytes_transmitted,rtt\n"); | 448 | //fprintf(out, "se_diff,active_passive_switches,bytes_transmitted,rtt\n"); |
449 | 449 | ||
450 | for (int out_out_ctr = 1; out_out_ctr <= 10; out_out_ctr++) { | 450 | for (int out_out_ctr = 4; out_out_ctr <= 4; out_out_ctr++) { |
451 | 451 | ||
452 | for (int out_ctr = 10; out_ctr <= 60; out_ctr++) { | 452 | for (int out_ctr = 1; out_ctr <= 100; out_ctr++) { |
453 | 453 | ||
454 | float base = 0.1; | 454 | float base = 0.1; |
455 | float x = out_ctr * base; | 455 | float x = out_ctr * base; |