Direct mapping is the simplest way of creating a memory cache. In this configuration the main RAM memory is divided into the same number of lines there are inside the memory cache. If we have a system with 1 GB of RAM, this 1 GB will be divided into 8,192 blocks (assuming the memory cache uses the configuration we describe above), each one with 128 KB (1,073,741,824 / 8,192 = 131,072 – keep in mind that 1 GB is 2^30 bytes, 1 MB is 2^20 bytes and 1 KB is 2^10 bytes). If our system had 512 MB the memory would be also divided into 8,192 blocks, but this time each one would have 64 KB. And so on. We illustrate this organization in Figure 6.
Read more at http://www.hardwaresecrets.com/how-the-cache-memory-works/7/#rcKtr7wM6DfT0Ys7.99
การแมปโดยตรงเป็นวิธีการสร้างหน่วยความจำแค ในการกำหนดค่านี้ หน่วยความจำ RAM หลักถูกแบ่งออกเป็นจำนวนของบรรทัดที่มีอยู่ภายในหน่วยความจำแคช ถ้าเรามีระบบที่ มี 1 GB ของ RAM, 1 GB นี้จะแบ่งออกเป็น 8192 บล็อก (สมมติว่าใช้แคชหน่วยความจำการกำหนดค่าที่เราอธิบายข้างต้น), แต่ละคน มี 128 KB (1,073,741,824 / 8,192 = 131,072 – โปรดจำไว้ว่า 1 GB 2 ^ 30 ไบต์ 1 MB เป็น 2 ^ 20 ไบต์ 1 KB เป็น 2 ^ 10 ไบต์) ระบบของเรามี 512 MB หน่วยความจำจะแบ่งบล็อก 8192 แต่เวลานี้ละจะได้ 64 กิโลไบต์ และอื่น ๆ เราแสดงในรูปที่ 6 องค์กรนี้อ่านเพิ่มเติมที่ http://www.hardwaresecrets.com/how-the-cache-memory-works/7/#rcKtr7wM6DfT0Ys7.99
การแปล กรุณารอสักครู่..
