US 12,217,062 B2
Information processing apparatus equipped with storage unit storing swap file, control method therefor, and storage medium storing control program therefor
Hidemi Sasaki, Ibaraki (JP)
Assigned to CANON KABUSHIKI KAISHA, Tokyo (JP)
Filed by CANON KABUSHIKI KAISHA, Tokyo (JP)
Filed on Dec. 19, 2022, as Appl. No. 18/067,999.
Claims priority of application No. 2022-004478 (JP), filed on Jan. 14, 2022.
Prior Publication US 2023/0229455 A1, Jul. 20, 2023
Int. Cl. G06F 9/4401 (2018.01); G06F 3/06 (2006.01)
CPC G06F 9/4411 (2013.01) [G06F 3/0616 (2013.01); G06F 3/0634 (2013.01); G06F 3/0673 (2013.01)] 13 Claims
OG exemplary drawing
 
1. An information processing apparatus comprising:
a memory;
a storage unit configured to store a swap file used as a substituted storage area of the memory; and
at least one processor that executes instructions stored in the memory to:
set either of a first boot mode that secures an area storing a temporary file in the storage unit and a second boot mode that secures an area storing the swap file in the storage unit;
delete a part of the swap file stored in the storage unit based on a status of use of the storage unit and maintain a remaining part of the swap file, in a case where the first boot mode is set; and
complement the swap file by adding to the remaining part of the swap file so that a size of the swap file stored in the storage unit becomes a prescribed size, in a case where the second boot mode is set when booting the information processing apparatus after booting the information processing apparatus in the first boot mode.