time.monotonic() roll over

Marko Rauhamaa marko at pacujo.net
Thu Dec 4 15:51:00 EST 2014


Chris Angelico <rosuav at gmail.com>:

> Even when I do suspend a VM, I often terminate applications in it, and
> just use suspension to save having to boot the OS every time.

One interesting detail is DHCP leases.

When it is resumed from suspension, a linux computer thinks it still has
the old IP address, which might have already been granted to some other
computer on the network. Thus, linux distros are equipped with hacky
scripts that get executed soon after the machine is resumed (and before
a lot of damage is done). One of them forces a DHCP renegotiation.

A similar scheme is missing from virtual machines: a VM that wakes up
from a snapshot doesn't automatically go through the resume scripts,
even though it arguably should.

Systemd probably shuffles the situation still more.


Marko



More information about the Python-list mailing list