dfoderick/fullcycle

CPU issue with reboot command

dfoderick opened this issue · 2 comments

After the reboot command (ssh) there is some kind of cpu drain on the rpi. CPU usage for when_restart.py grows until the controller becomes extremely slow. It doesn't happen after switch or api reset commands.

To reproduce:

  1. Send reboot command to a miner.
  2. Command executes and miner does reboot.
  3. Watch when_restart.py using 'ps - aux'
    CPU time and % will grow and grow.

Also happened to provision command which also uses ssh. Could be related to ssh client. Work around is to restart the component using supervisor.

Fixed with this PR
#5