Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753880Ab0KSL5c (ORCPT ); Fri, 19 Nov 2010 06:57:32 -0500 Received: from casper.infradead.org ([85.118.1.10]:48447 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210Ab0KSL5b convert rfc822-to-8bit (ORCPT ); Fri, 19 Nov 2010 06:57:31 -0500 Subject: Re: [RFC/RFT PATCH v3] sched: automated per tty task groups From: Peter Zijlstra To: Samuel Thibault Cc: Linus Torvalds , Mike Galbraith , Hans-Peter Jansen , linux-kernel@vger.kernel.org, Lennart Poettering , david@lang.hm, Dhaval Giani , Vivek Goyal , Oleg Nesterov , Markus Trippelsdorf , Mathieu Desnoyers , Ingo Molnar , Balbir Singh In-Reply-To: <20101119000720.GF6024@const.famille.thibault.fr> References: <1289916171.5169.117.camel@maggy.simson.net> <20101116211431.GA15211@tango.0pointer.de> <201011182333.48281.hpj@urpla.net> <20101118231218.GX6024@const.famille.thibault.fr> <1290123351.18039.49.camel@maggy.simson.net> <20101118234339.GA6024@const.famille.thibault.fr> <20101119000204.GE6024@const.famille.thibault.fr> <20101119000720.GF6024@const.famille.thibault.fr> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Fri, 19 Nov 2010 12:57:24 +0100 Message-ID: <1290167844.2109.1560.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 27 On Fri, 2010-11-19 at 01:07 +0100, Samuel Thibault wrote: > > > Also note that having a hierarchical process structure should permit to > make things globally more efficient: avoid putting e.g. your cpp, cc1, > and asm processes at three corners of your 4-socket NUMA machine :) We have the hierarchy mandated by POSIX to track parents, childs, sessions and all that stuff, its just not the data structure used for scheduling. And no, using that to load-balance between CPUs doesn't necessarily help with the NUMA case, load-balancing is an impossible job (equivalent to page-replacement -- you simply don't know the future), applications simply do wildly weird stuff. >From a process hierarchy there's absolutely no difference between a cc1/cpp/asm and some MPI jobs, both can be parent-child relations with pipes between, some just run short and have data affinity, others run long and don't have any. -- 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/