svn commit: r187607 - head/usr.bin/truss

David Schultz das at FreeBSD.ORG
Mon Jan 26 11:00:55 PST 2009

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.

More information about the svn-src-head mailing list