# US 2021/0279069 A1 · Booting a secondary operating system kernel with reclaimed primary kernel memory

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

- Number: US 2021/0279069 A1
- Document ID: US20210279069A1
- Status: Published application
- Kind: A1
- Application number: 16/809,311
- Filed: 2020-03-04
- Published: 2021-09-09
- Earliest claimed: 2020-03-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Mahesh Jagannath Salgaonkar; Ananth Narayan Mavinakayanahalli; Kamalesh Babulal; Aravinda Prasad
- Web page: https://patentgrep.com/patent/US20210279069A1

## CPC

- G06F 9/4406: {Loading of operating system}
- G06F 9/4408: {Boot device selection}
- G06F 12/023: {Free address space management}
- G06F 2212/251: Local memory within processor subsystem
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods that boot a secondary operating system (O/S) kernel with reclaimed primary kernel memory are disclosed herein. One method includes booting, via a processor performing a boot algorithm, a secondary kernel for an O/S in response to a primary kernel for the O/S going offline, in which the secondary kernel is configured to be loaded to a reserved memory area. The method further includes reclaiming memory space from the primary kernel for use in booting the secondary kernel in response to a determination that the reserved memory area includes insufficient memory space for completing the boot algorithm. Also disclosed herein are apparatus, systems, and computer program products that can include, perform, and/or implement the methods for providing a secondary kernel that includes a reserved area in memory.

## Claims

### Claim 1

An apparatus, comprising:
a boot module that boots, via a boot algorithm, a secondary kernel for an operating system (O/S) in response to a primary kernel for the O/S going offline, wherein the secondary kernel is configured to be loaded to a reserved memory area; and
a scavenge module that reclaims memory space from the primary kernel for use in booting the secondary kernel in response to a determination that the reserved memory area includes insufficient memory space for completing the boot algorithm,
wherein at least a portion of said modules comprise one or more of a set of hardware circuits, a set of programmable hardware devices, and executable code stored on a set of non-transitory computer-readable storage media.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein:
the scavenge module is further configured to:
reclaim an amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
the boot module is further configured to:
perform a portion of the boot algorithm,
notify the scavenge module that the reserved memory area includes insufficient memory space for performing a remaining portion of the boot algorithm, and
perform the remaining portion of the boot algorithm in response to the scavenge module reclaiming the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the scavenge module comprises a reclaim module that reclaims an amount of free memory pages from the primary kernel in reclaiming the amount of memory space from the primary kernel.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein:
the scavenge module further comprises a compression module that compresses user pages from the primary kernel in response to the amount of reclaimed free memory pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
the reclaim module is further configured to reclaim memory space for the primary kernel freed-up by the compressed user pages.

### Claim 5 (depends on 3)

The apparatus of claim 3, wherein:
the scavenge module further comprises a deduplication module that deduplicates user pages from the primary kernel in response to the amount of reclaimed free memory pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
the reclaim module is further configured to reclaim memory space for the primary kernel freed-up by the deduplicated user pages.

### Claim 6 (depends on 3)

The apparatus of claim 3, wherein the reclaim module is further configured to reclaim user pages from the primary kernel in response to the amount of reclaimed free memory pages from the primary kernel being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm.

### Claim 7 (depends on 3)

The apparatus of claim 3, wherein:
the reclaim module is further configured to reclaim an amount of user pages from the primary kernel;
the scavenge module further comprises a compression module that compresses user pages from the primary kernel in response to the amount of reclaimed free memory pages and the amount of reclaimed user pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
the reclaim module is further configured to reclaim memory space for the primary kernel freed-up by the compressed user pages.

### Claim 8 (depends on 3)

The apparatus of claim 3, wherein:
the reclaim module is further configured to reclaim an amount of user pages from the primary kernel;
the scavenge module further comprises:
a deduplication module that deduplicates user pages from the primary kernel in response to the amount of reclaimed free memory pages and the amount of reclaimed user pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
the reclaim module is further configured to reclaim memory space for the primary kernel freed-up by the deduplicated user pages.

### Claim 9

A method, comprising:
booting, via a processor performing a boot algorithm, a secondary kernel for an operating system (O/S) in response to a primary kernel for the O/S going offline, wherein the secondary kernel is configured to be loaded to a reserved memory area; and
reclaiming memory space from the primary kernel for use in booting the secondary kernel in response to a determination that the reserved memory area includes insufficient memory space for completing the boot algorithm.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
reclaiming an amount of memory space from the primary kernel that is sufficient to complete the boot algorithm;
performing a portion of the boot algorithm;
determining that the reserved memory area includes insufficient memory space for performing a remaining portion of the boot algorithm; and
performing the remaining portion of the boot algorithm in response to reclaiming the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm.

### Claim 11 (depends on 10)

The method of claim 10, wherein reclaiming the amount of memory space from the primary kernel comprises reclaiming an amount of free memory pages from the primary kernel.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
compresses user pages from the primary kernel in response to the amount of reclaimed free memory pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
reclaiming memory space for the primary kernel freed-up by the compressed user pages.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
deduplicating user pages from the primary kernel in response to the amount of reclaimed free memory pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
reclaiming memory space for the primary kernel freed-up by the deduplicated user pages.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
reclaiming user pages from the primary kernel in response to the amount of reclaimed free memory pages from the primary kernel being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm.

### Claim 15

A computer program product comprising a computer-readable storage medium including program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
boot, via a boot algorithm, a secondary kernel for an operating system (O/S) in response to a primary kernel for the O/S going offline, wherein the secondary kernel is configured to be loaded to a reserved memory area; and
reclaim memory space from the primary kernel for use in booting the secondary kernel in response to a determination that the reserved memory area includes insufficient memory space for completing the boot algorithm.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the program instructions further cause the processor to:
reclaim an amount of memory space from the primary kernel that is sufficient to complete the boot algorithm;
perform a portion of the boot algorithm;
determine that the reserved memory area includes insufficient memory space for performing a remaining portion of the boot algorithm; and
perform the remaining portion of the boot algorithm in response to reclaiming the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the program instructions causing the processor to reclaim the amount of memory space from the primary kernel further causes the processor to reclaim an amount of free memory pages from the primary kernel.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the program instructions further cause the processor to:
compress user pages from the primary kernel in response to the amount of reclaimed free memory pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
reclaim memory space for the primary kernel freed-up by the compressed user pages.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein the program instructions further cause the processor to:
deduplicate user pages from the primary kernel in response to the amount of reclaimed free memory pages being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm; and
reclaim memory space for the primary kernel freed-up by the deduplicated user pages.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein the program instructions further cause the processor to:
reclaim user pages from the primary kernel in response to the amount of reclaimed free memory pages from the primary kernel being less than the amount of memory space from the primary kernel that is sufficient to complete the boot algorithm.
