Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206419
| From | Byungchul Park <byungchul.park@lge.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu |
| Date | 2015-08-13 02:00 +0200 |
| Message-ID | <pWO65-2RK-5@gated-at.bofh.it> (permalink) |
| References | <pWykG-5Aj-41@gated-at.bofh.it> <pWA38-7Qw-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Aug 12, 2015 at 09:05:48AM +0800, Yuyang Du wrote: > On Wed, Aug 12, 2015 at 04:05:15PM +0900, byungchul.park@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 > > changed a cgroup to another again and again. > > > > we have to sync se's average load with both *prev* cfs_rq and next cfs_rq > > when changing its group. > > > > I think you are right in general, it has nothing to do with > migrate_task_rq_fair() and the load should be carried to new cfs_rq. > > But whether it is queued or not should be doing the same thing, so what about: hello yuyang, i worked with code based on torvalds git, but now.. in tip git where sched code is renewed much, i think you are right. i will fix it. thank you much. :) Byungchul > > /* if queued, the previous dequeue_task() should have already done it */ > if (!queued) > __upload_load_avg() > > remove_from_old_cfs_rq(); > > /* virtually catch up because of the skew between cfs_rqs */ > task's last_update_time = cfs_rq's last_update_time; > add_to_new_cfs_rq(); > > Thanks, > Yuyang > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu byungchul.park@lge.com - 2015-08-12 09:10 +0200
Re: [PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu Yuyang Du <yuyang.du@intel.com> - 2015-08-12 11:00 +0200
Re: [PATCH v3] sched: sync with the prev cfs when changing cgroup within a cpu Byungchul Park <byungchul.park@lge.com> - 2015-08-13 02:00 +0200
csiph-web