Dynamic Memory Allocation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is Throughput?

A
  • Number of completed requests per unit time
  • Ex: 5,000 mallocs and 5,000 frees in 10 seconds; Throughput = 1,000 operations/second
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Goals of performance

A

Maximize throughput and peak memory utilization; These goals are often conflicting

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

What is Peak Memory Utilization?

A

Pk/Hk

Pk: sum of current payloads allocated
Hk: Current Heap Size

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

Types of fragmentation?

A

Internal/External Fragmentation

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

What is internal fragmentation?

A

If the payload is smaller than the block size; Depends on pattern of previous requests (easy to measure)

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

What is external fragmentation?

A

Enough aggregate heap memory, but no single free block large enough; Depends on pattern of future requests (hard to measure)

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