From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753775AbdDLMgG (ORCPT ); Wed, 12 Apr 2017 08:36:06 -0400 Received: from smtprelay0145.hostedemail.com ([216.40.44.145]:57632 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751218AbdDLMgE (ORCPT ); Wed, 12 Apr 2017 08:36:04 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:5007:6119:6261:7875:7903:10004:10400:10848:10967:11026:11232:11658:11914:12663:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14181:14659:14721:21080:21325:30046:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: mine40_515d35909520e X-Filterd-Recvd-Size: 2247 Date: Wed, 12 Apr 2017 08:35:57 -0400 From: Steven Rostedt To: Xunlei Pang Cc: xlpang@redhat.com, Luca Abeni , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, Peter Zijlstra , Juri Lelli , Ingo Molnar , Tommaso Cucinotta , =?UTF-8?B?UsO0bXVsbw==?= Silva de Oliveira , Mathieu Poirier Subject: Re: [PATCH] sched/deadline: Throttle a constrained task activated if overflow Message-ID: <20170412083557.1e93135d@grimm.local.home> In-Reply-To: <58EE1DCC.80002@redhat.com> References: <1491816131-20268-1-git-send-email-xlpang@redhat.com> <4d24b94c-1e57-b82c-ff0f-099157ba5526@redhat.com> <58EDBAC4.7020902@redhat.com> <20170412085544.6a54658f@luca> <58EE1DCC.80002@redhat.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Apr 2017 20:30:04 +0800 Xunlei Pang wrote: > Image this deadline task was preempted after running 0.1ms by another one with an > earlier absolute deadline for 1.9ms, after scheduled back it will have the same status > (1.9ms remaining runtime, 2ms remaining deadline) under the current implementation. > > I can hardly figure out the difference, why is wake-up(will check dl_entity_overflow()) > so special? The difference between a wake-up and being preempted is that one is voluntarily done by the application, the other is done by the scheduler. The preemption done by the schedule must very well be in line with the algorithms of the scheduler. But for cases where the task voluntarily sleeps and then wakes up at some arbitrary time, the scheduler has no idea what its intent was. Not to mention, it must still guarantee the bandwidth for other tasks. -- Steve