Re: Faster unhibernate by skipping devices

2021-11-10 Thread Theo de Raadt
You are talking about -current. -current unhibernate has a shortcut where it skips attaching some devices in the bsd.booted "unhibernate" kernel. 7.0 does not have that change. Does 7.0 behave better? If 7.0 behaves better, are you able to backout the the diff which skips attaching devices, and

Re: Faster unhibernate by skipping devices

2021-11-10 Thread Lucas
Since I'm using a snapshot with this, almost everytime I unhibernate I get a "false start": devices start to get enumerated and at one point, the machine reboots and goes back to the POST screen. Most of the time, the second time it boots normally. If it helps, most of the time there are around 8

Faster unhibernate by skipping devices

2021-10-24 Thread Theo de Raadt
At the last hackathon I observed high elapsed time when the unhibernate bsd.booted kernel attaches unneccessary drivers, and then detatches a vast number of them when suspending to bounce to the old image. This diff skips attaching those devices. The current list is all tape and network devices (