Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755188Ab0KTWCj (ORCPT ); Sat, 20 Nov 2010 17:02:39 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:38711 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753676Ab0KTWCi (ORCPT ); Sat, 20 Nov 2010 17:02:38 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=VGCgGBqQbbMC3Zeo2+6mLPOXm1gAarnhDTTmWV0LuilBj7LNeioiTGO1zhq56XHFBj mu/A6Y0wlIcgyOK2QjOYBgY7/wSdXeLUgPIXmIpfYZ7Xu1VHY7USNwaRtXc3asob/A8K PYtwoT/hm7ORu5ViBqqWksWaZM8RJpdJH1CHI= Message-ID: <4CE84578.5030800@gmail.com> Date: Sat, 20 Nov 2010 14:02:32 -0800 From: Konstantin Svist User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b2 Mnenhy/0.8.2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Mike Galbraith CC: Jesper Juhl , Linus Torvalds , Valdis.Kletnieks@vt.edu, Oleg Nesterov , Peter Zijlstra , Mathieu Desnoyers , Ingo Molnar , LKML , Markus Trippelsdorf Subject: Re: [RFC/RFT PATCH v3] sched: automated per tty task groups References: <1287479765.9920.9.camel@marge.simson.net> <1287487757.24189.40.camel@marge.simson.net> <1287511983.7417.45.camel@marge.simson.net> <1287514410.7368.10.camel@marge.simson.net> <20101020025652.GB26822@elte.hu> <1287648715.9021.20.camel@marge.simson.net> <20101021105114.GA10216@Krystal> <1287660312.3488.103.camel@twins> <20101021162924.GA3225@redhat.com> <1288076838.11930.1.camel@marge.simson.net> <1288078144.7478.9.camel@marge.simson.net> <1289489200.11397.21.camel@maggy.simson.net> <30291.1289860866@localhost> <1290282678.28711.23.camel@maggy.simson.net> In-Reply-To: <1290282678.28711.23.camel@maggy.simson.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1475 Lines: 33 On 11/20/2010 11:51 AM, Mike Galbraith wrote: > On Sat, 2010-11-20 at 20:33 +0100, Jesper Juhl wrote: >> On Mon, 15 Nov 2010, Linus Torvalds wrote: >> >>> On Mon, Nov 15, 2010 at 2:41 PM, wrote: >>>> So the set of all tasks that never call proc_set_tty() ends up in the same one >>>> big default group, correct? >>> Well, yes and no. >>> >>> Yes, that's what the code currently does. But I did ask Mike (and he >>> delivered) to try to make the code look and work in a way where the >>> whole "tty thing" is just one of the heuristics. >>> >>> It's not clear exactly what the non-tty heuristics would be, but I do >>> have a few suggestions: >>> >>> - I think it might be a good idea to associate a task group with the >>> current "cred" of a process, and fall back on it in the absense of a >>> tty-provided one. >>> >> Or how about (just brainstorming here) a group per 'process group'? > I switched to per session, which on my system at least looks like more > than enough granularity Will that have an effect on software like Chromium which creates a fork for each tab? If a user opens Thunderbird and Chromium with 100 tabs, Thunderbird should probably get 50% CPU time instead of just 1%... -- 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/