# 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

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,217,062 B2
- Document ID: US12217062B2
- Status: Granted
- Kind: B2
- Application number: 18/067,999
- Filed: 2022-12-19
- Published: 2023-07-20
- Granted: 2025-02-04
- Earliest claimed: 2022-01-14
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Hidemi Sasaki
- Web page: https://patentgrep.com/patent/US12217062B2

## CPC

- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0673: {Single storage device}
- G06F 8/654: using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An information processing apparatus that is capable of reducing deterioration of usability resulting from booting in a boot mode that is different from a boot mode of the last boot time. The information processing apparatus includes a memory, a storage unit that stores 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 preferentially secures an area storing a temporary file in the storage unit and a second boot mode that preferentially secures an area storing the swap file in the storage unit, and adjust a size of the swap file depending on a boot mode set.

## Claims

### Claim 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.

### Claim 2 (depends on 1)

The information processing apparatus according to claim 1, wherein the first boot mode is a boot mode for maintaining and preserving at least one of hardware and software of the image forming apparatus so that the image forming apparatus will be normally booted in the second boot mode.

### Claim 3 (depends on 2)

The information processing apparatus according to claim 2, wherein the first boot mode is a boot mode for updating firmware of the information processing apparatus.

### Claim 4 (depends on 2)

The information processing apparatus according to claim 2, wherein the first boot mode is a boot mode used in assembling the information processing apparatus at a factory and in inspecting the information processing apparatus.

### Claim 5 (depends on 2)

The information processing apparatus according to claim 2, wherein the first boot mode is a boot mode for degenerating a part of functions of the firmware of the information processing apparatus.

### Claim 6 (depends on 1)

The information processing apparatus according to claim 1, wherein the second boot mode is a boot mode for enabling a normal operation of the information processing apparatus.

### Claim 7 (depends on 1)

The information processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory to delete the part of the swap file stored in the storage unit so that a size of a free space in the storage unit becomes a predetermined size in the case where the first boot mode is set.

### Claim 8 (depends on 1)

The information processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory to calculate a reduction size of the swap file stored in the storage unit based on a prescribed size corresponding to the boot mode set.

### Claim 9 (depends on 1)

The information processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory to:
estimate a maximum size of the temporary file written in a partition of the storage unit in which the temporary file is stored based on a data writing performance to the partition; and
calculate a reduction size of the swap file stored in the storage unit based on the maximum size estimated.

### Claim 10 (depends on 1)

The information processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory to:
estimate a size of an area storing the temporary file needed in the storage unit based on a past record; and
calculate a reduction size of the swap file stored in the storage unit based on the size estimated.

### Claim 11 (depends on 1)

The information processing apparatus according to claim 1, wherein the at least one processor executes instructions in the memory to calculate a reduction size of the swap file stored in the storage unit based on information provided from a control process including a process storing the temporary file in the storage unit.

### Claim 12

A control method for an information processing apparatus equipped with a memory and a storage unit storing a swap file used as a substituted storage area of the memory, the control method comprising:
securing an area storing a temporary file in the storage unit by deleting a part of the swap file stored in the storage unit based on a status of use of the storage unit and maintaining a remaining part of the swap file when booting the information processing apparatus in a first boot mode; and
securing an area storing the swap file in the storage unit by complementing 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 when booting the information processing apparatus in a second boot mode after booting the information processing apparatus in the first boot mode.

### Claim 13

A non-transitory computer-readable storage medium storing a control program causing a computer to execute a control method for an information processing apparatus equipped with a memory and a storage unit storing a swap file used as a substituted storage area of the memory, the control method comprising:
securing an area storing a temporary file in the storage unit by deleting a part of the swap file stored in the storage unit based on a status of use of the storage unit and maintaining a remaining part of the swap file when booting the information processing apparatus in a first boot mode; and
securing an area storing the swap file in the storage unit by complementing 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 when booting the information processing apparatus in a second boot mode after booting the information processing apparatus in the first boot mode.
