diff --git a/analyze/memcached_conn_scan.py b/analyze/memcached_conn_scan.py index b6cbc708a6af2eb038bd649fb7677ac410ecdd9b..212176505180ce7dc874bf485bd57e685ac527f7 100644 --- a/analyze/memcached_conn_scan.py +++ b/analyze/memcached_conn_scan.py @@ -24,7 +24,7 @@ def extract_conn_qps_exp(exp): ret[1].append(qps) with open(os.path.join('../data/', exp, 'stat_c%d.txt' % (f,)), 'r') as fi: - misses = parse_perf_stat(fi.read()) + misses = parse_perf_stat(fi.read()) / qps ret[2].append(misses) return ret @@ -60,9 +60,9 @@ def show_plot(threads, include_caladan = False): if include_caladan and threads == 1: # Because we cannot run caladan on 1 threads, we use the t2 data # but we half the QPS - name = 'caladan (per-thread)' + name = 'caladan' data[name] = extract_conn_qps_exp('memcached_conn_scan.5.4.0-136-generic.caladan.t2') - data[name] = (data[name][0], [qps / 2 for qps in data[name][1]], [misses / 2 for misses in data[name][2]]) + data[name] = (data[name][0], [qps / 2 for qps in data[name][1]], data[name][2]) for k in data: plt.plot(data[k][0], data[k][1], label = k) @@ -90,7 +90,7 @@ def show_plot(threads, include_caladan = False): plt.plot(data[k][0], data[k][2], label = k) plt.xlabel('Connections (per client w/ 7 * 8 clients)') - plt.ylabel('LLC misses') + plt.ylabel('LLC misses per request') plt.legend() if os.getenv('SAVE_FIGURE') != 'true':