From owner-svn-src-all@FreeBSD.ORG Mon Jan 26 22:36:43 2009 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 965FB106566B; Mon, 26 Jan 2009 22:36:43 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4DF358FC0C; Mon, 26 Jan 2009 22:36:43 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id n0QMdJ66032817; Mon, 26 Jan 2009 17:39:19 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id n0QMdJFn032816; Mon, 26 Jan 2009 17:39:19 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Mon, 26 Jan 2009 17:39:19 -0500 From: David Schultz To: Kostik Belousov Message-ID: <20090126223919.GA32717@zim.MIT.EDU> Mail-Followup-To: Kostik Belousov , Bruce Evans , Ed Schouten , Tom Rhodes , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG References: <200901230058.n0N0wEjY026935@svn.freebsd.org> <20090125162123.GB17198@hoeg.nl> <20090126041926.J43097@delplex.bde.org> <20090125175751.GC17198@hoeg.nl> <20090126051910.E2148@besplex.bde.org> <20090126190310.GA31728@zim.MIT.EDU> <20090126201146.GD2009@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090126201146.GD2009@deviant.kiev.zoral.com.ua> Cc: Ed Schouten , src-committers@FreeBSD.ORG, Tom Rhodes , svn-src-all@FreeBSD.ORG, Bruce Evans , svn-src-head@FreeBSD.ORG Subject: Re: svn commit: r187607 - head/usr.bin/truss X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 22:36:44 -0000 On Mon, Jan 26, 2009, Kostik Belousov wrote: > > Process kstack swapping was removed several years ago, so > > "swapping out" a process just deactivates all of its pages. > > In principle this could be safe to do with init, but it's probably > > a bad idea, and perhaps could lead to deadlock in the > > out-of-swap-space -> kill a process -> reparent the zombie to init > > path. PS_INMEM will prevent init from being swapped out. > > Process kernel stacks swapping, or more explicitely, allowance to page out > threads kernel stacks, is in the kernel. It is performed by vmdaemon, > look for the call to swapout_procs(). Oops, you're right---I meant swapping of struct user. Presumably there's nothing magic about init's pcb and kstack, though. > P.S. Your Mail-Followup-To: header may be considered offensive. In the absence of a Mail-Followup-To or Reply-To header in the message I'm replying to, mutt seems to generate a Mail-Followup-To for everyone but me (since it knows I'm subscribed and wants to direct others not to CC me.) It doesn't know if anyone else wants a CC or not because they didn't use Mail-Followup-To, so it includes them by default. I think this is what it's supposed to do, but if you know of a knob that I ought to turn, let me know.