#6991: Update registrar to use start_watching_system() API
---------------------------------+----------------------------
Reporter: anevilyak | Owner: bonefish
Type: enhancement | Status: new
Priority: low | Milestone: R1
Component: Servers/registrar | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
---------------------------------+----------------------------
Comment (by tqh):
I'll see if I can take a stab at this, I was checking what is using cpu at
idle and 2% seems to be registrar timer_thread, and that seems to be this.
Changing it from 1s to 5s takes that down to 0.1% cpu. Checked with top.
Some reference for how to do it (from waddlesplash):
http://xref.plausible.coop/source/xref/haiku/headers/private/system/system_info.h#56
http://xref.plausible.coop/source/xref/haiku/src/servers/launch/LaunchDaemon.cpp#488
--
Ticket URL: <https://dev.haiku-os.org/ticket/6991#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.