From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754246Ab0H0T55 (ORCPT ); Fri, 27 Aug 2010 15:57:57 -0400 Received: from mail.openrapids.net ([64.15.138.104]:56312 "EHLO blackscsi.openrapids.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752040Ab0H0T5y (ORCPT ); Fri, 27 Aug 2010 15:57:54 -0400 Date: Fri, 27 Aug 2010 15:57:51 -0400 From: Mathieu Desnoyers To: Peter Zijlstra Cc: Thomas Gleixner , LKML , Linus Torvalds , Andrew Morton , Ingo Molnar , Steven Rostedt , Tony Lindgren , Mike Galbraith Subject: Re: [RFC PATCH 00/11] sched: CFS low-latency features Message-ID: <20100827195751.GA1030@Krystal> References: <20100826230934.GA4194@Krystal> <1282894655.1975.1650.camel@laptop> <20100827152125.GB14926@Krystal> <1282923686.1975.2780.camel@laptop> <20100827160946.GG14926@Krystal> <1282930072.1975.2962.camel@laptop> <20100827183240.GC22679@Krystal> <1282936994.1975.3119.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1282936994.1975.3119.camel@laptop> X-Editor: vi X-Info: http://www.efficios.com X-Operating-System: Linux/2.6.26-2-686 (i686) X-Uptime: 15:56:51 up 216 days, 22:33, 4 users, load average: 0.13, 0.05, 0.01 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra (peterz@infradead.org) wrote: > On Fri, 2010-08-27 at 14:32 -0400, Mathieu Desnoyers wrote: > > > > These are problems you get only when you allow spawning any number of threads. > > If, instead, you create a thread pool at timer creation, then you can allow > > concurrency without problems with spawner context and error proparation. > > That would be a massive resource waste for the normal case where the > interval > handler runtime. Not if the application can configure this value. So the "normal" case could be set to 1 single thread. Only resource-intensive apps would set this differently, e.g. to the detected number of cpus. Mathieu -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com