Skip to content

the answer of 6.37 maybe wrong #79

Open

Description

@sttttwv

N=64, sumB
The size of array is four times of cache's, that means every sixteen rows in the array are mapped to the same row in the cache, for example the row 0, 16, 32, 48 would be mapped to the first row of cache. After the first inner loop is completed, the data in cache is the first four numbers of lines 48 to 63. If search the number in lines 0 to 15, it will be missed. So the miss rate is 100%.

Activity

  1. changed the title [-]6.37答案不太对[/-] [+]the answer of 6.37 maybe wrong[/+] on Mar 31, 2022
  2. sttttwv commented on Mar 31, 2022

    @sttttwv
    Author

    N=64, sumC
    I think the answer is 50%.

  3. AE-GG commented on Mar 31, 2022

    @AE-GG

    My answer is same to you.

    Function $N=64$ $N=60$
    sumA $25 %$ $25 %$
    sumB $100 %$ $100 %$
    sumC $50 %$ $50 %$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions