Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 14:03:10 -0500
From:      David Schultz <das@FreeBSD.ORG>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        svn-src-head@FreeBSD.ORG, Ed Schouten <ed@80386.nl>, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG, Tom Rhodes <trhodes@FreeBSD.ORG>
Subject:   Re: svn commit: r187607 - head/usr.bin/truss
Message-ID:  <20090126190310.GA31728@zim.MIT.EDU>
In-Reply-To: <20090126051910.E2148@besplex.bde.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 26, 2009, Bruce Evans wrote:
> - P_SYSTEM has something to do with swapping, and I also removed the
>   PS_INMEM setting for init.  I have always used NO_SWAPPING and haven't
>   used a swap partition since memory sizes reached 64MB, so I wouldn't
>   have noticed problems with this.  init doesn't run often so it is
>   quite likely to be swapped (if allowed to) if real memory runs out.

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090126190310.GA31728>