What are the requirements for a swapper to work?
The swapper works on the highest scheduling priority. Firstly it will look for any sleeping method, if not found then it will look for the ready-to-run process for swapping. But the main need for the swapper to work the ready-to-run process must be core-resident for at least 2 seconds before swapping out. And for swapping in the method must have been resided in the swap device for at least 2 seconds. If the requirement is not satisfied then the swapper will go into the wait state on that event and it is awaken once in a second by the Kernel.