Common file caching for virtual private servers
AssigneeParallels IP Holdings GmbH
InventorsPavel Emelyanov, Kirill S. Korotaev, Stanislav S. Protassov, Serguei M. Beloussov, Alexander G. Tormasov
Life of this patent
Estimating the term…
Abstract
A host runs an operating system kernel. A plurality of virtual private servers (containers) is supported within the kernel. The containers use the same files. A template cache has pre-calculated file checksums. The checksum is calculated each time the file is created and/or modified. Each file has an inode containing an attribute indicating whether the checksum is calculated and stored along with the file. If the checksum is present, the process is redirected to access the file with the same inode in the shared disk cache.
Claims10
A computer implemented method for caching container files, the method comprising:
- creating a container running under an operating system kernel;
- saving container files into a container private directory;
- determining container files accessed by container processes;
- generating checksum file attributes for the container files accessed by container processes;
- assigning the checksum and size file attributes to files' inodes;
- checking for identical file inodes in a common file database;
- copying the container files into a disk cache, if the identical inodes are found;
- and
- adding a cache redirect link to the container files in the container private directory,
- wherein the redirect link points to copy of a corresponding container file located on the disk cache, and
- wherein the container files are copied into the disk cache in a lazy mode, after frequently accessed container files that do not have cache redirect links are detected.
A computer implemented method for caching container files, the method comprising:
- creating a container running under an operating system kernel;
- saving container files into a container private directory;
- determining container files accessed by container processes;
- generating checksum file attributes for the container files accessed by container processes;
- assigning the checksum and size file attributes to files' inodes;
- checking for identical file inodes in a common file database;
- copying the container files into a disk cache, if the identical inodes are found;
- and
- adding a cache redirect link to the container files in the container private directory,
- wherein the redirect link points to copy of a corresponding container file located on the disk cache, and
- wherein the checksum file attributes are calculated using any of:
- SHA 20;
- Gold Fish;
- ECB;
- SHA1;
- SHA2;
- SHA256;
- and
- SHA512.
A computer implemented method for caching container files, the method comprising:
- creating a container running under an operating system kernel;
- saving container files into a container private directory;
- determining container files accessed by container processes;
- generating checksum file attributes for the container files accessed by container processes;
- assigning the checksum and size file attributes to files' inodes;
- checking for identical file inodes in a common file database;
- copying the container files into a disk cache, if the identical inodes are found;
- and
- adding a cache redirect link to the container files in the container private directory,
- wherein the redirect link points to copy of a corresponding container file located on the disk cache, and
- further comprising recalculating the checksum attributes upon container file modifications.
A computer implemented method for caching container files, the method comprising:
- creating a container running under an operating system kernel;
- saving container files into a container private directory;
- determining container files accessed by container processes;
- generating checksum file attributes for the container files accessed by container processes;
- assigning the checksum and size file attributes to files' inodes;
- checking for identical file inodes in a common file database;
- copying the container files into a disk cache, if the identical inodes are found;
- and
- adding a cache redirect link to the container files in the container private directory,
- wherein the redirect link points to copy of a corresponding container file located on the disk cache, and
- deleting the container files from the disk cache upon expiration of container files' access time stamps by a user space daemon.
Dependencies are inferred from the claim text.