Lecture 4/9:Caches-Writes and Coherency

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2015
  • Part 4 of a 9 part series on cache memories. Prof. Harry Porter, Portland State University. For more, visit cs.pdx.edu/~harry

ความคิดเห็น • 21

  • @joseangulo717
    @joseangulo717 4 ปีที่แล้ว +22

    "That block is no longer a virgin, and is now dirty so to speak"- lmao

  • @tianzhou9861
    @tianzhou9861 5 ปีที่แล้ว +3

    Damn this gentleman is a wizard indeed.

  • @nickfriddell5145
    @nickfriddell5145 5 ปีที่แล้ว +3

    These videos are fantastic. Thank you!

  • @ThePikmania
    @ThePikmania 4 ปีที่แล้ว +1

    Thanks, this was exactly what I was interested in

  • @vincejison7102
    @vincejison7102 6 ปีที่แล้ว +2

    great content, thank you for this!

  • @MrMrWazzaa
    @MrMrWazzaa 4 ปีที่แล้ว

    thank you harry putter

  • @husamsamehmashaqbeh1894
    @husamsamehmashaqbeh1894 5 ปีที่แล้ว +3

    many thanks for u please can give me this is material(slides)

  • @AakashShahFromGoogle
    @AakashShahFromGoogle 7 ปีที่แล้ว +3

    Why don't cache memories have pointers to the main memory instead of data?

    • @dogusural5792
      @dogusural5792 7 ปีที่แล้ว +10

      Then it would still need to fetch the memory from the RAM, the whole point of using caches instead of RAM is access speed. Besides we already have the adress of the RAM block we want to reach, so why would we need a pointer .

  • @fb-gu2er
    @fb-gu2er 5 ปีที่แล้ว

    the harry potter name will certainly bring more views :). I wish my teacher explained like you

  • @slpereragt2
    @slpereragt2 7 ปีที่แล้ว +1

    please explain. the last 3 bits of an address. 1 byte is 8bits. how does 3 bits represent 8 bytes?

    • @alexbaryzhikov6458
      @alexbaryzhikov6458 7 ปีที่แล้ว +1

      2^3 = 8

    • @jleo2255
      @jleo2255 7 ปีที่แล้ว +2

      This definitely deserves some explanation as it is a technical detail of CPU caches. The last three bits (000-111) are used as an index into the cached data. The first 29 bits are commonly referred to as the 'tag.'
      Here is how I imagine it working:
      CPU: Give me address [0...tag_bits...28]xxx
      CACHE: Let's see if I have data for the 'tag' [0...28]
      if (TAG_FOUND) : CACHE: Great, is it valid data?
      if (CAHCE_LINE_VALID) : CACHE: Amaze balls. Read the byte at offset xxx (this is the index mentioned above)
      The professor probably glossed over these details intentionally to avoid leaking too much about cache mapping strategies into this discussion, which is understandable. Still, almost every book I've read about the subject does this and as a beginner, it is so frustrating to not know why as it's being explained.

    • @alexbaryzhikov6458
      @alexbaryzhikov6458 7 ปีที่แล้ว +2

      The point is, to store 8 bytes you need 64 bits, but to address 8 bytes you only need to count them, so 3 bits are enough.

  • @judepope6196
    @judepope6196 7 หลายเดือนก่อน

    People who disliked this video must be some jealous lecturers😂

  • @slpereragt2
    @slpereragt2 7 ปีที่แล้ว +5

    1 byte is 8bits. why did you say 8bytes are stored in last 3 bits 000? :(

    • @DineshAuti16
      @DineshAuti16 7 ปีที่แล้ว +12

      "8 bytes are stored in last 3 bits" means - 3 bits can be used to point to 8 bytes
      000 --> First Byte
      001 --> Second Byte
      .
      .
      .
      111 --> Eighth Byte

  • @Philly191233
    @Philly191233 4 ปีที่แล้ว +1

    Just realized his name is Harry Porter..
    bouta go take a bong rip brb

  • @RupamBumba
    @RupamBumba 6 ปีที่แล้ว +5

    harry potter

    • @songoku6425
      @songoku6425 2 ปีที่แล้ว

      the man is giving very high quality explanation yet you insult hum
      this world is a joke

    • @RupamBumba
      @RupamBumba 2 ปีที่แล้ว +1

      @@songoku6425 why you think it a joke ? you think harry potter is a joke ?