Skip to contentSkip to conversation

dbus-sensors issue

DISCUSSION Jeff9 Chan(陳松儉_ASRockRack) 3 participants 4 messages Feb 7, 2025 – Feb 9, 2025

lore
Share & tools
lore
#0 lore raw

Hi all,
It appears that IO wait is very high all the time. This can be viewed by running top. It was traced down to dbus-sensors systemd units. When the units are running, IO wait is >90%. This can impact system performance and also impacts CPU utilization telemetry, since the idle task never runs, which normally means CPU is being completely utilized.

My platform uses below services, stop them will free the IO usage, any idea?

xyz.openbmc_project.hwmontempsensor.service
xyz.openbmc_project.fansensor.service
xyz.openbmc_project.adcsensor.service
xyz.openbmc_project.psusensor.service

best regards

Jeff Chan

#1 lore raw

See:
https://lore.kernel.org/lkml/[email protected]/
https://bugzilla.kernel.org/show_bug.cgi?id=217699
For services utilizing io_uring, when waiting for I/O, CPU time is counted as I/O rather than idle time.

Jian.

Quoted 6 lines

From: "Jeff9 Chan(陳松儉_ASRockRack)"<[email protected]>
Date:  Fri, Feb 7, 2025, 19:42
Subject:  [External] dbus-sensors issue
To: "[email protected]"<[email protected]>
Hi all,
It appears that IO wait is very high all the time. This can be viewed by running top. It was traced down to dbus-sensors systemd units. When the units are running, IO

 wait is >90%. This can impact system performance and also impacts CPU utilization telemetry, since the idle task never runs, which normally means CPU is being completely utilized.

Quoted 12 lines


My platform uses below services, stop them will free the IO usage, any idea?
xyz.openbmc_project.hwmontempsensor.service xyz.openbmc_project.fansensor.service xyz.openbmc_project.adcsensor.service xyz.openbmc_project.psusensor.service


best regards

Jeff Chan

#2 lore raw
Quoted 4 lines · Jian Zhang

See:
https://lore.kernel.org/lkml/[email protected]/
https://bugzilla.kernel.org/show_bug.cgi?id=217699
For services utilizing io_uring, when waiting for I/O, CPU time is counted as I/O rather than idle time.

Yep. So to be clear, this is just an accounting difference. It has no real measurement of a performance difference. "io_wait" is effectively "idle" now.

For similar reasons, phosphor-health-monitor doesn't consider 'iowait' part of the CPU utilization for determining if the CPU has been too busy for too long:

https://github.com/openbmc/phosphor-health-monitor/blob/ba29dbdd04a96a46e1972641c20bf5a8e930ed8f/health_metric_collection.cpp#L73

Quoted 21 lines

Jian.

Quoted 6 lines

From: "Jeff9 Chan(陳松儉_ASRockRack)"<[email protected]>
Date:  Fri, Feb 7, 2025, 19:42
Subject:  [External] dbus-sensors issue
To: "[email protected]"<[email protected]>
Hi all,
It appears that IO wait is very high all the time. This can be viewed by running top. It was traced down to dbus-sensors systemd units. When the units are running, IO

 wait is >90%. This can impact system performance and also impacts CPU utilization telemetry, since the idle task never runs, which normally means CPU is being completely utilized.

Quoted 12 lines


My platform uses below services, stop them will free the IO usage, any idea?
xyz.openbmc_project.hwmontempsensor.service xyz.openbmc_project.fansensor.service xyz.openbmc_project.adcsensor.service xyz.openbmc_project.psusensor.service


best regards

Jeff Chan

Signature · 1 line
Patrick Williams
#3 lore raw

Thanks a lot!

best regards

Jeff Chan

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Saturday, February 8, 2025 1:04 AM
To: Jian Zhang <[email protected]>
Cc: Jeff9 Chan(陳松儉_ASRockRack) <[email protected]>; [email protected]
Subject: Re: [External] dbus-sensors issue

Quoted 5 lines · Jian Zhang

See:
https://lore.kernel.org/lkml/20230716195007.731909670@linuxfoundation.
org/
https://bugzilla.kernel.org/show_bug.cgi?id=217699
For services utilizing io_uring, when waiting for I/O, CPU time is counted as I/O rather than idle time.

Yep. So to be clear, this is just an accounting difference. It has no real measurement of a performance difference. "io_wait" is effectively "idle" now.

For similar reasons, phosphor-health-monitor doesn't consider 'iowait' part of the CPU utilization for determining if the CPU has been too busy for too long:

https://github.com/openbmc/phosphor-health-monitor/blob/ba29dbdd04a96a46e1972641c20bf5a8e930ed8f/health_metric_collection.cpp#L73

Quoted 10 lines

Jian.

Quoted 8 lines

From: "Jeff9 Chan(陳松儉_ASRockRack)"<[email protected]> Date:  Fri, Feb 7, 2025, 19:42
Subject:  [External] dbus-sensors issue
To: "[email protected]"<[email protected]> Hi all,
It appears that IO wait is very high all the time. This can be viewed by running top. It was traced down to dbus-sensors systemd units. When the units are running, IO

Quoted 13 lines

 wait is >90%. This can impact system performance and also impacts CPU utilization telemetry, since the idle task never runs, which normally means CPU is being completely utilized.

Quoted 12 lines


My platform uses below services, stop them will free the IO usage, any idea?
xyz.openbmc_project.hwmontempsensor.service xyz.openbmc_project.fansensor.service xyz.openbmc_project.adcsensor.service xyz.openbmc_project.psusensor.service


best regards

Jeff Chan

--
Patrick Williams