summaryrefslogtreecommitdiff
path: root/meta-facebook
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2022-11-17 08:31:03 +0300
committerPatrick Williams <patrick@stwcx.xyz>2022-11-29 22:44:32 +0300
commit126591b38d4d623435cfef6023c9fa6d0dd9ead6 (patch)
treee37305b3c0e984a55f7f1e9c01a6ad5d22e13b8a /meta-facebook
parent181529f98239d5b5f1da0ad0d4af1caf4dfb2561 (diff)
downloadopenbmc-126591b38d4d623435cfef6023c9fa6d0dd9ead6.tar.xz
meta-bletchley: reduce burst times of motor-init-calibration
We notice the motor-init-calibration service spend more than 20 seconds for one run, which doesn't match the stop conditions with current service setting(more than 5 runs in 90 sec). Becaused motor-init-calibration services keep restart, it caused BMC CPU remain high utilization and trigger reboot action by phosphor-health-monitor. Reduce StartLimitBurst to 2 to ensure the service stops after attempt 2 failed. Tested results: root@bletchley:~# journalctl -u motor-init-calibration@6.service | grep systemd Nov 16 22:18:00 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:25 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:26 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:26 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 1. Nov 16 22:18:27 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:46 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 2. Nov 16 22:18:47 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Start request repeated too quickly. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:47 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I45c423deceb3cedd9157a479e0f33f9dbf270b8f
Diffstat (limited to 'meta-facebook')
-rw-r--r--meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/motor-init-calibration@.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/motor-init-calibration@.service b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/motor-init-calibration@.service
index e77c782829..da9cbec6d5 100644
--- a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/motor-init-calibration@.service
+++ b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/motor-init-calibration@.service
@@ -1,7 +1,7 @@
[Unit]
Description=Motor Initialize for sled%i
StartLimitIntervalSec=90
-StartLimitBurst=5
+StartLimitBurst=2
Requires=phosphor-gpio-presence@presence-sled%i.service
After=phosphor-gpio-presence@presence-sled%i.service
Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service