Bug 1097959
| Summary: | [PERF] libcgroup usage function needs optimization | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Andy Grimm <agrimm> |
| Component: | Containers | Assignee: | Jhon Honce <jhonce> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | bmeng, jgoulding |
| Target Milestone: | --- | ||
| Target Release: | 2.x | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-07-15 10:28:58 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: | 1096863 | ||
|
Description
Andy Grimm
2014-05-15 00:56:55 UTC
https://github.com/openshift/origin-server/pull/5418 provides THROTTLER_CHECK_PERIOD element in /etc/sysconfig/watchman to control how frequently the cgroup counters are read Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/dbc9cfadb7c82eba7b17638e7f79e2c0a01bdf8e Bug 1097959 - Add THROTTLER_CHECK_PERIOD to detune Throttler * Add THROTTLER_CHECK_PERIOD element to /etc/sysconfig/watchman to allow Operator to set period for checking cgroup counters Checked on devenv_4797, with the option THROTTLER_CHECK_PERIOD=20 added into /etc/sysconfig/watchman.
Checking the cgroup.log and cgroup-trace.log on node, it will check the gears cgroup setting each 20s.
[root@ip-10-47-144-172 ~]# tailf cgroup.log
May 19 02:41:26 INFO Shell command 'ps ax --format 'uid,pid=,ppid='' ran. rc=0 out=[SILENCED]
May 19 02:41:43 INFO Shell command 'set -e -o pipefail; grep -H ^ /cgroup/*/openshift/*/cpu* |sed 's|^/cgroup/[^/]*/openshift/||'' ran. rc=0 out=[SILENCED]
May 19 02:41:46 INFO Shell command '/bin/grep ' killed as a result of limit of ' /var/log/messages' ran. rc=1 out=[SILENCED]
May 19 02:41:47 INFO Shell command 'ps ax --format 'uid,pid=,ppid='' ran. rc=0 out=[SILENCED]
May 19 02:42:03 INFO Shell command 'set -e -o pipefail; grep -H ^ /cgroup/*/openshift/*/cpu* |sed 's|^/cgroup/[^/]*/openshift/||'' ran. rc=0 out=[SILENCED]
May 19 02:42:07 INFO Shell command '/bin/grep ' killed as a result of limit of ' /var/log/messages' ran. rc=1 out=[SILENCED]
May 19 02:42:07 INFO Shell command 'ps ax --format 'uid,pid=,ppid='' ran. rc=0 out=[SILENCED]
May 19 02:42:24 INFO Shell command 'set -e -o pipefail; grep -H ^ /cgroup/*/openshift/*/cpu* |sed 's|^/cgroup/[^/]*/openshift/||'' ran. rc=0 out=[SILENCED]
May 19 02:42:27 INFO Shell command '/bin/grep ' killed as a result of limit of ' /var/log/messages' ran. rc=1 out=[SILENCED]
May 19 02:42:27 INFO Shell command 'ps ax --format 'uid,pid=,ppid='' ran. rc=0 out=[SILENCED]
[root@ip-10-47-144-172 ~]# tailf cgroup-trace.log| grep INFO
May 19 02:43:24 INFO oo_spawn running set -e -o pipefail; grep -H ^ /cgroup/*/openshift/*/cpu* |sed 's|^/cgroup/[^/]*/openshift/||': {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 24>, :err=>#<IO:fd 22>}
May 19 02:43:24 INFO oo_spawn buffer(23/) 5379a209fe6a161373000001/cpu.cfs_period_us:100000
May 19 02:43:24 INFO oo_spawn buffer(23/) 1613730000e2/cpu.stat:nr_periods 2675
May 19 02:43:24 INFO oo_spawn buffer(23/) cpuacct.stat:user 1129
May 19 02:43:27 INFO oo_spawn running /bin/grep ' killed as a result of limit of ' /var/log/messages: {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 28>, :err=>#<IO:fd 26>}
May 19 02:43:27 INFO oo_spawn running ps ax --format 'uid,pid=,ppid=': {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 28>, :err=>#<IO:fd 26>}
May 19 02:43:27 INFO oo_spawn buffer(27/) UID
May 19 02:43:27 INFO oo_spawn buffer(27/) 8 1
May 19 02:43:44 INFO [] oo_spawn running set -e -o pipefail; grep -H ^ /cgroup/*/openshift/*/cpu* |sed 's|^/cgroup/[^/]*/openshift/||': {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 24>, :err=>#<IO:fd 22>}
May 19 02:43:44 INFO [] oo_spawn buffer(23/) 5379a209fe6a161373000001/cpu.cfs_period_us:100000
May 19 02:43:44 INFO [] oo_spawn buffer(23/) 1613730000e2/cpu.stat:nr_periods 2715
May 19 02:43:44 INFO [] oo_spawn buffer(23/) cpuacct.stat:user 1139
May 19 02:43:47 INFO [] oo_spawn running /bin/grep ' killed as a result of limit of ' /var/log/messages: {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 28>, :err=>#<IO:fd 26>}
May 19 02:43:47 INFO [] oo_spawn running ps ax --format 'uid,pid=,ppid=': {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 28>, :err=>#<IO:fd 26>}
May 19 02:43:47 INFO [] oo_spawn buffer(27/) UID
May 19 02:43:47 INFO [] oo_spawn buffer(27/) 5 1
Move bug to verified.
|