A method in a data processing system for managing memory within the data
processing system. A discardable page that is to be removed from the
memory is identified. A determination is made as to whether performance
will increase by storing the discardable page in a paging device located
within the data processing system. If it is determined that performance
will increase, the discardable page is marked as a paged discardable page
and stored in the paging device locally, wherein this page may be
retrieved from the paging device. The paging device may take the form of a
paging file, such as a swap file. If space is unavailable within the
paging device, the discardable page may be discarded. These processes may
be implemented in a network computer.