Skip to content

Commit

Permalink
locksmith.c: Changed arguments to square_evictions to make sure all h…
Browse files Browse the repository at this point in the history
…its are in cache.
  • Loading branch information
Thomas Kim committed Dec 12, 2015
1 parent fc243ec commit da329d2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions locksmith.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
#include "bench_commands.h"
#include "log.h"
#include "prep_system.h"
#define LARGE_NUMBER "100"
#define LARGE_NUMBER "3"

#define COMMON_COS 1
#define OTHER_COS 2

#define READER_CORE 0
#define SWITCHER_CORE 1

#define NUM_SWITCHES 1000
#define NUM_SWITCHES (1 << 25)

// TODO add flag to square_evictions for timing each memory access
static test_prog_t progs[] = {
{
.cmdline = {"clients/square_evictions", "-e100", "-c100", "-n"LARGE_NUMBER, "-m"},
.cmdline = {"clients/square_evictions", "-e20", "-c20", "-n"LARGE_NUMBER, "-m"},
.target_cpu = 0,
},
};
Expand Down Expand Up @@ -72,6 +72,9 @@ int main(int argc, char** argv) {
}
/* Keep swapping COS of our other core */
// TODO fix this
printf("Done swapping!\n");
wait_benchmarks();
run_benchmarks(progs, 1);
wait_benchmarks();
cleanup_system(true);
}

0 comments on commit da329d2

Please sign in to comment.