vrouter-agent continously hogs CPU with flow_cache_timeout of 1200

Bug #1505615 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Medium
Ashok Singh
Trunk
Fix Committed
Medium
Ashok Singh

Bug Description

Set flow_cache_timeout of 1200 for some flow related testing and restarted vrouter-agent

It is seen that contrail-vrouter-agent continuously hogs CPU forever
If i reduce it to 600, then things are fine

root@nodek1:/var/log/contrail# top

top - 03:40:15 up 19:45, 5 users, load average: 25.58, 25.45, 24.48
Tasks: 411 total, 2 running, 409 sleeping, 0 stopped, 0 zombie
%Cpu(s): 9.8 us, 2.2 sy, 0.0 ni, 87.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 13166488+total, 2983164 used, 12868172+free, 146820 buffers
KiB Swap: 13410713+total, 0 used, 13410713+free. 714340 cached Mem

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25944 root 20 0 2497396 76840 37964 R 2721 0.1 345:58.34 contrail-vroute
  124 root 20 0 0 0 0 S 6.3 0.0 0:27.13 ksoftirqd/10
  174 root 20 0 0 0 0 S 6.3 0.0 0:26.93 ksoftirqd/20
27638 root 20 0 23940 3140 2452 R 6.3 0.0 0:00.01 top
    1 root 20 0 33644 4112 2616 S 0.0 0.0 0:08.99 init
    2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
    3 root 20 0 0 0 0 S 0.0 0.0 0:26.23 ksoftirqd/0

Tags: vrouter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/14408
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/14408
Committed: http://github.org/Juniper/contrail-controller/commit/e51bdabe676866b74feeadf8cd8b94b1896bd411
Submitter: Zuul
Branch: R2.20

commit e51bdabe676866b74feeadf8cd8b94b1896bd411
Author: Ashok Singh <email address hidden>
Date: Tue Oct 13 21:24:36 2015 -0700

Fix cpu hog of contrail-vrouter-agent caused by setting flow_cache_timeout to high values.

The high value of flow_cache_timeout when used to compute the flow timer interval, does not
fit in uint32 field. We need to interpret the value as uint64 instead of uint32.
Closes-Bug: #1505615

Change-Id: Ie48e6ced9191a10a14f68112cd94d64cc50bc2f0

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/14498
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/14498
Committed: http://github.org/Juniper/contrail-controller/commit/a09b4a2279c1014ea68276483cec874915295206
Submitter: Zuul
Branch: master

commit a09b4a2279c1014ea68276483cec874915295206
Author: Ashok Singh <email address hidden>
Date: Fri Oct 16 11:13:33 2015 -0700

Fix cpu hog of contrail-vrouter-agent caused by setting flow_cache_timeout to high values.

The high value of flow_cache_timeout when used to compute the flow timer interval, does not
fit in uint32 field. We need to interpret the value as uint64 instead of uint32.
Closes-Bug: #1505615

Change-Id: I4d705b26d5638448078f3eec0e3d5e9e8878d550

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.