Memory Models Flashcards

1
Q

What is protected mode as it relates to memory?

A

In protected mode, the CPU processor can access:
– Up to 4GB memory
– memory protection / privilege level / multi‐tasking
– Supports Virtual-­‐8086 mode
*Used by most modern OS

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

What is a flat memory model?

A

Model where the address is linear across an address space enabling access to address space directly.

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

What is the virtual memory model?

A

The virtual memory model consist of 4GB on a 32bit Linux system with 1GB going to the kernel and 3GB for the user space.

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

How can you view a process in memory?

A

A user could use:
“pmap [PID#] -d”
“cat /proc/[PID]/maps”
(gdb) “info proc mappings”

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