Mmthrashc

out:

current->mm->faultstamp = global_faults; current->mm->last_interval = current_interval; return;

Notice that if a process cannot obtain the swap token, it still can swap in pages as required but will not be protected from memory reclaim.

grab_swap_token is only called from a single place, namely, at the beginning of do_swap_page, which is responsible for swapping-in pages. The token is grabbed if the requested page cannot be found in the swap cache and needs to be read in from the swap area:

Continue reading here: Mmmemoryc

Was this article helpful?

0 0