Test 2 Flashcards

1
Q

Linux Memory Area

A
  • a chunk of virtual memory mapped to a VM area space structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

task_struct

A
  • The OS stores process state in a data structure called process control block. There is one per process
    called task_struct in linux
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Difference between segmentation fault and protection fault?

A
  • segmentation fault occurs when request and address is not in the VMA
  • protection fault occurs when you don’t have permissions to access that address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

memory mapping

A
  • structure of data indicating how memory is laid out
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

demand zero page

A
  • physical page fill of 0’s
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

swap file

A
  • same as swap space

- portion of the memory used for virtual memory

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

swap space

A
  • same as a swap file

- portion of the memory used for virtual memory

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

copy on write

A
  • copy file and save new only when wrote to otherwise access the same file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

demand zero page

A
  • physical page fill with 0’s
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the mmap function do?

A
  • allows you to comb through a file like it is an array
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a dynamic memory allocator and what are the two types of memory allocators?

A
  • memory allocator that all allocate explicitly

- there are two types: explicit and implicit

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

shared object

A
  • a file that contains binary code and data that can be loaded into memory and linked dynamically
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

shared area

A
  • virtual memory that are shared by more than one process and then can be used by multiple programs simultaneously. Although virtual memory allows processes to have separate address spaces, there are times when you need processes to share memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

private object

A

blank

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

throughput (with respect to memory alloactors)

A
  • how many commands per second
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

aggregate payload

A
  • this is all the payloads added together
17
Q

What are the two types of fragmentation?

A
  • internal and external fragmentation
18
Q

internal fragmentation

A
  • type of fragmentation where the payload is smaller than the block size it is going into
19
Q

external fragmentation

A
  • type of fragmentation where the payload…space cannot be filled
  • to explain more the area that is free in the block cannot be filled by the payload
20
Q

What are the two types of memory blocks?

A
  • allocated memory and free memory
21
Q

allocated memory

A
  • allocated memory is memory that is filled
22
Q

free memory

A
  • free memory is memory that is not yet filled and waiting to be filled
23
Q

allocated and free blocks

A
  • allocated blocks are blocks that are used up in the memory while free blocks are block that are waiting to be filled in the memory
24
Q

What are some implementation issues? (just a list for this flash card)

A
  • header, payload, padding, free block organization, block placement, block splitting, block coalescing
25
Q

What does the malloc do when it cannot satisfy memory requests?

A
  • it returns a NULL
26
Q

explicit allocator

A
  • explicit allocators explicitly allocates memory

- frees the space

27
Q

implicit allocator

A
  • implicit allocators explicitly allocates memory

- does not free the space