aboutsummaryrefslogtreecommitdiffstats
path: root/resources
AgeCommit message (Expand)AuthorFilesLines
2018-04-19FIX: Memif tests failingPeter Mikus4-2/+21
2018-04-19CSIT-1041: Trending dashboardTibor Frank2-68/+88
2018-04-18FIX: Topology schema after adding architecturePeter Mikus1-1/+4
2018-04-18CSIT-1041: Trending dashboardTibor Frank1-2/+4
2018-04-17Report, trendingTibor Frank4-9/+14
2018-04-17Report: Compare MRR dataTibor Frank2-15/+217
2018-04-17CSIT-1041: Trending dashboardTibor Frank4-73/+115
2018-04-16CSIT-1041: Trending dashboardTibor Frank6-67/+157
2018-04-16Make default driver configurablePeter Mikus2-7/+8
2018-04-16CSIT-1041: Trending dashboardTibor Frank1-1/+1
2018-04-15CSIT-1041: Trending dashboardTibor Frank1-2/+2
2018-04-15CSIT-1041: Trending dashboardTibor Frank2-6/+16
2018-04-15CSIT-1041: Trending dashboardTibor Frank1-10/+17
2018-04-15CSIT-1041: Trending dashboardTibor Frank1-2/+6
2018-04-15CSIT-1041: Trending dashboardTibor Frank5-154/+169
2018-04-13CSIT-1041: Trending dashboardTibor Frank1-1/+1
2018-04-13CSIT-1041: Trending dashboardTibor Frank1-0/+1
2018-04-13CSIT-1041: Trending dashboardTibor Frank2-2/+2
2018-04-13CSIT-1041: Trending dashboardTibor Frank3-58/+61
2018-04-12CSIT-1041: Trending dashboardTibor Frank2-14/+13
2018-04-12CSIT-1041: Trending dashboardTibor Frank3-42/+205
2018-04-12Add more verbose DPDK logsPeter Mikus2-0/+10
2018-04-11CSIT-1037 K8s container extensionsPeter Mikus1-1/+1
2018-04-11Update DPDK to 18.02Peter Mikus4-82/+93
2018-04-11Cleanup perf bootstrapPeter Mikus1-16/+6
2018-04-11Create unified service operationsPeter Mikus4-58/+96
2018-04-10Fix: PAL Trending csv and txt tablesTibor Frank1-2/+6
2018-04-10FIX: Crypto execution orderPeter Mikus3-179/+95
2018-04-09PAL Trending: Add build date to csv and txt tablesTibor Frank2-6/+23
2018-04-09PAL: Static content - indexesTibor Frank2-1/+4
2018-04-09FIX: Download from nexusTibor Frank1-1/+1
2018-04-06Add .gitignore for files created by run_doc.shVratko Polak1-0/+2
2018-04-06CSIT-1034: Add all x710 testsTibor Frank1-55/+421
2018-04-06FIX: VAT SSH timeoutPeter Mikus4-61/+56
2018-04-05HC Tests: adapt hc2vpp tests to oxygen bump(HONEYCOMB-424)Marek Gradzki1-16/+16
2018-04-05FIX: Change plugin default behavior for Container tests Peter Mikus1-2/+1
2018-04-05Revert "FIX: Change plugin default behavior for Container tests"Peter Mikus1-1/+2
2018-04-05FIX: Change plugin default behavior for Container testsPeter Mikus1-2/+1
2018-04-05HC Tests: fix authentication for ODL Oxygen jobsMarek Gradzki2-4/+10
2018-04-04CSIT-1027: Add IndexTibor Frank1-138/+138
2018-04-04Update to Centos image 7.4-1711Thomas F Herbert14-71/+581
2018-04-04CSIT-1027: Add IndexTibor Frank2-0/+10
2018-04-03CSIT Trending: Add x710, IMIXTibor Frank1-0/+292
2018-04-03CSIT Trending: input filesTibor Frank1-9/+6
2018-04-03CSIT Trending: Input filesTibor Frank2-7/+2
2018-04-03CSIT Trending: Input filesTibor Frank1-1/+9
2018-04-03CSIT Trending: input filesTibor Frank3-10/+6
2018-04-03PAL Trending: download input filesTibor Frank3-6/+13
2018-03-30Change the default plugin behavior in perf testsPeter Mikus4-14/+18
2018-03-28PAL Trending: Data in txt table in MppsTibor Frank1-2/+2
an class="k">if (unformat (input, "iter-time %f", &tm->total_iterate_time)) ; else if (unformat (input, "print %f", &tm->time_per_status_update)) ; else { error = clib_error_create ("unknown input `%U'\n", format_unformat_error, input); goto done; } } if (!tm->seed) tm->seed = random_default_seed (); clib_time_init (&tm->time); if (tm->synthetic_time) { w->min_sched_time = tm->time.seconds_per_clock; w->max_sched_time = w->min_sched_time * 256; timing_wheel_init (w, 0, tm->time.clocks_per_second); } else { timing_wheel_init (w, clib_cpu_time_now (), tm->time.clocks_per_second); } clib_warning ("iter %wd, events %d, seed %u, %U", tm->n_iter, tm->n_events, tm->seed, format_timing_wheel, &tm->timing_wheel, /* verbose */ 0); /* Make some events. */ vec_resize (tm->events, tm->n_events); for (i = 0; i < vec_len (tm->events); i++) set_event (tm, i); { u32 *expired = 0; f64 ave_error = 0; f64 rms_error = 0; f64 max_error = 0, min_error = 1e30; u32 *error_hist = 0; uword n_expired = 0; uword *expired_bitmap[2] = { 0 }; uword n_events_in_wheel = vec_len (tm->events); vec_resize (expired, 32); vec_resize (error_hist, 1024); tm->time_iterate_start = clib_time_now (&tm->time); tm->time_next_status_update = tm->time_iterate_start + tm->time_per_status_update; if (tm->total_iterate_time != 0) tm->n_iter = ~0; for (iter = 0; iter < tm->n_iter || n_events_in_wheel > 0; iter++) { u64 cpu_time, min_next_time[2]; if (tm->synthetic_time) cpu_time = iter << w->log2_clocks_per_bin; else cpu_time = clib_cpu_time_now (); _vec_len (expired) = 0; expired = timing_wheel_advance (w, cpu_time, expired, &min_next_time[0]); timing_wheel_validate (w); /* Update bitmap of expired events. */ if (w->validate) { for (i = 0; i < vec_len (tm->events); i++) { uword is_expired; is_expired = (cpu_time >> w->log2_clocks_per_bin) >= (tm->events[i] >> w->log2_clocks_per_bin); expired_bitmap[0] = clib_bitmap_set (expired_bitmap[0], i, is_expired); /* Validate min next time. */ if (is_expired) ASSERT (min_next_time[0] > tm->events[i]); else ASSERT (min_next_time[0] <= tm->events[i]); } } n_expired += vec_len (expired); for (i = 0; i < vec_len (expired); i++) { word j, idt; i64 dt_cpu; f64 fdt_cpu; j = expired[i]; expired_bitmap[1] = clib_bitmap_ori (expired_bitmap[1], j); dt_cpu = cpu_time - tm->events[j]; /* Event must be scheduled in correct bin. */ if (tm->synthetic_time) ASSERT (dt_cpu >= 0 && dt_cpu <= (1 << w->log2_clocks_per_bin)); fdt_cpu = dt_cpu * tm->time.seconds_per_clock; ave_error += fdt_cpu; rms_error += fdt_cpu * fdt_cpu; if (fdt_cpu > max_error) max_error = fdt_cpu; if (fdt_cpu < min_error) min_error = fdt_cpu; idt = (cpu_time >> w->log2_clocks_per_bin) - (tm->events[j] >> w->log2_clocks_per_bin); idt = zvec_signed_to_unsigned (idt); vec_validate (error_hist, idt); error_hist[idt] += 1; } if (w->validate) for (i = 0; i < vec_len (tm->events); i++) { int is_expired = clib_bitmap_get (expired_bitmap[0], i); int is_expired_w = clib_bitmap_get (expired_bitmap[1], i); ASSERT (is_expired == is_expired_w); } min_next_time[1] = ~0; for (i = 0; i < vec_len (tm->events); i++) { if (!clib_bitmap_get (expired_bitmap[1], i)) min_next_time[1] = clib_min (min_next_time[1], tm->events[i]); } if (min_next_time[0] != min_next_time[1]) clib_error ("min next time wrong 0x%Lx != 0x%Lx", min_next_time[0], min_next_time[1]); if (tm->time_per_status_update != 0 && clib_time_now (&tm->time) >= tm->time_next_status_update) { f64 ave = 0, rms = 0; tm->time_next_status_update += tm->time_per_status_update; if (n_expired > 0) { ave = ave_error / n_expired; rms = SQRT (rms_error / n_expired - ave * ave); } clib_warning ("%12wd iter done %10wd expired; ave. error %.4e +- %.4e, range %.4e %.4e", iter, n_expired, ave, rms, min_error, max_error); } if (tm->total_iterate_time != 0 && (clib_time_now (&tm->time) - tm->time_iterate_start >= tm->total_iterate_time)) tm->n_iter = iter; /* Add new events to wheel to replace expired ones. */ n_events_in_wheel -= vec_len (expired); if (iter < tm->n_iter) { for (i = 0; i < vec_len (expired); i++) { uword j = expired[i]; set_event (tm, j); expired_bitmap[1] = clib_bitmap_andnoti (expired_bitmap[1], j); } n_events_in_wheel += vec_len (expired); } } ave_error /= n_expired; rms_error = SQRT (rms_error / n_expired - ave_error * ave_error); clib_warning ("%wd iter done %wd expired; ave. error %.4e +- %.4e, range %.4e %.4e", 1 + iter, n_expired, ave_error, rms_error, min_error, max_error); { test_timing_wheel_tmp_t *fs, *f; f64 total_fraction; fs = 0; for (i = 0; i < vec_len (error_hist); i++) { if (error_hist[i] == 0) continue; vec_add2 (fs, f, 1); f->dt = (((i64) zvec_unsigned_to_signed (i) << w->log2_clocks_per_bin) * tm->time.seconds_per_clock); f->fraction = (f64) error_hist[i] / (f64) n_expired; f->count = error_hist[i]; } vec_sort_with_function (fs, test_timing_wheel_tmp_cmp); total_fraction = 0; vec_foreach (f, fs) { total_fraction += f->fraction; if (f == fs) fformat (stdout, "%=12s %=16s %=16s %s\n", "Error max", "Fraction", "Total", "Count"); fformat (stdout, "%12.4e %16.4f%% %16.4f%% %Ld\n", f->dt, f->fraction * 100, total_fraction * 100, f->count); } } clib_warning ("%U", format_timing_wheel, w, /* verbose */ 1); } done: return error; } #ifdef CLIB_UNIX int main (int argc, char *argv[]) { unformat_input_t i; clib_error_t *error; unformat_init_command_line (&i, argv); error = test_timing_wheel_main (&i); unformat_free (&i); if (error) { clib_error_report (error); return 1; } else return 0; } #endif /* CLIB_UNIX */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */