From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756416Ab1EXOYV (ORCPT ); Tue, 24 May 2011 10:24:21 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:39640 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756155Ab1EXOYU (ORCPT ); Tue, 24 May 2011 10:24:20 -0400 X-Authority-Analysis: v=1.1 cv=ou1QuR4lBR9YeJgEH9ccYmbAdaWqVVq3lOvCKJtMpGM= c=1 sm=0 a=2hPWuqIl968A:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=JfrnYn6hAAAA:8 a=DmXv4ZuRrwgFY0xsiJIA:9 a=PUjeQqilurYA:10 a=3Rfx1nUSh_UA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Subject: Re: [PATCH] sched: remove starvation in check_preempt_equal_prio() From: Steven Rostedt To: Hillf Danton Cc: Peter Zijlstra , LKML , Ingo Molnar , Mike Galbraith , Yong Zhang In-Reply-To: References: <1306244836.2497.60.camel@laptop> Content-Type: text/plain; charset="ISO-8859-15" Date: Tue, 24 May 2011 10:24:18 -0400 Message-ID: <1306247058.1465.66.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-05-24 at 22:01 +0800, Hillf Danton wrote: > On Tue, May 24, 2011 at 9:47 PM, Peter Zijlstra wrote: > > On Tue, 2011-05-24 at 21:34 +0800, Hillf Danton wrote: > >> If there are pushable tasks and they are high enough in priority, in which > >> case task p is covered, the current could keep holding its CPU. > > > > -ENOPARSE.. > > > > Here the priority is same, then pushing task p off has little difference from > pushing any other pushable. If task p is currently running and is a FIFO task, you do not push it off for another task of same prio. > > >> Even if current task has to release its CPU, requeuing task p could result in > >> starvation of tasks that are of same priority and have been waiting on RQ for > >> a couple of hours:/ > > > > Starvation of the same priority tasks is a perfectly valid situation for > > SCHED_FIFO, also, your changelog fails to mention what you propose to do > > about it. > > > I did get curr requeued, and task_woken_rt() could do what I want. > > If you change ENOPARSE to PARSE, I will change task_woken_rt accordingly. I'm not sure I can change to PARSE yet. -- Steve