US 12,367,058 B2
Efficient disk cache management for virtual machines
Michael Tsirkin, Raleigh, NC (US); Andrea Arcangeli, Raleigh, NC (US); and Giuseppe Scrivano, Raleigh, NC (US)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Jun. 8, 2022, as Appl. No. 17/835,466.
Prior Publication US 2023/0401078 A1, Dec. 14, 2023
Int. Cl. G06F 9/44 (2018.01); G06F 3/06 (2006.01); G06F 9/455 (2018.01)
CPC G06F 9/45558 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0659 (2013.01); G06F 3/0664 (2013.01); G06F 3/0673 (2013.01); G06F 9/45545 (2013.01); G06F 2009/45579 (2013.01); G06F 2009/45583 (2013.01); G06F 2009/45591 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A system comprising:
a memory;
a processor in communication with the memory; and
a hypervisor, wherein the hypervisor is configured to:
store, in the memory, data written by a virtual machine (VM) as dirty memory at least until the data is written back into a data storage;
assign a persistence setting for the VM or the data storage;
based on the persistence setting being a first setting, periodically trigger write back of at least a portion of the dirty memory into the data storage; and
based on the persistence setting being a second setting, exclude the dirty memory of the VM from periodically triggered write back operations of the hypervisor.