Dynamic Memory Allocation 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
2
Q
Goals of performance
A
Maximize throughput and peak memory utilization; These goals are often conflicting
3
Q
What is Peak Memory Utilization?
A
Pk/Hk
Pk: sum of current payloads allocated
Hk: Current Heap Size
4
Q
Types of fragmentation?
A
Internal/External Fragmentation
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)
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)