cgvwzq / evsets

Tool for testing and finding minimal eviction sets
Apache License 2.0
95 stars 32 forks source link

Tried on multiple machines without success #10

Open Yujie-Cui opened 2 years ago

Yujie-Cui commented 2 years ago

Thanks for making the source code public. But I tried it on multiple machines and it didn't work.

lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 8 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2609 v4 @ 1.70GHz BogoMIPS: 3401.77 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 20480K NUMA node0 CPU(s): 0,2,4,6,8,10,12,14 NUMA node1 CPU(s): 1,3,5,7,9,11,13,15

Cache info: getconf -a | grep CACHE

LEVEL1_ICACHE_SIZE 32768 LEVEL1_ICACHE_ASSOC 8 LEVEL1_ICACHE_LINESIZE 64 LEVEL1_DCACHE_SIZE 32768 LEVEL1_DCACHE_ASSOC 8 LEVEL1_DCACHE_LINESIZE 64 LEVEL2_CACHE_SIZE 262144 LEVEL2_CACHE_ASSOC 8 LEVEL2_CACHE_LINESIZE 64 LEVEL3_CACHE_SIZE 20971520 LEVEL3_CACHE_ASSOC 20 LEVEL3_CACHE_LINESIZE 64 LEVEL4_CACHE_SIZE 0 LEVEL4_CACHE_ASSOC 0

command: sudo ./evsets -b 3000 -c 20 -s 8 -a g -e 2 -n 20 -o 4096 -r 10 -t 95 -C 0 --verify --retry --backtracking --nohugepages [+] 11 MB buffer allocated at 0x7f2b14612000 (192000 blocks) [+] Default Threshold = 95 [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [+] Initial candidate set evicted victim [+] Created linked list structure (3000 elements) [+] Starting group reduction... [!] Error: optimal eviction set not found (length=3000) [-] Num. congruent addresses: 30 [!] Error: repeat, pick a new set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [!] Error: invalid candidate set [+] Initial candidate set evicted victim [+] Created linked list structure (3000 elements) [+] Starting group reduction... [!] Error: optimal eviction set not found (length=134) [-] Num. congruent addresses: 20 [!] Error: exceeded max repetitions

Could you please see where the problem is?

cgvwzq commented 2 years ago

The cache is too large for succeeding with only 3000 elements, try by increasing that value. Be also aware that verify depends on the slice function that is hardcoded, so unless that machine uses the same one that option will most likely fail.