mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rohit Jain <rohit.k.jain@oracle.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com,
	steven.sistare@oracle.com, joelaf@google.com, jbacik@fb.com,
	juri.lelli@redhat.com, dhaval.giani@oracle.com, efault@gmx.de,
	riel@surriel.com
Subject: Re: [RESEND PATCH v2] sched/fair: Remove check in idle_balance against migration_cost
Date: Fri, 16 Mar 2018 10:21:54 -0700	[thread overview]
Message-ID: <48b63847-123c-6a28-d558-392b8122cd7e@oracle.com> (raw)
In-Reply-To: <20180316143550.GH4064@hirez.programming.kicks-ass.net>

Hi Peter,

On 03/16/2018 07:35 AM, Peter Zijlstra wrote:
> On Wed, Mar 14, 2018 at 11:36:47AM -0700, Rohit Jain wrote:
>> Signed-off-by: Rohit Jain <rohit.k.jain@oracle.com>
>>
>> Signed-off-by: Rohit Jain <rohit.k.jain@oracle.com>
> Surely you only need a single on of those.

Oh wow! I don't know how I missed this :) Thanks!

>> ---
>>   kernel/sched/fair.c | 3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
>> index 5eb3ffc..569ea83 100644
>> --- a/kernel/sched/fair.c
>> +++ b/kernel/sched/fair.c
>> @@ -8804,8 +8804,7 @@ static int idle_balance(struct rq *this_rq, struct rq_flags *rf)
>>   	 */
>>   	rq_unpin_lock(this_rq, rf);
>>   
>> -	if (this_rq->avg_idle < sysctl_sched_migration_cost ||
>> -	    !this_rq->rd->overload) {
>> +	if (!this_rq->rd->overload) {
>>   		rcu_read_lock();
>>   		sd = rcu_dereference_check_sched_domain(this_rq->sd);
>>   		if (sd)
> I don't think that actually works right on the current tree. In
> particular look at commit:
>
>    31e77c93e432 ("sched/fair: Update blocked load when newly idle")

OK. I see from LKML the code has moved.

However, when I clone from 
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/
I cannot see the commit.

  reply	other threads:[~2018-03-16 17:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14 18:36 Rohit Jain
2018-03-16 14:35 ` Peter Zijlstra
2018-03-16 17:21   ` Rohit Jain [this message]
2018-03-16 17:42     ` Peter Zijlstra
2018-03-16 18:14       ` Rohit Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48b63847-123c-6a28-d558-392b8122cd7e@oracle.com \
    --to=rohit.k.jain@oracle.com \
    --cc=dhaval.giani@oracle.com \
    --cc=efault@gmx.de \
    --cc=jbacik@fb.com \
    --cc=joelaf@google.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=riel@surriel.com \
    --cc=steven.sistare@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®