Searched hist:"4 eca251085f83caec4957d3bea812d51c1a5d3b4" (Results 1 – 3 of 3) sorted by relevance
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | sdrutils.cpp | diff 4eca251085f83caec4957d3bea812d51c1a5d3b4 Mon Jun 20 23:14:51 CDT 2022 Willy Tu <wltu@google.com> dbus-sdr: Remove excessive `Failed to GetAll` error message
The `Failed to GetAll` message will happen if any of the sensor doesn't have `Inventory.Decorator.Ipmi` dbus interface. Instead of making a `GetAll` call to all sensors, we will check if the sensor have the interface first before requesting it. This will remove the need to attempt sigificantly amount of unnecessary dbus calls.
Tested: ipmitool sdr return the same sensor as before, but with no excessive error message.
There is also some performance gain after removing the extra dbus calls.
Before, ``` $ time ipmitool sdr | wc -l 346
real 0m13.786s user 0m0.315s sys 0m0.115s
$ time ipmitool sdr | wc -l 346
real 0m14.692s user 0m0.274s sys 0m0.196s ```
After, ``` $ time ipmitool sdr | wc -l 346
real 0m11.765s user 0m0.205s sys 0m0.155s
$ time ipmitool sdr | wc -l 346
real 0m11.403s user 0m0.269s sys 0m0.141s ```
Change-Id: Ieab19fbae9e1fb40c2cfac9cd584cf40dba3f500 Signed-off-by: Willy Tu <wltu@google.com>
|
H A D | sensorcommands.cpp | diff 4eca251085f83caec4957d3bea812d51c1a5d3b4 Mon Jun 20 23:14:51 CDT 2022 Willy Tu <wltu@google.com> dbus-sdr: Remove excessive `Failed to GetAll` error message
The `Failed to GetAll` message will happen if any of the sensor doesn't have `Inventory.Decorator.Ipmi` dbus interface. Instead of making a `GetAll` call to all sensors, we will check if the sensor have the interface first before requesting it. This will remove the need to attempt sigificantly amount of unnecessary dbus calls.
Tested: ipmitool sdr return the same sensor as before, but with no excessive error message.
There is also some performance gain after removing the extra dbus calls.
Before, ``` $ time ipmitool sdr | wc -l 346
real 0m13.786s user 0m0.315s sys 0m0.115s
$ time ipmitool sdr | wc -l 346
real 0m14.692s user 0m0.274s sys 0m0.196s ```
After, ``` $ time ipmitool sdr | wc -l 346
real 0m11.765s user 0m0.205s sys 0m0.155s
$ time ipmitool sdr | wc -l 346
real 0m11.403s user 0m0.269s sys 0m0.141s ```
Change-Id: Ieab19fbae9e1fb40c2cfac9cd584cf40dba3f500 Signed-off-by: Willy Tu <wltu@google.com>
|
/openbmc/phosphor-host-ipmid/include/dbus-sdr/ |
H A D | sdrutils.hpp | diff 4eca251085f83caec4957d3bea812d51c1a5d3b4 Mon Jun 20 23:14:51 CDT 2022 Willy Tu <wltu@google.com> dbus-sdr: Remove excessive `Failed to GetAll` error message
The `Failed to GetAll` message will happen if any of the sensor doesn't have `Inventory.Decorator.Ipmi` dbus interface. Instead of making a `GetAll` call to all sensors, we will check if the sensor have the interface first before requesting it. This will remove the need to attempt sigificantly amount of unnecessary dbus calls.
Tested: ipmitool sdr return the same sensor as before, but with no excessive error message.
There is also some performance gain after removing the extra dbus calls.
Before, ``` $ time ipmitool sdr | wc -l 346
real 0m13.786s user 0m0.315s sys 0m0.115s
$ time ipmitool sdr | wc -l 346
real 0m14.692s user 0m0.274s sys 0m0.196s ```
After, ``` $ time ipmitool sdr | wc -l 346
real 0m11.765s user 0m0.205s sys 0m0.155s
$ time ipmitool sdr | wc -l 346
real 0m11.403s user 0m0.269s sys 0m0.141s ```
Change-Id: Ieab19fbae9e1fb40c2cfac9cd584cf40dba3f500 Signed-off-by: Willy Tu <wltu@google.com>
|