카테고리 없음

TLB 와 Cache 역할 비교

황세욱 2017. 12. 5. 13:21



TLB is a special kind of cache which is associated with CPU. 

(VA와 PA간의 매핑을 담고 있는 buffer)


When we are using Virtual Memory we need TLB for faster translation of virtual address to physical address. 

(가상 메모리 환경에서, TLB 는 가상 주소를 물리 주소로 빠르게 변환시켜 준다)


TLB only store page_no , offset, frame_no and some control bits. 


While Cache is for storing block of data which are used frequently. 

(Cache는 자주 사용하는 data를 저장하는 곳이다)


After getting physical address from the TLB/page_table we look for that address in cache if it is not found there, than we look for main memory. 

(TLB에서 물리주소를 가져오면, 그 주소를 Cache에서 찾아본다. 만약 없다면 Memory에서 찾아온다.)