Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758977Ab0KPT5A (ORCPT ); Tue, 16 Nov 2010 14:57:00 -0500 Received: from smtp-out.google.com ([74.125.121.35]:20106 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758867Ab0KPT46 (ORCPT ); Tue, 16 Nov 2010 14:56:58 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=PQ4qRGEpSuZ8ht1XT7G9gRlqLE3vTrKAdHa+gE7yO4KE6OmV+8wz+Ec6yjTYqbR9+F 579DB5crYOHl/pazQv/Q== MIME-Version: 1.0 In-Reply-To: References: <1289820766.16406.45.camel@maggy.simson.net> <1289821590.16406.47.camel@maggy.simson.net> <20101115125716.GA22422@redhat.com> <1289856350.14719.135.camel@maggy.simson.net> <20101116015648.GA11534@redhat.com> <1289916171.5169.117.camel@maggy.simson.net> <1289916683.2109.625.camel@laptop> <20101116170312.GA19327@tango.0pointer.de> <20101116181603.GC19327@tango.0pointer.de> From: Paul Menage Date: Tue, 16 Nov 2010 11:56:33 -0800 Message-ID: Subject: Re: [RFC/RFT PATCH v3] sched: automated per tty task groups To: Linus Torvalds Cc: Dhaval Giani , Lennart Poettering , Peter Zijlstra , Mike Galbraith , Vivek Goyal , Oleg Nesterov , Markus Trippelsdorf , Mathieu Desnoyers , Ingo Molnar , LKML , Balbir Singh Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 797 Lines: 19 On Tue, Nov 16, 2010 at 11:45 AM, Linus Torvalds wrote: > > In a system daemon? Good luck with that. It's a nightmare. Maybe you > could just poll all the cgroups, and try to remove them once a minute, > and if they are empty it works. Or something like that. But what a > hacky thing it would be. There's an existing cgroups API - release_agent and notify_on_release - whereby the kernel will spawn a userspace command once a given cgroup is completely empty. It's intended for pretty much exactly this purpose. Paul -- 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/