A non-transitory computer-readable recording medium having stored therein a memory control program applied to an information processing apparatus comprising a first memory that stores data in a unit of page, a second memory that stores data of a page of a migration target from the first memory, and a processor comprising a plurality of calculating cores, wherein:
- the memory control program causes a first calculating core, being one of the plurality of calculating cores and using the first memory, to execute a process comprising registering a page to which the first calculating core makes a data access into a plurality of first links representing an order of migration of pages of a page group allocated to the first calculating core;
- and
- the memory control program causes a second calculating core being one of the plurality of calculating cores to execute a process comprising:
- referring to a second link being provided for an operating system and managing a plurality of pages selected in accordance with the order of migration among the page group of the plurality of first links as a group of candidate pages to be migrated to the second memory;
- and
- migrating data of a page selected from the group of the second link from the first memory to the second memory.