From owner-freebsd-arch@FreeBSD.ORG Thu Mar 17 13:14:08 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05F3F16A4D7; Thu, 17 Mar 2005 13:14:08 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD8F643D39; Thu, 17 Mar 2005 13:14:07 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2HDDw57048861; Thu, 17 Mar 2005 13:14:02 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4239829D.5030202@freebsd.org> Date: Thu, 17 Mar 2005 21:14:05 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.2) Gecko/20041004 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce Evans References: <20050315125136.GH9291@darkness.comp.waw.pl> <200503161748.02353.jhb@FreeBSD.org> <20050317124633.M72560@delplex.bde.org> In-Reply-To: <20050317124633.M72560@delplex.bde.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Pawel Jakub Dawidek cc: freebsd-arch@freebsd.org Subject: Re: System processes recognition. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 13:14:08 -0000 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