Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2005 21:14:05 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: System processes recognition.
Message-ID:  <4239829D.5030202@freebsd.org>
In-Reply-To: <20050317124633.M72560@delplex.bde.org>
References:  <20050315125136.GH9291@darkness.comp.waw.pl> <200503161748.02353.jhb@FreeBSD.org> <20050317124633.M72560@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:

>
> P_SYSTEM for init is bogus since it breaks at least procfs for init.
> procfs may need to be disabled for init for security reasons, but it
> shouldn't be disabled unconditionally.  I mainly noticed /proc/1/map
> not existing.
>
> There should be flags like P_KTHREAD as needed to make the properties
> of init independent.
>
> I use the following patches to mostly just remove the setting of P_SYSTEM
> for init.


Removing P_SYSTEM for init will cause it to be swapped out under heavy
memory pressure, we unlikely want to swap out init, otherwise it results 
zoombies
can not be recycled immediately, does anyone know that init is already be
locked into memory, e.g, by PHOLD ?

David Xu



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