Check patentability & draft patents in minutes with Patsnap Eureka AI!

Docker container COW mechanism optimization method and system based on dynamic prefetching strategy

A docker container and optimization method technology, which is applied in the direction of instruments, program control design, program control devices, etc., can solve the problems of extra overhead COW optimization implementation complexity, etc., and achieve the effect of eliminating negative effects and high efficiency

Active Publication Date: 2019-07-26
HUAZHONG UNIV OF SCI & TECH
View PDF10 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the defects of the prior art, the purpose of the present invention is to solve the technical problems that the COPY UP operation of the prior art brings extra overhead and COW optimization realizes complexity

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Docker container COW mechanism optimization method and system based on dynamic prefetching strategy
  • Docker container COW mechanism optimization method and system based on dynamic prefetching strategy
  • Docker container COW mechanism optimization method and system based on dynamic prefetching strategy

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] First, determine whether the number of records in the metadata information table corresponding to the new Docker container is not higher than the preset value N, if so, all records in the table will be used as the metadata information of the image file for which the new Docker container will be COPY UP; Otherwise, according to the Timestamp Timestamp when all image files in the metadata information table corresponding to the new Docker container have recently been COPY UP, predict the metadata information of the image files that will be COPY UP for the new Docker container, and the predicted number of image files It is the default value N.

[0080] Select the latest N records with timestamp Timestamp as the metadata information of the image file that will be COPY UP for the new Docker container. The preset value N is preferably 100.

Embodiment 2

[0082] First, determine whether the number of records in the metadata information table corresponding to the new Docker container is not higher than the preset value N, if so, all records in the table will be used as the metadata information of the image file for which the new Docker container will be COPY UP; Otherwise, predict the metadata information of the image files that will be COPY UP for the new Docker container according to the Count of COPY UP operations performed on all image files in the metadata information table corresponding to the new Docker container, and the predicted number of times is the preset value N. The preset value N is preferably 100.

[0083] The COPY UP operation count of all image files in the metadata information table corresponding to the new Docker container is predicted to predict the metadata information of the image file that will be COPY UP operated by the new Docker container, as follows:

[0084] (1) Sum the Count of all records in the m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Docker container COW mechanism optimization method and system based on a dynamic prefetching strategy, and belongs to the field of container lightweight virtualization. The method comprises the steps of collecting metadata information of all mirror image files subjected to COPY UP operation within the life cycle of all Docker containers; according to collected metadata information, dynamically predicting a mirror image file of COPY UP operation to be executed during operation of the new Docker containers; and after the new Docker container is started, executing the COPY UP operation on the predicted mirror image file to be subjected to the COPY UP operation. Based on the characteristic that the internal operations of the containers with the same mirror image havethe same large probability, the mirror image file metadata information of the COPY UP operation executed in the Docker container is recorded. The historical information corresponding to the Docker mirror image is formed. By means of historical information, the mirror image files most likely to be subjected to COPY UP operation in the operation period of the new container are predicted, the mirrorimage files are subjected to COPY UP operation in advance in the initial operation period of the new container, and extra expenditure, generated by a COW mechanism, of the Docker containers is eliminated.

Description

technical field [0001] The invention belongs to the field of lightweight virtualization of containers, and more specifically relates to a method and system for optimizing a COW mechanism of a Docker container based on a dynamic prefetch strategy. Background technique [0002] With the continuous development of container technology, more and more users adopt lightweight virtualized container technology to deploy their own systems and applications, so as to iterate system and product versions more quickly, and quickly deploy a large number of services. At present, the Docker project occupies a major position in container technology. The storage drivers used by Docker are mainly OverlayFS, AUFS, DeviceMapper, and BtrFS. Due to performance and Linux kernel support, OverlayFS stands out among many storage drivers. OverlayFS is a stacked file system that relies on and builds on top of other underlying file systems (such as ext4, XFS, etc.), and does not actively participate in t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455G06F9/48
CPCG06F9/45558G06F9/4881G06F2009/45562G06F2009/45579
Inventor 石宣化金海刘伟姜焰
Owner HUAZHONG UNIV OF SCI & TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More