Re: 2.4 and 2GB swap partition limit

Hugh Dickins
2001-05-02T12:48:46Z

On Wed, 2 May 2001, Stephen C. Tweedie wrote:
>
> So the aim is more complex. Basically, once we are short on VM, we
> want to eliminate redundant copies of swap data. That implies two
> possible actions, not one --- we can either remove the swap page for
> data which is already in memory, or we can remove the in-memory copy
> of data which is already on swap. Which one is appropriate will
> depend on whether the ptes in the system point to the swap entry or
> the memory entry. If we have ptes pointing to both, then we cannot
> free either.

Sorry for stating the obvious, but that last sentence gives up too easily.
If we have ptes pointing to both, then we cannot free either until we have
replaced all the references to one by references to the other.

Hugh