2,161 views
2 votes
2 votes

Consider the following statements:
S1 : Doubling the line size halves the number of tags in the cache.
S2 : Doubling the associativity doubles the number of tags in the cache.
S3 : Doubling the line size usually reduce compulsory misses.
Which of the above statements is always true?

2 Answers

1 votes
1 votes
1) Doubling the line size decreases no of lines by half  so , since tags are attached with each line then no of tags will also get

    halved.

2) it is not true since associativity just group no of lines together so data can be randomly stored in a line unlike direct mapping , no of      lines remain same  , tags remain same.

3) its true since compulsory miss occurs when we dont find requested data in cache lines for first time after that if its requested it

    will be either conflict or capacity miss, so increasing block size means increase in capacity of line of cache and due to property

    of locality of refrence which cache utilizes wil fetch the data along with data around and chances are the we might find next to          be requested data in this extra fetched data, usually
1 votes
1 votes
Doubling the line size wont reduce the compulsory misses.

Compulsory miss occur due to first acces of the block.

Total no. of diffrnt block requests = no. compulsory miss

Related questions

0 votes
0 votes
0 answers
2