The embodiment of the application discloses a memory
error processing method, device, terminal and storage medium, and belongs to the memory field, and comprises the following steps: when a memory fault occurs, it is judged whether a read-write action occurs in a CPU execution context; when the CPU execution context is executed, an interrupt context is acquired, and it is judged whether the memory fault is in a write stage by using the interrupt context; when the write stage is executed, a
page table entry is acquired, and it is judged whether it is a file mapping according to the
page table entry; when the file mapping is executed, a physical
page frame corresponding to the memory fault is determined, all
page table entries related to the physical
page frame are determined through
reverse mapping, a physical
page frame entry in the page table entry is atomically deleted, and a physical memory page corresponding to the virtual address is deleted from a file
page cache; a free physical memory page is allocated, added to the file
page cache, and initialized for a read operation; and the
virtual memory and the free physical memory page of the file
page cache are associated through the page table entry.