Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

As in text books OS will move dirty pages to swap space based on LRU algorithm and make space for new process in RAM.

But how do OS do this if there is no swap.

share|improve this question

closed as off topic by Shane Madden, Michael Hampton, EEAA, Magellan, Iain Nov 5 '12 at 9:04

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
it cannot.. clearly. What happens next depends on the OS.. crash and die? Probably –  Grizly Nov 5 '12 at 4:26
add comment

1 Answer

up vote 1 down vote accepted

If there is no swap, each dirty page is locked in RAM until it can be made clean. For pages that cannot be made clean (such an anonymous or private pages), they are locked in RAM until they are no longer used.

This causes terrible performance if there are a large number of dirty pages that are not being accessed. Because they cannot be moved to swap, they directly reduce the available RAM for clean pages, which can result in an excessive amount of needless paging.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.