A memory management method, wherein the method comprises: determining a memory page that needs to be swapped out of a memory; for each memory page that needs to be swapped out, generating, based on the memory page, a work task used to reclaim the memory page; determining a dedicated worker thread in an optimal state; allocating each work task to the dedicated worker thread in the optimal state for execution, wherein the dedicated worker thread in the optimal state is the worker thread processing a work task, for which there is no work task that needs to be processed in a work queue of the worker thread; wherein the determining a memory page that needs to be swapped out of a memory comprises: for each specified process, traversing all levels of page directories and all page tables corresponding to virtual memory areas, VMAs, of the process; wherein the method comprises: for each virtual memory area, traversing all levels of page directories and all page tables corresponding to the VMA, determining a page frame corresponding to a page table entry corresponding to the VMA, isolating the determined page frame from an LRU linked list, and storing the determined page frame to a linked list of isolated pages; and if a quantity of page frames in the linked list of isolated pages reaches a specified threshold or all levels of page directories and all page tables corresponding to the VMA are traversed, determining, as the memory page that needs to be swapped out, the page frame stored in the linked list of isolated pages. determining a memory page that needs to be swapped out of a memory; for each memory page that needs to be swapped out, generating, based on the memory page, a work task used to reclaim the memory page; determining a dedicated worker thread in an optimal state; allocating each work task to the dedicated worker thread in the optimal state for execution, wherein the dedicated worker thread in the optimal state is the worker thread processing a work task, for which there is no work task that needs to be processed in a work queue of the worker thread; wherein the determining a memory page that needs to be swapped out of a memory comprises: for each specified process, traversing all levels of page directories and all page tables corresponding to virtual memory areas, VMAs, of the process; wherein the method comprises: for each virtual memory area, traversing all levels of page directories and all page tables corresponding to the VMA, determining a page frame corresponding to a page table entry corresponding to the VMA, isolating the determined page frame from an LRU linked list, and storing the determined page frame to a linked list of isolated pages; and if a quantity of page frames in the linked list of isolated pages reaches a specified threshold or all levels of page directories and all page tables corresponding to the VMA are traversed, determining, as the memory page that needs to be swapped out, the page frame stored in the linked list of isolated pages. for each specified process, traversing all levels of page directories and all page tables corresponding to virtual memory areas, VMAs, of the process; wherein the method comprises: for each virtual memory area, traversing all levels of page directories and all page tables corresponding to the VMA, determining a page frame corresponding to a page table entry corresponding to the VMA, isolating the determined page frame from an LRU linked list, and storing the determined page frame to a linked list of isolated pages; and if a quantity of page frames in the linked list of isolated pages reaches a specified threshold or all levels of page directories and all page tables corresponding to the VMA are traversed, determining, as the memory page that needs to be swapped out, the page frame stored in the linked list of isolated pages. for each virtual memory area, traversing all levels of page directories and all page tables corresponding to the VMA, determining a page frame corresponding to a page table entry corresponding to the VMA, isolating the determined page frame from an LRU linked list, and storing the determined page frame to a linked list of isolated pages; and if a quantity of page frames in the linked list of isolated pages reaches a specified threshold or all levels of page directories and all page tables corresponding to the VMA are traversed, determining, as the memory page that needs to be swapped out, the page frame stored in the linked list of isolated pages.