Mindmap
Cache memory : 1
Inhalt der Mindmap
Cache memory : 1
A high speed memory closely connected to the processor
ทำไมต้อง cache memory?
- หน่วยความจำหลักทำงานได้ช้ามากเมื่อเทียบกับซีพียู
- โปรแกรมส่วนใหญ่เมื่อใช้หน่วยความจำตำแหน่งหนึ่งแล้ว มักจะอ่านค่าหน่วยความจำตำแหน่งนั้นๆ อีกหลายๆ ครั้ง (locality of reference)
- Copy ค่าในหน่วยความจำหลักมาใส่ในแคชก่อนแล้วค่อยให้ซีพียูอ้างถึงหน่วยความจำแคชด้วยความเร็วสูง
นิยามต่างๆ ของ Cache
- Hit : โพรเซสเซอร์พบข้อมูลในแคช
- Miss : โพรเซสเซอร์ไม่พบข้อมูลในแคช
- Hit rate
Write policy
- Write through
- ทุกครั้งที่เขียนข้อมูลในแคช ให้เขียนข้อมูลลงในหน่วยความจำหลักด้วย
- ประสิทธิภาพต่ำกว่า แต่สามารถใช้กับระบบมัลติโพรเซสเซอร์ได้
- Write back
- เขียนข้อมูลลงในแคชเท่านั้น แล้วค่อยไปเขียนลงหน่วยความจำหลักหลังยกเลิกการใช้แคชบล๊อกนั้นๆ
- ประสิทธิภาพสูง - ไม่เหมาะกับระบบมัลติโพรเซสเซอร์
- Write through
Unified cache
- Keeping both program and data
- More simple and higher hit rate
Separate cache
- Keeps program in code cache
- Keeps data in data cache
- Suitable for Von-Neuman architecture
Informationen
- Beschreibung
- วิชา Computer Archatecture Final Mindmap am Cache memory : 1, erstellt von nannaphat sudchawa am 13/12/2016.
- Erstellt von
- nannaphat sudchawa
- Aufrufe
- 0
- Bewertung