Image Processing Method and Computing Device
AssigneeHuawei Technologies Co., Ltd.
InventorsJinhui Cao, Zhe Wang, Jincheng Li
Life of this patent
Estimating the term…
Abstract
An image processing method to reduce access pressure of each image in an image set, where the image processing method includes obtaining a quantity of times each image layer in an image set is accessed, determining one or more first image layers, where a quantity of times the first image layer in the image set is accessed is greater than a first threshold, and the first image layer has at least two child image layers, generating a copy of the first image layer, and modifying some child image layers of the first image layer to child image layers of the copy of the first image layer.
Claims14
An image processing method, applicable to a computing device on which an image set is deployed, comprising:
- obtaining a quantity of times each image layer in the image set is accessed, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
- determining a first image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the first image layer is accessed is greater than a first threshold;
- generating a copy of the first image layer;
- and
- modifying a child image layer of the first image layer to a child image layer of the copy of the first image layer.
An image processing method, applicable to a management node in a computing device cluster comprising a shared storage, wherein each computing device in the computing device cluster can access an image set deployed on the shared storage, and wherein the image processing method comprises:
- obtaining a quantity of times each image layer in the image set is accessed, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
- determining a third image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the third image layer is accessed is greater than a third threshold;
- generating a copy of the third image layer;
- and
- modifying a child image layer of the third image layer to a child image layer of the copy of the third image layer.
A computing device, comprising:
- a processor;
- a memory coupled to the processor and configured to store an image set and a program code, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
- and
- a communications interface coupled to the processor and the memory, and
- wherein the program code causes the processor to be configured to:
- obtain a quantity of times each image layer in the image set is accessed;
- determine a first image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the first image layer is accessed is greater than a first threshold;
- generate a copy of the first image layer;
- and
- modify a child image layer of the first image layer to a child image layer of the copy of the first image layer.
A computing device configured to manage a computing device cluster comprising a shared storage, wherein each computing device in the computing device cluster can access an image set deployed on the shared storage, and wherein the computing device comprises:
- a processor;
- a memory coupled to the processor and configured to store a program code;
- and
- a communications interface coupled to the processor and the memory, and
- wherein the program code causes the processor to be configured to:
- obtain a quantity of times each image layer in the image set is accessed, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
- determine a third image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the third image layer is accessed is greater than a third threshold;
- generate a copy of the third image layer;
- and
- modify a child image layer of the third image layer to a child image layer of the copy of the third image layer.
Dependencies are inferred from the claim text.