19. Paging TLBs Flashcards

1
Q

What does TLB stand for?

A

Translation-lookaside buffer

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

Where is TLB located at?

A

It is part of the Memory Management Unit (MMU) and it’s a hardware cache.

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

What does the TLB do?

A

If there is a hit in the cache, the translation is performed quickly without indexing the page table.

Otherwise, it will retrieve the data from the page table and store it in the TLB. Then it retries again.

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

What is spatial locality?

A

The principle that if a program accesses a memory location, it is likely to access nearby memory locations again in the future.

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

What is temporal locality?

A

The principle that if a program access a memory location, it will most likely be re-assessed again soon.

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

Who handles the TLB miss?

A

Hardware or software (OS)

In olden days, it used to be the hardware only
In modern days, the OS will handle it using trap handler. The return-from-instruction will execute the instruction right before the TLB miss, because the TLB will now be a hit.

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

What is in a TLB?

A

VPN
PFN
other bits (such as valid bit, protection bit etc)

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

How does TLB handle context swtiches?

A

The hardware system will provide an address space identifier (ASID) that allows storing different translation of different processes at the same time.

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