Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 1999 11:34:19 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Joshua Albertson <jalbertson@jcrt.harvard.edu>
Cc:        Ben Gras <ben@nl.euro.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: ps question
Message-ID:  <19990723113419.F84734@freebie.lemis.com>
In-Reply-To: <01BED445.030F0320.jalbertson@jcrt.harvard.edu>; from Joshua Albertson on Thu, Jul 22, 1999 at 01:20:47PM -0400
References:  <01BED445.030F0320.jalbertson@jcrt.harvard.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 22 July 1999 at 13:20:47 -0400, Joshua Albertson wrote:
> On Thursday, July 22, 1999 10:36 AM, Ben Gras <ben@nl.euro.net> wrote:
>>> ps currently reports a start time of "Wed Dec 31 19:00:00 1969" for all my processes.
>>> what  may be causing ps to incorrectly report lstart?
>>> clock is functioning, procfs looks allright...
>>
>> First of all, make sure your kernel and ps binary are in sync ..
>
> ok, I just cvsupped ps and kernel, compiled, installed, rebooted,...
>
> bash-2.02$ ps aux
> USER     PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
> j        208  0.0  0.3   392  228  p0  R+   31Dec69   0:00.01 ps -aux
> root       1  0.0  0.4   500  288  ??  SLs  31Dec69   0:00.02 /sbin/init --
> root       2  0.0  0.0     0    0  ??  DL   31Dec69   0:00.00  (pagedaemon)
> root       3  0.0  0.0     0    0  ??  DL   31Dec69   0:00.00  (vmdaemon)
> root       4  0.0  0.0     0    0  ??  DL   31Dec69   0:00.00  (bufdaemon)
> root       5  0.0  0.0     0    0  ??  DL   31Dec69   0:00.00  (syncer)
> root      35  0.0  0.1   204   84  ??  Is   31Dec69   0:00.00 adjkerntz -i
> root     102  0.0  0.8   828  560  ??  Ss   31Dec69   0:00.10 syslogd
> daemon   111  0.0  0.6   828  416  ??  Is   31Dec69   0:00.00 portmap
> ...
> bash-2.02$ date
> Thu Jul 22 13:07:21 EDT 1999

First, you shouldn't be asking these questions on -questions.  If
you're running -CURRENT, you should be subscribed to FreeBSD-current.
But you shouldn't ask this question there either: it's a FAQ.  From
"The Complete FreeBSD"

  One of the more common problems that people see after building a new
  -CURRENT kernel looks like this:

  $ ps
  ps: proc size mismatch (15800 total, 656 chunks)
  
  This is a sure indication that your ps program or the kvm library no
  longer match your kernel.  To solve this problem, do the following:
  
  # cd /usr/src/lib/libkvm
  # make all install clean
  # cd /usr/src/bin/ps
  # make all install clean

Yes, it doesn't cover the possibility that the output is just
garbled.  But it's the same problem.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990723113419.F84734>