Skip to content

node-agent consumes huge amount of resources #198

@dahorak

Description

@dahorak

Several recent versions of tendrl-node-agent constantly consumes huge amount of resources (CPU).

Check the the %CPU column in the following (truncated) output from top (this is one time hit, but it's very similar for long period of time):

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                          
11192 root      20   0  357212  26528   5004 R  91.6  1.4   9:35.22 tendrl-node-age   

You can check it via following commands, which print the CPU and Memory usage of tendrl-node-agent each 5 second:

while true;
  do ps -p $(echo $(ps aux | grep [t]endrl-node-agent | awk '{print $2}') | sed 's/ /,/') -o %cpu,%mem,cmd -h;
  sleep 5;
done

For example (header added manually):

%CPU %MEM CMD
65.5  1.4 /usr/bin/python /usr/bin/tendrl-node-agent
65.6  1.4 /usr/bin/python /usr/bin/tendrl-node-agent
65.5  1.4 /usr/bin/python /usr/bin/tendrl-node-agent
65.5  1.4 /usr/bin/python /usr/bin/tendrl-node-agent
65.6  1.4 /usr/bin/python /usr/bin/tendrl-node-agent
65.5  1.4 /usr/bin/python /usr/bin/tendrl-node-agent
65.5  1.4 /usr/bin/python /usr/bin/tendrl-node-agent

When you stop the tendrl-node-agent service, it unfailingly lower the system load:

# uptime 
 15:35:21 up 33 min,  4 users,  load average: 1.20, 1.10, 0.98

# systemctl stop tendrl-node-agent
...
# uptime 
 15:38:33 up 36 min,  4 users,  load average: 0.05, 0.57, 0.79

This apply on the following versions of tendrl packages:

tendrl-commons-1.2-02_01_2017_18_29_12.noarch
tendrl-gluster-integration-1.2-02_01_2017_14_39_11.noarch
tendrl-node-agent-1.2-02_01_2017_14_21_11.noarch

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions