Virtual Memory and Page Tables Flashcards
1
Q
TLB?
A
translation look-aside buffer (TLB), to keep recent results of virtual page number translations, so that if we need to look up the same virtual page number again, we can look it up quickly in the TLB instead of performing three slow RAM accesses
2
Q
What is trashing?
A
A situation when a system is spending most of the time in servicing page faults (swapping), than executing the actual process.
3
Q
Whats the purpose of sfence.vma instruction?
A
When CPU switches to a different process, the content of satp is replaced with the address of the new process’es page table. When it happens, the content of TLB needs to be cleared.
● That is the purpose of RISC-V sfence.vma instruction.
4
Q
A