From owner-freebsd-stable@FreeBSD.ORG Wed Feb 8 15:52:05 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 8E46F16A420 for ; Wed, 8 Feb 2006 15:52:05 +0000 (GMT) (envelope-from dpkirchner@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D75643D68 for ; Wed, 8 Feb 2006 15:52:01 +0000 (GMT) (envelope-from dpkirchner@gmail.com) Received: by uproxy.gmail.com with SMTP id k3so514709ugf for ; Wed, 08 Feb 2006 07:51:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Icdc0Bun/x5RY80xT7xrP6oj6SImef53qagqIyMgJ4zNNBTK0XGm88+OLfM2arrjbcKbagVd5BCvR3XuKNZALCZqBz7SY/ilbgQXxx73YrPyo5CMgspj/pFejh5zLM69q59p1oMwEJQiNL2BW7Mga+mPKWuiRxXNkqtNgVIW01I= Received: by 10.49.33.17 with SMTP id l17mr2003382nfj; Wed, 08 Feb 2006 07:51:55 -0800 (PST) Received: by 10.48.222.5 with HTTP; Wed, 8 Feb 2006 07:51:55 -0800 (PST) Message-ID: <35c231bf0602080751p6df719f0sf61cee25d3404a8@mail.gmail.com> Date: Wed, 8 Feb 2006 07:51:55 -0800 From: David Kirchner Sender: dpkirchner@gmail.com To: Jens Trzaska In-Reply-To: <20060208152546.GA78035@anastasia.lan.barfoos.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060208152546.GA78035@anastasia.lan.barfoos.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: Wed, 08 Feb 2006 15:52:05 -0000 On 2/8/06, Jens Trzaska wrote: > Hi, > > 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. FWIW, you can run ktrace on init, although I don't really recommend running it with the '-d' or '-i' flags unless you have a lot of space for the output, heh.