On 2/8/06, Jens Trzaska <jt@barfoos.de> 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.