Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbZL1OX6 (ORCPT ); Mon, 28 Dec 2009 09:23:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751337AbZL1OX5 (ORCPT ); Mon, 28 Dec 2009 09:23:57 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:50578 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbZL1OX5 (ORCPT ); Mon, 28 Dec 2009 09:23:57 -0500 Subject: Re: [RFC 7/12][PATCH] SCHED_DEADLINE: signal delivery when overrunning From: Peter Zijlstra To: Raistlin Cc: linux-kernel , michael trimarchi , Fabio Checconi , Ingo Molnar , Thomas Gleixner , Dhaval Giani , Johan Eker , "p.faure" , Chris Friesen , Steven Rostedt , Henrik Austad , Frederic Weisbecker , Darren Hart , Sven-Thorsten Dietrich , Bjoern Brandenburg , Tommaso Cucinotta , "giuseppe.lipari" , Juri Lelli In-Reply-To: <1255707856.6228.461.camel@Palantir> References: <1255707324.6228.448.camel@Palantir> <1255707856.6228.461.camel@Palantir> Content-Type: text/plain; charset="UTF-8" Date: Mon, 28 Dec 2009 15:19:24 +0100 Message-ID: <1262009964.7135.109.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1249 Lines: 27 On Fri, 2009-10-16 at 17:44 +0200, Raistlin wrote: > Starting from this commit, the user can ask to receive a SIGXCPU signal > every time the task runtime is overrun or a scheduling deadline is missed. > This is done by means of the sched_flags field already present in > sched_param_ex. > > A runtime overrun will be quite common, e.g. due to coarse execution time > accounting, wrong parameter assignement, etc. > A deadline miss --since the deadlines the scheduler sees are ``scheduling > deadlines'' which have not necessarily to be equal to task's deadlines-- is > much more unlikely, and should only happen in an overloaded system. Right, I think its much better to not do this in posix-cpu-timers.c, that code is shite. Its probably possible to set SIGXCPU pending and raise TIF_SIGPENDING from within the scheduler code, and that will be triggered when we return to userspace. That also gets rid of that coarse execution time accounting muck, since the scheduler has ns accurate accounting. -- 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/