Re: [PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu

2015-08-12 Thread Byungchul Park
On Wed, Aug 12, 2015 at 09:05:48AM +0800, Yuyang Du wrote: > On Wed, Aug 12, 2015 at 04:05:15PM +0900, byungchul.p...@lge.com wrote: > > > > current code seems to be wrong with cfs_rq's avg loads when changing > > a task's cgroup(=cfs_rq) to another. i tested with "echo pid > cgroup" and > > found

Re: [PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu

2015-08-12 Thread Yuyang Du
On Wed, Aug 12, 2015 at 04:05:15PM +0900, byungchul.p...@lge.com wrote: > > current code seems to be wrong with cfs_rq's avg loads when changing > a task's cgroup(=cfs_rq) to another. i tested with "echo pid > cgroup" and > found that e.g. cfs_rq->avg.load_avg became larger and larger whenever i >

[PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu

2015-08-12 Thread byungchul . park
Date: Wed, 12 Aug 2015 15:51:21 +0900 Subject: [PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu current code seems to be wrong with cfs_rq's avg loads when changing a task's cgroup(=cfs_rq) to another. i tested with "echo pid > cgroup" and found t