From owner-p4-projects@FreeBSD.ORG Fri Jan 4 20:31:14 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F3BD216A420; Fri, 4 Jan 2008 20:31:13 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B99A916A419 for ; Fri, 4 Jan 2008 20:31:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A99D813C44B for ; Fri, 4 Jan 2008 20:31:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m04KVD2j043678 for ; Fri, 4 Jan 2008 20:31:13 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m04KVDaI043675 for perforce@freebsd.org; Fri, 4 Jan 2008 20:31:13 GMT (envelope-from jhb@freebsd.org) Date: Fri, 4 Jan 2008 20:31:13 GMT Message-Id: <200801042031.m04KVDaI043675@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Cc: Subject: PERFORCE change 132507 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 20:31:14 -0000 http://perforce.freebsd.org/chv.cgi?CH=132507 Change 132507 by jhb@jhb_mutex on 2008/01/04 20:30:50 Update. Affected files ... .. //depot/projects/smpng/sys/notes#96 edit Differences ... ==== //depot/projects/smpng/sys/notes#96 (text+ko) ==== @@ -40,21 +40,10 @@ - Remove some bogus atomic_load_acq()'s and add ia32_pause()'s to stop_cpus() and restart_cpus(). - Untested -- Cleanup the SMP rendezvous code to properly use membar's to ensure function - pointers are up to date before deferencing them. - - Untested - Don't allow kthreads to get signalled and do bad things - Untested - Change amd64 to use [ls]fence instructions for memory barriers. - Untested (and no hardware, maybe peter can test) -- Add a kproc API that does what kthread does right now -- Add a real kthread API that creates just another thread inside of a kproc - - Figure out what needs to be done to make a new kthread.. should each - kproc have one ksegroup and one kse per cpu? - - Do I just add the kse's when the first new thread is created? - - Consolidate most of the kernel procs into a 'system' kernel proc that - would be pid 0. - - Stick all the 'idle threads' in a single 'idle' kernel proc. - kill taskqueue_swi in favor of taskqueue_thread since the only thing swi buys is being able to swi_sched() from a fast handler, but that doesn't make sense because you can't actually enqueue a task onto its queue from @@ -81,6 +70,5 @@ - jhb_needresched - scheduler fun - jhb_preemption - preemption - jhb_proc - proc locking -- jhb_proc_slock - per-process spin lock Space reserved for child branches: