Re: [Resend PATCH v8 0/4] sched: Rewrite runnable load and utilization average tracking

From: Wanpeng Li
Date: Thu Jun 18 2015 - 07:48:32 EST




On 6/18/15 6:46 AM, Yuyang Du wrote:
On Thu, Jun 18, 2015 at 02:31:00PM +0800, Wanpeng Li wrote:
On 6/17/15 11:11 AM, Yuyang Du wrote:
Hi,

The sched_debug is informative, lets first give it some analysis.

The workload is 12 CPU hogging tasks (always runnable) and 1 dbench
task doing fs ops (70% runnable) running at the same time.

Actually, these 13 tasks are in a task group /autogroup-9617, which
has weight 1024.

So the 13 tasks at most can contribute to an average of 79 (=1024/13)
to the group entity's load_avg:

cfs_rq[0]:/autogroup-9617
.se->load.weight : 2
.se->avg.load_avg : 0

cfs_rq[1]:/autogroup-9617
.se->load.weight : 80
.se->avg.load_avg : 79

cfs_rq[2]:/autogroup-9617
.se->load.weight : 79
.se->avg.load_avg : 78

cfs_rq[3]:/autogroup-9617
.se->load.weight : 80
.se->avg.load_avg : 81

cfs_rq[4]:/autogroup-9617
.se->load.weight : 80
.se->avg.load_avg : 79

cfs_rq[5]:/autogroup-9617
.se->load.weight : 79
.se->avg.load_avg : 77

cfs_rq[6]:/autogroup-9617
.se->load.weight : 159
.se->avg.load_avg : 156

cfs_rq[7]:/autogroup-9617
.se->load.weight : 64 (dbench)
.se->avg.load_avg : 50
How you figure out this one is dbench?

dbench is on CPU7 and running there?

Sorry, do you mean you pin dbench to CPU7?

Regards,
Wanpeng Li

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/