3.2 Virtual Memory Flashcards

1
Q

What is virtual memory?

A

A section of storage allocated by the operating system to emulate physical RAM when memory is low.

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

What is the purpose of virtual memory?

A

To allow more programs to run simultaneously and prevent ‘out of memory’ errors.

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

What is the term for virtual memory in Windows?

A

Page file.

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

What is the term for virtual memory in Linux and macOS?

A

Swap space.

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

How does virtual memory work?

A

It moves less frequently used data from physical memory to the storage device and retrieves it when needed.

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

What are pages in virtual memory?

A

Memory chunks, typically 4 kilobytes in size, used for data transfers between RAM and virtual memory.

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

What are the advantages of virtual memory?

A

It prevents crashes and allows the system to run more programs than physical memory can support.

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

Why is virtual memory slower than physical RAM?

A

It relies on storage devices, which have significantly slower read/write speeds compared to RAM.

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

What is excessive use of virtual memory called, and why is it problematic?

A

Paging; it causes slowdowns due to frequent data transfers between RAM and storage.

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

Why are mechanical hard drives less efficient for virtual memory?

A

They have physical read/write limitations, making data transfer slower compared to SSDs.

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

What is the best long-term solution for memory issues?

A

Upgrading physical RAM to reduce reliance on virtual memory.

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

What should you consider when adjusting virtual memory size?

A

Ensure adequate free space on the storage drive and temporarily increase the page file size if needed.

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

How can you monitor virtual memory usage?

A

Use system tools to check memory utilization and detect heavy reliance on virtual memory.

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

Why is upgrading RAM better than increasing virtual memory size?

A

RAM provides faster and more consistent performance compared to storage-based virtual memory.

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

What are the key limitations of virtual memory?

A

Significant performance impact and slower speed compared to physical RAM.

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

What is a best practice for optimizing system performance when memory is low?

A

Upgrade physical RAM to minimize reliance on virtual memory.