Live kernel updates under memory constraints
Embodiments detect a memory constraint in response to a live kernel update (LKU) operation being planned; acquire memory from an external entity through a hardware connection in response to detecting the memory constraint; perform the LKU operation using the acquired memory from the external entity; release the acquired memory; and output a success message which indicates that the LKU operation has been successfully completed in response to the acquired memory being released.
1 . A computer-implemented method, comprising:
detecting, by a processor set, a memory constraint in response to a live kernel update (LKU) operation being planned;
acquiring, by the processor set, memory from an external entity through a hardware connection in response to detecting the memory constraint;
performing, by the processor set, the LKU operation using the acquired memory from the external entity;
releasing, by the processor set, the acquired memory; and
outputting, by the processor set, a success message which indicates that the LKU operation has been successfully completed in response to the acquired memory being released.
2 . The computer-implemented method of claim 1 , wherein the external entity comprises a storage class memory device.
3 . The computer-implemented method of claim 1 , wherein the external entity comprises a field-programmable gate array (FPGA) connected in a memory inception cloud setup.
4 . The computer-implemented method of claim 1 , wherein the hardware connection comprises an open coherent accelerator processor interface (OpenCAPI) which is connected to the external entity.
5 . The computer-implemented method of claim 1 , wherein the hardware connection comprises a compute express link (CXL) which is connected to the external entity.
6 . The computer-implemented method of claim 1 , further comprising spinning off a new virtual machine in response to detecting the memory constraint.
7 . The computer-implemented method of claim 6 , wherein the performing the LKU operation comprises performing the LKU operation with the new virtual machine using the acquired memory.
8 . The computer-implemented method of claim 1 , further comprising performing a clean-up operation on a virtual machine in response to completing the LKU operation on a new virtual machine.
9 . The computer-implemented method of claim 8 , wherein the performing the clean-up operation on the virtual machine further comprises freeing up the virtual machine.
10 . The computer-implemented method of claim 8 , further comprising:
deleting the virtual machine; and
renaming the new virtual machine with a name of the virtual machine.
11 . The computer-implemented method of claim 1 , further comprising moving memory pages from the external entity to a primary system which performs the LKU operation.
12 . A computer program product comprising one or more computer readable storage media having program instructions collectively stored on the one or more computer readable storage media, the program instructions executable to:
detect a memory constraint in response to a live kernel update (LKU) operation being planned;
acquire memory from an external entity through a hardware connection in response to detecting the memory constraint;
perform the LKU operation using the acquired memory from the external entity;
release the acquired memory; and
output a success message which indicates that the LKU operation has been successfully completed in response to the acquired memory being released.
13 . The computer program product of claim 12 , wherein the external entity comprises a storage class memory device.
14 . The computer program product of claim 12 , wherein the external entity comprises a field-programmable gate array (FPGA) connected in a memory inception cloud setup.
15 . The computer program product of claim 12 , wherein the hardware connection comprises an open coherent accelerator processor interface (OpenCAPI) which is connected to the external entity.
16 . The computer program product of claim 12 , wherein the hardware connection comprises a compute express link (CXL) which is connected to the external entity.
17 . The computer program product of claim 12 , further comprising spinning off a new virtual machine in response to detecting the memory constraint.
18 . The computer program product of claim 17 , wherein the performing the LKU operation comprises performing the LKU operation with the new virtual machine using the acquired memory.
19 . The computer program product of claim 12 , further comprising performing a clean-up operation on a virtual machine in response to completing the LKU operation on a new virtual machine.
20 . A system comprising:
a processor set, one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions executable to:
detect a memory constraint in response to a live kernel update (LKU) operation being planned;
spin off a new virtual machine in response to detecting the memory constraint;
acquire memory from an external entity through an open coherent accelerator processor interface (OpenCAPI) in response to detecting the memory constraint;
perform the LKU operation on the new virtual machine using the acquired memory from the external entity;
release the acquired memory; and
output a success message which indicates that the LKU operation has been successfully completed in response to the acquired memory being released.