*BSD News Article 56348


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!ames!hookup!news.mathworks.com!news.kei.com!nntp.coast.net!swidir.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!cs.tu-berlin.de!informatik.uni-bremen.de!nordwest.pop.de!uniol!uni-erlangen.de!lrz-muenchen.de!uni-regensburg.de!news.uni-stuttgart.de!schweikh
From: schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: ps weirdness
Date: 8 Dec 1995 09:23:18 GMT
Organization: Comp.Center (RUS), U of Stuttgart, FRG
Lines: 33
Message-ID: <4a9066$1tqk@info4.rus.uni-stuttgart.de>
NNTP-Posting-Host: itosun.ito.uni-stuttgart.de

A few questions concerning ps as of the 2.1.0 release:
First some output, then my questions.

% ps -N /kernel.GENERIC -x    # Yes, I'm really running the GENERIC kernel
  PID  TT  STAT      TIME COMMAND
    0  ??  DLs    0:00.00  (swapper)
    1  ??  Is     0:00.00  (init)
    2  ??  DL     0:00.00  (pagedaemon)
    3  ??  DL     0:00.00  (vmdaemon)
    4  ??  DL     0:00.00  (update)
   45  ??  Is     0:00.00  (routed)
   60  ??  Is     0:00.00  (syslogd)
   77  ??  Is     0:00.00  (inetd)
   84  ??  Is     0:00.00  (cron)
   86  ??  Is     0:00.00  (lpd)
  148  v0  Ss     0:00.00  (bash)
  246  v0  R+     0:00.00  (ps)           <- not sorted after PID
  149  v1  Is+    0:00.00  (bash)
  150  v2  Is+    0:00.00  (getty)
(approximately the same output when I run my custom kernel)

- Why are all TIME fields 0:00.00? (top(1), however, reports TIME > 0)
- Why is the output not sorted by PID although ps(1) says it should be?
- Why are all processes in parentheses? Where are the invocation options?
- I read the notes in the handbook about ps not working with new kernels
  but shouldn't it work with the generic kernel from the same release?
- What did I screw up?

Inquiring minds want to know...

Bye, Jens
-- 
SIGSIG -- signature too long (core dumped)