From owner-freebsd-current@FreeBSD.ORG Sat Jan 21 08:40:37 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFECC16A41F for ; Sat, 21 Jan 2006 08:40:37 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 719CC43D5E for ; Sat, 21 Jan 2006 08:40:37 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [192.168.2.4]) ([10.251.60.22]) by a50.ironport.com with ESMTP; 21 Jan 2006 00:40:36 -0800 X-IronPort-Anti-Spam-Filtered: true Message-ID: <43D1F384.7080406@elischer.org> Date: Sat, 21 Jan 2006 00:40:36 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: kernel threads as threads. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2006 08:40:38 -0000 I have made a first set of changes to allow threads to be 'forked' within the kernel. I have run on the resulting kernel for some of today with no problems other than some statistics oddness in top which I plan on looking at next week. The current patch doen't remove the ability to make kernel processes, however it does add the ability to make threads under process 0 and alters nearly all the users of kernel threads to actually do this.. The exception is the aio threads, as they seem to require separate address spaces to work with and that requires separate proc structures. I was thinking that they could act as extra threads on the calling processes but that is more of a rewrite than I plan right now. Anyhow the diffs so far are at: http://www.freebsd.org/~julian/kthread.diff. more later. julian