A method for ensuring data consistency, the method is applied to a distributed shared memory, DSM, model, the method is implemented by a computing node, the computing node comprises off-chip memory and at least one processor, each of the processor comprises a cache and on-chip memory and multiple cores, each core is integrated with a cache, an operating system kernel and third-party libraries Libraries run above the hardware layer, the computing node further includes an application layer, where the application layer includes one or more application programs, one application program includes one or more processes, one process include one or more threads, and the application program runs on the computing node and controls the hardware layer by using the operating system kernel to complete a corresponding function, wherein the method comprises: if a first process writes data to a shared virtual memory page, wherein the first process is a process which runs on one core of the computing node and which belongs to an application program, checking if the shared virtual memory page has no mapping in a physical address space of the first process, and if the shared virtual memory page has no mapping in a physical address space of the first process, triggering a page fault, obtaining in a page fault processing function of the first process, data of the shared virtual memory page from a home process of the shared virtual memory page P, applying for a physical memory page from off-chip memory of the computing node as a working page of the first process, establishing a mapping relationship between the shared virtual memory page and the physical memory page; writing the data of the shared virtual memory page to the physical memory page, so that when the first process is going to write the data to a shared virtual page, the first process writes the data to the working page corresponding to the shared virtual page; the method further comprising: when the first process writes data to the working page for the first time creating a backup page of the working page, and store the created backup page into on-chip memory of the computing node, determining modified content of the working page by comparing current data content of the working page with original data content in the backup page of the working page, and synchronously updating the modified content into the shared virtual page, wherein the working page is stored in one of the caches. if a first process writes data to a shared virtual memory page, wherein the first process is a process which runs on one core of the computing node and which belongs to an application program, checking if the shared virtual memory page has no mapping in a physical address space of the first process, and if the shared virtual memory page has no mapping in a physical address space of the first process, triggering a page fault, obtaining in a page fault processing function of the first process, data of the shared virtual memory page from a home process of the shared virtual memory page P, applying for a physical memory page from off-chip memory of the computing node as a working page of the first process, establishing a mapping relationship between the shared virtual memory page and the physical memory page; writing the data of the shared virtual memory page to the physical memory page, so that when the first process is going to write the data to a shared virtual page, the first process writes the data to the working page corresponding to the shared virtual page; the method further comprising: when the first process writes data to the working page for the first time creating a backup page of the working page, and store the created backup page into on-chip memory of the computing node, determining modified content of the working page by comparing current data content of the working page with original data content in the backup page of the working page, and synchronously updating the modified content into the shared virtual page, wherein the working page is stored in one of the caches. when the first process writes data to the working page for the first time creating a backup page of the working page, and store the created backup page into on-chip memory of the computing node, determining modified content of the working page by comparing current data content of the working page with original data content in the backup page of the working page, and synchronously updating the modified content into the shared virtual page, wherein the working page is stored in one of the caches.