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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly