From owner-freebsd-stable@FreeBSD.ORG Thu Feb 9 12:25:53 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6227816A420 for ; Thu, 9 Feb 2006 12:25:53 +0000 (GMT) (envelope-from jt@barfoos.de) Received: from mail.zuto.de (badlands.zuto.de [217.160.140.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EAB943D48 for ; Thu, 9 Feb 2006 12:25:52 +0000 (GMT) (envelope-from jt@barfoos.de) Received: from localhost (localhost [127.0.0.1]) by mail.zuto.de (Postfix) with ESMTP id C1EDA1E442 for ; Thu, 9 Feb 2006 13:25:50 +0100 (CET) Received: from mail.zuto.de ([127.0.0.1]) by localhost (badlands [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00868-07 for ; Thu, 9 Feb 2006 13:25:41 +0100 (CET) Received: from anastasia.lan.barfoos.de (unknown [10.11.1.1]) by mail.zuto.de (Postfix) with SMTP id 5D8F71E420 for ; Thu, 9 Feb 2006 13:25:40 +0100 (CET) Received: (qmail 36962 invoked by uid 1001); 9 Feb 2006 12:25:30 -0000 Date: Thu, 9 Feb 2006 13:25:30 +0100 From: Jens Trzaska To: David Kirchner Message-ID: <20060209122530.GA36749@anastasia.lan.barfoos.de> References: <20060208152546.GA78035@anastasia.lan.barfoos.de> <35c231bf0602080751p6df719f0sf61cee25d3404a8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35c231bf0602080751p6df719f0sf61cee25d3404a8@mail.gmail.com> X-Operating-System: FreeBSD 4.11-RELEASE, i386 X-GPG-Key-ID: = 96FE36DB X-GPG-Key-Fingerprint: 1C9B 7EF8 1A22 1740 9F1B AB7B 17D2 64E1 96FE 36DB X-GPG-Key-Location: http://www.elug.de/schluessel/96FE36DB.asc X-Accept-Language: de,en User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavis at zuto.de Cc: freebsd-stable@freebsd.org Subject: Re: truss and /sbin/init X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 12:25:53 -0000 * David Kirchner [2006-02-08 16:53]: > On 2/8/06, Jens Trzaska wrote: > > > > I just tried to use truss on the running /sbin/init process. > > > > root@beast:~# truss -p 1 > > truss: cannot open /proc/1/mem: No such file or directory > > Exit 8 > > > > As you can see without any luck. But why is the memory information > > missing in procfs here? /sbin/init is a more or less regular userland > > process. Looking at truss(1) it even shows this example: > > The memory is apparently locked in core, according to the L flag for > 'ps'. This should probably be documented in the truss man page to > avoid confusion. Does you or perhaps someone else know why init is locked in core? Its not the case in 4.x and I can't see why a regular userspace process is locked. Can someone explain that? jens