Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1167893

Summary: Throttling defaults cause thrashing when using between 60k-70k cpu cfs us
Product: OpenShift Container Platform Reporter: Timothy Williams <tiwillia>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.2.0CC: jokerman, libra-onpremise-devel, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1167895 (view as bug list) Environment:
Last Closed: 2016-04-18 19:19:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1167895    

Description Timothy Williams 2014-11-25 15:10:51 UTC
Description of problem:
With the default throttler configuration, a gear can be throttled and unthrottled repeatedly if the gear uses between 60k-70k of its available cpu_cfs_quata_us.

~~~~
cpu_shares=128
cpu_cfs_quota_us=200000

[cg_template_throttled]
  cpu_shares=128
  cpu_cfs_quota_us=100000
  apply_period=120
  apply_percent=30
  restore_percent=70
~~~~

Throttle at > 30% of 200000 us, which is 60k.

Unthrottle at < 70% of 100000 us, which is 70k.

Version-Release number of selected component (if applicable):
2.2

How reproducible:
Difficult

Steps to Reproduce:
1. Create a process on a gear that consistently uses ~60-70k microseconds per cpu period
 
Actual results:
Gear 'thrashes' between throttled and unthrottled

Nov 25 10:05:38 node2 watchman[27422]: Throttler: restore => 546d09b2e986403dc4000009 (47.271)
Nov 25 10:05:58 node2 watchman[27422]: Throttler: throttle => 546d09b2e986403dc4000009 (55.508)
Nov 25 10:06:18 node2 watchman[27422]: Throttler: restore => 546d09b2e986403dc4000009 (67.371)
Nov 25 10:06:38 node2 watchman[27422]: Throttler: throttle => 546d09b2e986403dc4000009 (67.367)


Expected results:
Gear remains either throttled or unthrottled

Additional info:
This doesn't really affect the gear or node in any way, besides the small amount of work that has to be done when throttling and unthrottling the gear.

Comment 1 Timothy Williams 2016-04-18 19:19:18 UTC

*** This bug has been marked as a duplicate of bug 1146208 ***