From owner-freebsd-current@FreeBSD.ORG Sun Oct 21 23:00:47 2007 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FF8816A420 for ; Sun, 21 Oct 2007 23:00:47 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outN.internet-mail-service.net (outN.internet-mail-service.net [216.240.47.237]) by mx1.freebsd.org (Postfix) with ESMTP id 0C88113C4B2 for ; Sun, 21 Oct 2007 23:00:46 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Sun, 21 Oct 2007 16:00:40 -0700 X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 25437126775 for ; Sun, 21 Oct 2007 16:00:40 -0700 (PDT) Message-ID: <471BDA2E.9040801@elischer.org> Date: Sun, 21 Oct 2007 16:01:02 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: current@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: kthreads->kproc and back to kthread.. next patch 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: Sun, 21 Oct 2007 23:00:47 -0000 Here is the link to the next patch. this introduces (back) the kthread_create (etc) calls but now they make threads.. It's still in the testing stage.. I'd certainly appreciate feedback. Especially as some of the locking and stuff has changed since I first wrote this and tested it over 2 years ago. One possibility.. changing kthread_create() to kthread_new() so that any people who are using the old kthread_create() don't get the new one by mistake.... after this is committed, I will start changing over some of the callers of kproc_create, one at a time.... http://people.freebsd.org/~julian/kthread.diff it may also be worth adding some help for people to make a new kproc, and populate it with a number of kthreads. for instance it would be aesthetically pleasing to have a single idle process, and have all the idle threads be part of that single process. Similarly, might things like the syncer or other processes ever benefit from having multiple threads? Anyhow that's another discussion.