part2 ver 0.3.0 wait time to 1000
This commit is contained in:
parent
5deca22f22
commit
4488725666
|
@ -9,7 +9,7 @@
|
|||
#include "util.h"
|
||||
|
||||
#define CACHE_HIT_THRESHOLD 200
|
||||
#define WAIT_TIME 100
|
||||
#define WAIT_TIME 1000
|
||||
int main() {
|
||||
int index = -1;
|
||||
int flag = -1;
|
||||
|
@ -22,7 +22,7 @@ int main() {
|
|||
clflush((ADDR_PTR)buf + i * 128);
|
||||
}
|
||||
for(int i = 0; i < WAIT_TIME; i++);
|
||||
for(int i = 100; i < 10000; i++) {
|
||||
for(int i = 712; i < 10000; i++) {
|
||||
time = measure_one_block_access_time((ADDR_PTR)buf + (i*i) / 1024 % 1024 * 128);
|
||||
if(time < CACHE_HIT_THRESHOLD) {
|
||||
flag = (i*i) / 1024 % 1024;
|
||||
|
|
Loading…
Reference in New Issue