truss and /sbin/init

Oliver Fromme olli at lurza.secnetix.de
Thu Feb 9 06:29:48 PST 2006


Jens Trzaska <jt at barfoos.de> wrote:
 > David Kirchner <dpk at dpk.net> [2006-02-08 16:53]:
 > > 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. 

It _is_ the case in 4.x:

$ uname -rs
FreeBSD 4.11-STABLE
$ ps -p 1
  PID  TT  STAT      TIME COMMAND
    1  ??  ILs    0:17.41 /sbin/init --

As for the reason:  Well, init(8) is special.  Its existence
is critical for the running system, so it cannot be paged
out to swap space.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"C is quirky, flawed, and an enormous success."
        -- Dennis M. Ritchie.


More information about the freebsd-stable mailing list