Application process context compression and replay
Abstract
Application state data from a main memory may be compressed and the compressed data may be written to a first location in a mass storage. Updated application state data is generated, and the updated application state data is compressed from the main memory. The updated application state data is then written to a second location in the mass storage. Processing may then be paused on the application state data and updated application state data. The compressed application state data and compressed updated application state data stored in the mass storage is scanned and information corresponding to compressed application state data and updated compressed application state data stored in the mass storage is displayed using information from the scanned compressed application state data and compressed updated application state data.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (25 — 3 Independent, 22 Dependent)
- Claim 1Independent Claim
A method for application replay, comprising: compressing application state data from a main memory; writing the compressed application state data to a first location in a mass storage; generating updated application state data, wherein generating the updated application state data comprises processing two or more image frames; compressing, after processing the two or more image frames, the updated application state data from the main memory; writing updated application state data to a second location in the mass storage; pausing processing on the application state data and updated application state data; scanning compressed application state data and compressed updated application state data stored in the mass storage; using information from the scanned compressed application state data and compressed updated application state data to display information corresponding to compressed application state data and updated compressed application state data stored in the mass storage.
- Claim 2Depends on #1
The method of claim 1, further comprising: decompressing selected compressed application state data or selected compressed updated application state data stored in the mass storage; writing decompressed application state data or decompressed updated application state data to the main memory; processing of the decompressed application state data or decompressed updated application state data in main memory.
- Claim 3Depends on #2
The method of claim 2, further comprising clearing paused in-process application state data or in-process updated application state data from the main memory before writing the decompressed application state data or decompressed updated application state data to the main memory.
- Claim 4Depends on #2
The method of claim 2, wherein processing of the decompressed application state data or decompressed updated application state data in main memory includes restarting an application at a point in processing of the application that the application state data or updated application state data was generated before compression.
- Claim 5Depends on #1
The method of claim 1, further comprising reconstructing an image frame from the compressed application state data or the compressed updated application state data.
- Claim 6Depends on #5
The method of claim 5, wherein displaying information corresponding to the compressed application data and updated application data includes displaying a reconstructed image frame from the compressed application state data or the compressed updated application state data.
- Claim 7Depends on #5
The method of claim 5, wherein displaying information corresponding to the compressed application data and updated application data includes playing a reconstructed buffer of audio from the compressed application state data or the compressed updated application state data.
- Claim 8Depends on #1
The method of claim 1, further comprising reconstructing an audio buffer from the compressed application state data or the compressed updated application state data.
- Claim 9Depends on #1
The method of claim 1, wherein compressing the application state data or compressing the updated application state data further includes determining a compression type to apply to the application state data or the updated application state data.
- Claim 10Depends on #9
The method of claim 9, wherein determining the compression type includes determining whether to apply run length coding, dictionary type compression or a general compression algorithm.
- Claim 11Depends on #10
The method of claim 10, wherein the general compression algorithm includes Context tree Weighting (CTW) and dictionary type compression includes Lemple-Ziv-Welch compression, Lemple-Ziv-Huffman-Arithmetic-Markov (LZHAM) compression or DEFLATE compression.
- Claim 12Depends on #9
The method of claim 9, wherein compressing the updated application state data includes determining whether to apply interprediction to the update application state data.
- Claim 13Depends on #12
The method of claim 12, wherein applying inter prediction to the updated application state data includes taking an exclusive-or between the application state data and updated application state data.
- Claim 14Depends on #13
The method of claim 13, wherein applying inter-prediction to the updated application state data further includes dictionary compression of inter predicted and sharing a compression dictionary with compressed application state data.
- Claim 15Depends on #1
The method of claim 1, wherein application state data and updated application state data includes an image frame and application context.
- Claim 16Depends on #15
The method of claim 15, wherein the application conte ′ ″ − 1 includes processor registers, stack, and heap.
- Claim 17Depends on #15
The method of claim 15, wherein the application state data further includes emulated device state data.
- Claim 18Depends on #1
The method of claim 1, wherein displaying information corresponding to compressed application state data and updated compressed application state data stored in the mass storage further includes sending the information to a remote client.
- Claim 19Depends on #18
The method of claim 18, wherein the processing is paused in response to a request from a remote client.
- Claim 20Depends on #1
The method of claim 1, further comprising copying the application state data from a physical main memory to a virtual main memory space before compressing the application state data and comprising copying the updated application state data from the physical main memory to the virtual main memory space before compressing the updated application state data.
- Claim 21Depends on #20
The method of claim 20, wherein the virtual main memory space includes a portion of non-volatile memory reserved for the virtual main memory space.
- Claim 22Depends on #1
The method of claim 1, wherein compressing the updated application state data includes compressing updated application state data after a set interval of images frames are processed.
- Claim 23Depends on #22
The method of claim 22, wherein the set interval of image frames is defined by a user or the application state data.
- Claim 24Independent Claim
A system for application replay, comprising: a processor; a main memory coupled to the processor; a mass storage coupled to the main memory and the processor; instructions embodied in the main memory that when executed by the processor cause the processor to carry out the method for application replay including; compressing application state data from the main memory; writing the compressed application state data to a first location in the mass storage; generating updated application state data, wherein generating the updated application state data comprises processing two or more image frames; compressing, after processing the two or more image frames, the updated application state data from the main memory; writing updated application state data to a second location in the mass storage; pausing processing on the application state data and updated application state data; scan compressed application state data and compressed updated application state data stored in the mass storage; using information from the scanned compressed application state data and compressed updated application state data to display information corresponding to compressed application state data and updated compressed application state data stored in the mass storage.
- Claim 25Independent Claim
A non-transitory, computer readable medium having executable instructions embodied thereon the executable instructions, when executed by a computer cause the computer to carry out the method for application replay comprising: compressing application state data from a main memory; writing the compressed application state data to a first location in a mass storage; generating updated application state data, wherein generating the updated application state data comprises processing two or more image frames; compressing, after processing the two or more image frames, the updated application state data from the main memory; writing updated application state data to a second location in the mass storage; pausing processing on the application state data and updated application state data; scan compressed application state data and compressed updated application state data stored in the mass storage; using information from the scanned compressed application state data and compressed updated application state data to display information corresponding to compressed application state data and updated compressed application state data stored in the mass storage.
Technical Overview & Description
FIELD OF THE DISCLOSURE Aspects of the present disclosure are related to memory management, specifically related to application replay from compressed main memory pages. BACKGROUND OF THE DISCLOSURE Modern computer architectures use main memory to store data that is operated on by the processor. The processor may transfer information from the main memory to its registers to perform an operation and then transfer the register contents back to the main memory. The main memory as such, contains application state data which is a snapshot of the state of data being processed by the processor that has been moved from registers to main memory. The application state data may include application context such as processor registers, stack, and heap. Main memory data is periodically saved to a non-volatile memory, also known as mass storage, e.g., a hard disk drive (HDD) or solid state drive (SSD). During processing the processor may update application state data in the main memory without updating data stored in the mass storage; this is sometimes called a dirty page because the page data has been updated without being written to the mass storage. Application state data is stored in the main memory in one or multiple pages and each page is made up of multiple fixed size page frames or variable sized page segments. The processor maintains an address buffer that holds the locations of application state data within the main memory. Many operating systems implement memory swapping. This allows the operating systems to increase the size of main memory without having additional physical memory. Memory swapping uses a portion of non-volatile memory storage space as main memory. Swapping pulls application state data from main memory and writes it to a space in non-volatile memory while application processing is paused. The operating system may swap application state data written to this area of non-volatile memory back and forth between physical memory of the main memory and the area
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- International Search Report and Written Opinion mailed Jun. 30, 2023 for International Patent Application No. PCT/US23/18385.
- Wagner, C. Developing Your Own Replay System, Informa Game Developer. Online Article. Feb. 4, 2004 [retrieved on May 30, 2023] Retrieved from the Internet; entire document.
- Wikipedia Context Tree Weighting
- —
- Wikipedia, the free encyclopedia. Apr. 6, 2022 [retrieved on Jun. 2, 2023]. Retrieved from ; entire document, especially p. 1, para 3.
- Wikipedia Lempel-Ziv-Welch
- —
- Wikipedia, the free encyclopedia. Apr. 6, 2022 [retrieved on May 31, 2023]. Retrieved from; entire document, especially p. 1, para 3.
- Paul R. Wilson, Scott F. Kaplan, and Yannis Smaragdakis, Proceedings of the USENIX Annual Technical Conference,
- “