From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 25 12:21:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 792EC16A4CE for ; Sat, 25 Sep 2004 12:21:54 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id D714643D3F for ; Sat, 25 Sep 2004 12:21:53 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id C66C465213; Sat, 25 Sep 2004 13:21:51 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00663-01; Sat, 25 Sep 2004 13:21:51 +0100 (BST) Received: from empiric.dek.spc.org (unknown [217.51.144.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id BCEBD6520C; Sat, 25 Sep 2004 13:21:50 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id C3C8663D3; Sat, 25 Sep 2004 05:21:49 -0700 (PDT) Date: Sat, 25 Sep 2004 05:21:49 -0700 From: Bruce M Simpson To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20040925122149.GD814@empiric.icir.org> Mail-Followup-To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , Mike Meyer , bzeeb-lists@lists.zabbadoz.net, Gordon David , freebsd-hackers@freebsd.org References: <16722.59709.451226.932084@guru.mired.org> <20040925100740.GA814@empiric.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: cc: bzeeb-lists@lists.zabbadoz.net cc: Mike Meyer cc: Gordon David cc: freebsd-hackers@freebsd.org Subject: Re: execute a user process in the kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 12:21:54 -0000 On Sat, Sep 25, 2004 at 01:35:07PM +0200, Dag-Erling Smørgrav wrote: > > If we were to implement POSIX spawn(), we'd need something like this. > > Uh, no. posix_spawn(3) can be implemented entirely in userland and > does not require any special kernel support. Discussions with peter@ and others on IRC have been ongoing regarding doing it in kernel space, so as to avoid unnecessarily expensive VM fork operations when 'spawning' a process. I'd be interested to hear more about your proposal for doing this in userland. BMS