Class data loading acceleration
AssigneeInternational Business Machines Corporation
InventorsQin Yue Chen, Yong Xin Qi, Qi Liang, Shuai Wang
Life of this patent
Estimating the term…
Abstract
A method, computer system, and computer program product for accelerating class data loading in a containers environment are provided. In response to a first container in a containers environment being created from a first image, at least one archive file containing a set of classes from the first image can be loaded. Then a respective class sharing file for each of the at least one archive file can be generated. The class sharing file is stored in a shared location. A second container in the containers environment is created from a second image. If a class sharing file from the archive is found in the shared location, that class sharing file can be used.
Claims20
A computer-implemented method, comprising:
- creating a container from an image, wherein the image includes at least one layer, each layer having at least one archive file, each archive file containing a class sharing file;
- creating an image volume in a shared location, wherein the image volume stores an instantiated image, and wherein the image and the image volume are identified by a same unique image identifier;
- before loading each layer into the image volume, searching the shared location for a class sharing file having a class sharing file identifier that matches a class sharing file identifier of the class sharing file in the image;
- in response to locating a matching class file in the shared location, storing a link to the class file from the shared location in the image volume;
- and
- in response to not locating the matching class file in the shared location, loading the class sharing file from the image to the image volume as a new writable layer.
A computer system, comprising one or more computer processors;
- one or more computer readable storage media;
- computer program instructions, the computer program instructions being stored on the one or more computer readable storage media for execution by the one or more computer processors, and causing the one or more computer processors to execute the method comprising:
- creating a container from an image, wherein the image includes at least one layer, each layer having at least one archive file, each archive file containing a class sharing file;
- creating an image volume in a shared location, wherein the image volume stores an instantiated image, and wherein the image and the image volume are identified by a same unique image identifier;
- before loading each layer into the image volume, searching the shared location for a class sharing file having a class sharing file identifier that matches a class sharing file identifier of the class sharing file in the image;
- in response to locating a matching class file in the shared location, storing a link to the class file from the shared location in the image volume;
- and
- in response to not locating the matching class file in the shared location, loading the class sharing file from the image to the image volume as a new writable layer.
A computer program product, comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform actions of:
- A computer-implemented method, comprising:
- creating a container from an image, wherein the image includes at least one layer, each layer having at least one archive file, each archive the containing a class sharing file;
- creating an image volume in a shared location, wherein the image volume stores an instantiated image, and wherein the image and the image volume are identified by a same unique image identifier;
- before loading each layer into the image volume, searching the shared location for a class sharing file having a class sharing file identifier that matches a class sharing file identifier of the class sharing file in the image;
- in response to locating a matching class the in the shared location, storing a link to the class the from the shared location in the image volume;
- and
- in response to not locating the matching class file in the shared location, loading the class sharing file from the image to the image volume as a new writable layer.
Dependencies are inferred from the claim text.