diff options
author | Kazuhito Hagio <k-hagio@ab.jp.nec.com> | 2019-07-18 09:58:56 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-07-29 18:45:18 +0100 |
commit | 3253179b207c2616ce238e2bb765635fe59e6dd2 (patch) | |
tree | 9600f523ba53f9a0474817b8367d8a376154b9c1 /po/nso.po | |
parent | b5d72bd91c8685e3551d6e796ca8559304b45785 (diff) | |
download | sos-3253179b207c2616ce238e2bb765635fe59e6dd2.tar.gz |
[utilities] Fix high CPU usage and slow command collection
commit fc6721ac83c2 ("[Plugin] Terminate running commands when a plugin
exceeds timeout") introduced a polling method to sos_get_command_output()
but it is busy wait, and seems to increase the CPU usage and slow down
AsyncReader significantly.
As a result, a command that outputs much data like journalctl takes
longer time, and the plugin times out.
Inserting a sleep is a possible fix for this.
Resolves: #1732
Signed-off-by: Kazuhito Hagio <k-hagio@ab.jp.nec.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'po/nso.po')
0 files changed, 0 insertions, 0 deletions