摘要:
Embodiments of the present invention provide a method and an apparatus for sharing data on a computing node, including: copying a shared virtual memory page to which a first process requests access into off-chip memory of a computing node, and using the shared virtual memory page copied into the off-chip memory as a working page of the first process; and before the first process performs a write operation on the working page, creating, in on-chip memory of the computing node, a backup page of the working page, so as to back up original data of the working page. In the embodiments of the present invention, by using programmable on-chip memory of a computing node, before a write operation is performed on a working page, page data is backed up in the on-chip memory, so as to ensure data consistency when multiple processes perform an operation on a shared virtual memory page while accessing off-chip memory as less as possible and improving a speed of a program.
摘要:
In embodiments of the present invention, an on-chip memory in a many-core system is partitioned, and according to a frequency at which a processor core set in each on-chip partition accesses a virtual memory page in virtual memory space that is shared among multiple processes that belong to a same application program, data corresponding to the virtual memory page is moved to an on-chip memory partition in which a processor core set whose access frequency is high is located, so that when the virtual memory page is subsequently accessed, a time delay caused by cross-partition access is reduced.
摘要:
Embodiments of the present invention disclose a method and a related device for determining a management mode of a shared virtual memory page. A method for determining a management mode of a shared virtual memory page may include: monitoring access characteristics of a process accessing the shared virtual memory page; and changing the management mode of the shared virtual memory page to a shared physical memory mode if the monitored access characteristics meet a first set condition and a current management mode of the shared virtual memory page is a distributed shared memory mode. The technical solutions provided in the embodiments of the present invention can enhance performance of accessing a shared virtual memory.