GoConqr has a new look! Let us know what you think.

Mind map

Cache memory : 1

nannaphat sudchawa วิชา Computer Archatecture Final English

Map content

Cache memory : 1

  1. A high speed memory closely connected to the processor

  2. ทำไมต้อง cache memory?

    • หน่วยความจำหลักทำงานได้ช้ามากเมื่อเทียบกับซีพียู
    • โปรแกรมส่วนใหญ่เมื่อใช้หน่วยความจำตำแหน่งหนึ่งแล้ว มักจะอ่านค่าหน่วยความจำตำแหน่งนั้นๆ อีกหลายๆ ครั้ง (locality of reference)
    • Copy ค่าในหน่วยความจำหลักมาใส่ในแคชก่อนแล้วค่อยให้ซีพียูอ้างถึงหน่วยความจำแคชด้วยความเร็วสูง
  3. นิยามต่างๆ ของ Cache

    • Hit : โพรเซสเซอร์พบข้อมูลในแคช
    • Miss : โพรเซสเซอร์ไม่พบข้อมูลในแคช
    • Hit rate
  4. Write policy

    • Write through
      • ทุกครั้งที่เขียนข้อมูลในแคช ให้เขียนข้อมูลลงในหน่วยความจำหลักด้วย
      • ประสิทธิภาพต่ำกว่า แต่สามารถใช้กับระบบมัลติโพรเซสเซอร์ได้
    • Write back
      • เขียนข้อมูลลงในแคชเท่านั้น แล้วค่อยไปเขียนลงหน่วยความจำหลักหลังยกเลิกการใช้แคชบล๊อกนั้นๆ
      • ประสิทธิภาพสูง - ไม่เหมาะกับระบบมัลติโพรเซสเซอร์
  5. Unified cache

    • Keeping both program and data
    • More simple and higher hit rate
  6. Separate cache

    • Keeps program in code cache
    • Keeps data in data cache
    • Suitable for Von-Neuman architecture

Information

Description
วิชา Computer Archatecture Final Mind Map on Cache memory : 1, created by nannaphat sudchawa on 13/12/2016.
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?