by loeg · 8y ago · 0 comments
Why make wakeup imprecise by default? The slop allows for some coalescing of nearby (in time) events into a single wakeup, saving power[0]. This article provides some figures that give a good intuition for why this might work: https://arstechnica.com/gadgets/2013/06/how-os-x-mavericks-w...
See also: tickless kernels in general[1]; FreeBSD switched to a tickless kernel with coalescing about 5.5 years ago[2].
[0]: https://en.wikipedia.org/wiki/Timer_coalescing
[1]: https://en.wikipedia.org/wiki/Tickless_kernel
[2]: https://svnweb.freebsd.org/base?view=revision&revision=24777...
If one of the best kept secrets of open source is that some BSD somewhere has great hardware support and battery life better than Windows and Linux... that would be awesome!
The question that was sort of implied but not directly asked might be: if you pick a random laptop, do I think it's likely a BSD will support it better than Linux? And there I think the honest answer is "no." Linux definitely has an advantage in breadth of driver coverage.
In many ways FreeBSD is a well-kept "secret," but it's not a panacea.