[1936] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: w

daemon@ATHENA.MIT.EDU (Timo Karjalainen)
Wed Oct 30 20:13:28 1996

Date: Thu, 31 Oct 1996 03:10:37 +0200 (EET)
From: Timo Karjalainen <wizzo@pc164103.oulu.fi>
To: redhat-list@redhat.com
In-Reply-To: <Pine.SOL.3.95.961031004114.21584A-100000@hammer.thor.cam.ac.uk>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Thu, 31 Oct 1996, Philip Blundell wrote:

> On Thu, 31 Oct 1996, Timo Karjalainen wrote:
> 
> > > The "PCPU" and "WHAT" columns don't seem to be very useful, and I'm
> > > somewhat suspicious of JCPU as well.  Does anybody have a fix for this
> > > problem? 
> > 
> > rm /etc/psdevtab
> > 
> > ...and try w after that and it should work...
> 
> Cool, it worked.  What's psdevtab for, exactly, and how did I end up with
> a broken one?

From ps man-page:

To  perform the device number to name mapping ps maintains a file called
"/etc/psdevtab" (updated whenever "/dev" becomes newer and permissions allow
update).  If permissions  do  not  allow  update, every invokation of ps requires a
stat(2) of every file in the "/dev" directory.  If "/dev" changes often on 
your system you should run ps  as root often. ;-)

I ended up with a broken psdevtab after upgrading to MAKEDEV-2.2-5 which
allows those 256 ptys... I ran MAKEDEV and next time when I logged in I 
noticed that PCPU & WHAT fields were all mixed up... It took a few days to
find out what was wrong but basically I was just trying out everything
and ended up with that being the solution so...

-Timo-
wizzo@pc164103.oulu.fi


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post