Question
Create a shell script for the following table: LI size Associativity Block size 32 1 32 32 2 32 32 4 32 32 1 64
Create a shell script for the following table:
LI size | Associativity | Block size |
32 | 1 | 32 |
32 | 2 | 32 |
32 | 4 | 32 |
32 | 1 | 64 |
32 | 2 | 64 |
32 | 4 | 64 |
L1 and L2 Size | Associativity | Block size |
32 & 256 | 1 | 32 |
32 & 256 | 2 | 32 |
32 & 256 | 4 | 32 |
32 & 256 | 1 | 64 |
32 & 256 | 2 | 64 |
32 & 256 | 4 | 64 |
Here is an example command: user@pollux:~/$ /opt/d4-7/dineroIV -l1-isize 64K -l1-ibsize 64 -l1-isbsize 64 -l1-iassoc 8 < /opt/Dinero/dijkstra.txt > ~/outfile.txt
Example shell script:
# This is a large 3-level cache with high associativity
cfg_l1i="-l1-isize 64K -l1-ibsize 64 -l1-isbsize 64 -l1-iassoc 8"
cfg_l1d="-l1-dsize 64K -l1-dbsize 64 -l1-dsbsize 64 -l1-dassoc 8"
cfg_l2u="-l2-usize 512K -l2-ubsize 64 -l2-usbsize 64 -l2-uassoc 8"
cfg_l3u="-l3-usize 4096K -l3-ubsize 64 -l3-usbsize 64 -l3-uassoc 16"
cfg1="$cfg_l1i $cfg_l1d $cfg_l2u $cfg_l3u
dinero informat d $cfg1 < tracefile &> cfg1.out
# This is a small 3-level cache with high associativity
cfg_l1i="-l1-isize 16K -l1-ibsize 64 -l1-isbsize 64 -l1-iassoc 8"
cfg_l1d="-l1-dsize 16K -l1-dbsize 64 -l1-dsbsize 64 -l1-dassoc 8"
cfg_l2u="-l2-usize 128K -l2-ubsize 64 -l2-usbsize 64 -l2-uassoc 8"
cfg_l3u="-l3-usize 1024K -l3-ubsize 64 -l3-usbsize 64 -l3-uassoc 16"
cfg2="$cfg_l1i $cfg_l1d $cfg_l2u $cfg_l3u
dinero informat d $cfg2 < tracefile &> cfg2.out
# This is a large 3-level cache with low associativity
cfg_l1i="-l1-isize 64K -l1-ibsize 64 -l1-isbsize 64 -l1-iassoc 2"
cfg_l1d="-l1-dsize 64K -l1-dbsize 64 -l1-dsbsize 64 -l1-dassoc 2"
cfg_l2u="-l2-usize 512K -l2-ubsize 64 -l2-usbsize 64 -l2-uassoc 2"
cfg_l3u="-l3-usize 4096K -l3-ubsize 64 -l3-usbsize 64 -l3-uassoc 4"
cfg3="$cfg_l1i $cfg_l1d $cfg_l2u $cfg_l3u
dinero informat d $cfg3 < tracefile &> cfg3.out
Some of valid options:
-help Print this help message
-copyright Give details on copyright and lack of warranty
-lN-Tsize P Size
-lN-Tbsize P Block size
-lN-Tsbsize P Sub-block size (default same as block size)
-lN-Tassoc U Associativity (default 1)
-lN-Trepl C Replacement policy
(l=LRU, f=FIFO, r=random) (default l)
-lN-Tfetch C Fetch policy
(d=demand, a=always, m=miss, t=tagged,
l=load forward, s=subblock) (default d)
-lN-Tpfdist U Prefetch distance (in sub-blocks) (default 1)
-lN-Tpfabort U Prefetch abort percentage (0-100) (default 0)
Write allocate policy (a=always, n=never, f=nofetch) (default a)
-lN-Twback C Write back policy (a=always, n=never, f=nofetch) (default a)
-lN-Tccc Compulsory/Capacity/Conflict miss statistics
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started