Paging: contigious physical memory vs. fragmented
Posted: Thu May 08, 2008 3:26 pm
(I hope I can describe my question clear enough in English)
My question is: Does it matter for system performance wheter a series of pages is mapped to a contigious part of physical memory or to fragmented parts?
An example with 32 kb of memory, 4 kb/page:
situation A:
logical page: 1 -> physical page 56
logical page: 2 -> physical page 57
logical page: 3 -> physical page 58
logical page: 4 -> physical page 59
logical page: 5 -> physical page 60
logical page: 6 -> physical page 61
logical page: 7 -> physical page 62
logical page: 8 -> physical page 63
situation B: [fragmented physical memory]
logical page: 1 -> physical page 56
logical page: 2 -> physical page 142
logical page: 3 -> physical page 2
logical page: 4 -> physical page 13
logical page: 5 -> physical page 1034
logical page: 6 -> physical page 240
logical page: 7 -> physical page 241
logical page: 8 -> physical page 23
Do the situations A and B differ in performance?
Final question is: Is it worthwhile to avoid fragmentation of physical memory?
My question is: Does it matter for system performance wheter a series of pages is mapped to a contigious part of physical memory or to fragmented parts?
An example with 32 kb of memory, 4 kb/page:
situation A:
logical page: 1 -> physical page 56
logical page: 2 -> physical page 57
logical page: 3 -> physical page 58
logical page: 4 -> physical page 59
logical page: 5 -> physical page 60
logical page: 6 -> physical page 61
logical page: 7 -> physical page 62
logical page: 8 -> physical page 63
situation B: [fragmented physical memory]
logical page: 1 -> physical page 56
logical page: 2 -> physical page 142
logical page: 3 -> physical page 2
logical page: 4 -> physical page 13
logical page: 5 -> physical page 1034
logical page: 6 -> physical page 240
logical page: 7 -> physical page 241
logical page: 8 -> physical page 23
Do the situations A and B differ in performance?
Final question is: Is it worthwhile to avoid fragmentation of physical memory?