change pinDifferentPages benchmark so that the pages have poor memory locality. This leads to much lower performance.

This commit is contained in:
Sears Russell 2011-08-19 22:16:30 +00:00
parent 090124e3fe
commit 0dadb7f540

View file

@ -18,7 +18,7 @@ unsigned long numops;
static void* worker(void* arg) {
pageid_t pid = *(pageid_t*)arg;
for(unsigned long i = 0; i < numops; i++) {
Page * p = loadPage(-1, pid);
Page * p = loadPage(-1, pid+i);
releasePage(p);
}
@ -39,7 +39,7 @@ int main(int argc, char * argv[]) {
Tinit();
for(int i = 0; i < numthreads; i++) {
pids[i] = i;
pids[i] = i * numops;
pthread_create(&workers[i], 0, worker, &pids[i]);
}
for(int i = 0; i < numthreads; i++) {