CPC G06F 12/122 (2013.01) [G06F 2212/1016 (2013.01)] | 20 Claims |
1. A page swap method, wherein the method is applied to a storage system comprising a processor, a memory device, and a swap device, wherein the memory device stores a plurality of pages of different applications, and the method comprises:
determining, from a least recently used (LRU) linked list, a to-be-swapped-out first swap-out page of the memory device;
determining a second swap-out page from the LRU linked list based on the first swap-out page, wherein the first swap-out page and the second swap-out page have a same application identifier, and the first swap-out page and the second swap-out page in the LRU linked list are not adjacent; and
swapping out, based on the previously determined first swap-out page needing to be swapped out of the memory device, the first swap-out page and the second swap-out page to the swap device, wherein physical addresses occupied by the first swap-out page and the second swap-out page in the swap device are consecutive.
|