US 11,921,680 B2
Speedup containers in production by ignoring sync to file system
Giuseppe Scrivano, Milan (IT); and Daniel Walsh, Westford, MA (US)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by RED HAT, INC., Raleigh, NC (US)
Filed on Sep. 30, 2020, as Appl. No. 17/038,462.
Claims priority of provisional application 63/051,289, filed on Jul. 13, 2020.
Prior Publication US 2022/0012212 A1, Jan. 13, 2022
Int. Cl. G06F 7/00 (2006.01); G06F 16/14 (2019.01); G06F 16/16 (2019.01); G06F 16/17 (2019.01); G06F 16/178 (2019.01); G06F 16/182 (2019.01)
CPC G06F 16/1824 (2019.01) [G06F 16/148 (2019.01); G06F 16/164 (2019.01); G06F 16/1734 (2019.01); G06F 16/178 (2019.01)] 17 Claims
OG exemplary drawing
 
1. A method comprising:
initializing a build of a container, wherein the container is an isolated execution environment of a computing device;
during the initializing, mounting a file system of the container and flagging the file system of the container to indicate that requests to synchronize the file system of the container are to be ignored during the build of the container; and
during the build of the container:
saving container data in a volatile memory of the computing device allocated to the container;
receiving a sync operation from the container at an operating system kernel, wherein the sync operation requests the operating system kernel to synchronize the container data from the volatile memory allocated to the container to a persistent storage of the computing device allocated to the container for persistent storage of the file system;
determining, by a processing device executing an operating system kernel, whether the file system indicates that the sync operation is to be ignored; and
in response to determining that the file system indicates that the sync operation is to be ignored, preventing performance of the sync operation while providing a response to the container that the sync operation was successfully performed by the processing device executing the operating system kernel.