Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2993378AbXEBPte (ORCPT ); Wed, 2 May 2007 11:49:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2993358AbXEBPte (ORCPT ); Wed, 2 May 2007 11:49:34 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:48296 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993378AbXEBPtd (ORCPT ); Wed, 2 May 2007 11:49:33 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Dean Nelson Cc: akpm@linux-foundation.org, hch@infradead.org, linux-kernel@vger.kernel.org Subject: Re: "partical" kthread conversion References: <20070430162007.ad46e153.akpm@linux-foundation.org> <20070501084245.GA14364@infradead.org> <20070501015141.f09f6dde.akpm@linux-foundation.org> <20070502140115.GA23595@sgi.com> <20070502153727.GA31794@sgi.com> Date: Wed, 02 May 2007 09:49:05 -0600 In-Reply-To: <20070502153727.GA31794@sgi.com> (Dean Nelson's message of "Wed, 2 May 2007 10:37:27 -0500") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1151 Lines: 25 Dean Nelson writes: > I'd typed up some questions for you about the new patch I need to create > which I'd just sent to you, so I won't repeat them here. > > Before proceeding to far with your above changes, you might wait to see > the proposal that Robin Holt is putting together for a kthread pool. > I'm not sure how spawning a thread (which involves allocation of the > task_struct amongst other things, plus scheduling) can beat a wake_up() > of an already existing thread for cost time-wise. A reasonable point, although if you don't happen to sleep in the allocations I suspect time wise it's pretty much a wash. I have some other reasons I might need the capability of clone a thread from a non-parent process, and it has the potential to simplify some things in the kthread case so I'm going to finish investigating, since I believe I have figured out a path to that target. Eric - 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/