Q. What are the tradeoffs concerned in rereading code pages from the file system versus using swap space to store them?
Answer: If codes pages are accumulate in swap space they can be transferred more quickly to main memory (because swap space allocation is tuned for faster performance than general file system allocation). Using swap space is able to require start-up time if the pages are copied there at process invocation rather than just being paged out to swap space on demand. As well more swap space must be allocated if it is used for both codes as well as data pages.