zlacker

[return to "MacBook Pro Insomnia"]
1. paulja+hb[view] [source] 2025-07-31 15:23:14
>>speckx+(OP)
This used to happen to my MacBook Pro, although it was a non Apple Silicon one. The issue was that I had changed the DHCP lease time on my router from the default to a really low value. I believe I had set it to 15 minutes. What I believe was happening was the MBP was waking up to renew its IP address every 15 minutes and by the time it went to sleep again, it was probably waking back up to repeat the process. Changing the value on the router back to its default completely fixed the battery drain issue on my MacBook Pro. I'd never have guessed the cause-effect except I made the change around the same time I purchased that new MacBook Pro and was paying more attention to any issues that might arise.
◧◩
2. ThePow+Tf[view] [source] 2025-07-31 15:50:16
>>paulja+hb
> I had changed the DHCP lease time on my router from the default to a really low value. I believe I had set it to 15 minutes.

What were you hoping to achieve by doing that?

◧◩◪
3. mlyle+Gg[view] [source] 2025-07-31 15:54:47
>>ThePow+Tf
I like low lease times. DHCP server knows what's really on the network, and if something requests lots and lots of the pool you'll be fine in 15-30 minutes.

If things are set to a really long time, >=12 hours, you find out the next day when everything is broken (or you get alerts in the middle of the night). If you set them to a randomized 15-90m span, you get things breaking immediately when you screw up the dhcp server.

◧◩◪◨
4. cruffl+bh[view] [source] 2025-07-31 15:59:03
>>mlyle+Gg
Hah. Your answer just has more questions. What on earth is requesting so many DHCP leases?
◧◩◪◨⬒
5. mlyle+im[view] [source] 2025-07-31 16:31:07
>>cruffl+bh
You've never accidentally spun something up that consumes all the leases?

It's just been a couple of times, but I've definitely done it (e.g. bridged a couple of networks that shouldn't have been).

But mostly, it's the other two things: it provides me with a list of hosts active now, and if the DHCP server is subtly broken I get a sentinel signal of something being wrong earlier (and it tends to be a partial instead of complete failure).

One more bonus: if I move something to a static lease, out of the pool, it'll renumber in a reasonable time and I don't need to go kick link state to get it to request again.

Things like really big caches and really long lease times: They're good for average performance, and they can let you ride out small problems. The flip side is that they tend to mask problems and to create really big demand transients at times. The trick is always to find a good middle ground.

◧◩◪◨⬒⬓
6. ThePow+kH5[view] [source] 2025-08-02 14:13:27
>>mlyle+im
Yeah, there's a lot of room to play between 900 and 86400 seconds.

Extremes of any sort generally aren't good. You fucked around and you found that out.

[go to top]