Cache Question: Line size should be how many bytes?

what would be the point of having a line size greater than 8 bytes? For example, if you store a 32 bit (4 byte) piece of data in cache...then wouldnt the the other 4 bytes be empty? We can only store 1 piece of data in 1 line right? A integer double would take up 8 bytes. But why on earth do we have caches with 32 byte line sizes? What am I missing here?

Comments

  • : what would be the point of having a line size greater than 8 bytes? For example, if you store a 32 bit (4 byte) piece of data in cache...then wouldnt the the other 4 bytes be empty? We can only store 1 piece of data in 1 line right? A integer double would take up 8 bytes. But why on earth do we have caches with 32 byte line sizes? What am I missing here?
    :

    line size in a cache show how many byte a cache can read from off chip memory. if we have bigger line size, that means we can move more data from off chip memory at a time and that reduce cache miss.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion