Project

General

Profile

Actions

action #40538

open

Reset/Clear guest RAM when it reboots in QEMU to reduce RAM snapshot size

Added by rpalethorpe over 5 years ago. Updated almost 4 years ago.

Status:
Workable
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2018-09-03
Due date:
% Done:

0%

Estimated time:

Description

During installation 4GB+ of RAM can be used by the guest. Most of the time the RAM usage is much lower than this.

After installation completes the system is rebooted and then a snapshot is taken. In theory the snapshot should be very small because the system has only just booted, however it appears that QEMU thinks all the RAM is still in use and saves it to the snapshot. This might not be unexpected because on bare metal the RAM is preserved between reboots on modern systems. However, assuming that it is not relied upon by the guest OS, we don't need it to happen and can save some time.

Some ideas to solve this:

  • Use the virtio memory balloon
  • Use the -no-reboot switch and restart the QEMU process if it exits unexpectedly.
  • Patch QEMU to clear (some of) the RAM when the guest initiates a reboot.

Related issues 1 (1 open0 closed)

Related to openQA Project - action #59109: use ballooning to improve snapshot performanceNew2019-11-05

Actions
Actions

Also available in: Atom PDF