Configuring Linux to suspend to disk in ACPI G2 Soft Off - so the Google Compute Engine can pause and restore a proactive machine through disk

Google Compute Engine rents all sizes of Linux virtual machines from 1 to 64 cores at various prices. There are preempt-able instancesapproximately 1/4 of the price of guaranteed copies, but copies that can be removed can be interrupted at any time (with ACPI G2 warning and ~ 30 seconds before hard cutoff). Although you can ensure that the script starts and shuts down, the usual approach seems to lead to unnecessary overhead for then creating additional software that allows you to interrupt the calculations and manage partial results of the calculations, while pausing the / restore disk - from-disk, seen on laptops and desktops, can be a much simpler way to store and resume computing, and is therefore preferable.

If I started a Linux-privileged virtual machine on GCE, is it possible to suspend the state of the virtual machine on disk (aka giibernate) and restart the new preventive virtual machine from disk? My idea:

  • Launch the new privileged Linux virtual machine.
  • When the OS receives a suspension notification (ACPI G2 Soft Off), then start the suspension on disk - Linux OS hibernation.
  • Launch the new proactive Linux virtual machine from a paused image, that is, restore the previous virtual machine and continue the calculation.

How to configure Linux to pause / restore this way?

+4
source share

All Articles