Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: time.monotonic() roll over Date: Thu, 04 Dec 2014 22:51:00 +0200 Organization: A noiseless patient Spider Lines: 21 Message-ID: <87wq67nnpn.fsf@elektro.pacujo.net> References: <54807cfd$0$2311$426a74cc@news.free.fr> <87vblr8lcw.fsf@elektro.pacujo.net> <87r3wf8jy8.fsf@elektro.pacujo.net> <87ppbzp9qq.fsf@elektro.pacujo.net> <87wq6788op.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="5989"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UsDRK6XnONWF+xuR8vvv3" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:C27wROU5Mx3Ecdnk4ZknzvQqiIo= sha1:vdNwQf0Y28NA/h2eASfDSOMz8wI= Xref: csiph.com comp.lang.python:81949 Chris Angelico : > 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