home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10102 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  2.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!psinntp!psinntp!rsi!prcrs!paul
  2. From: paul@prcrs.prc.com (Paul Hite)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Sleeping processes
  5. Message-ID: <4737@prcrs.prc.com>
  6. Date: 4 Sep 92 15:02:11 GMT
  7. References: <1992Aug18.122020.8445@ugle.unit.no> <4310271@hpindda.cup.hp.com>
  8. Organization: PRC Realty Systems, McLean, VA
  9. Lines: 33
  10.  
  11. In article <4310271@hpindda.cup.hp.com>, mintz@hpindda.cup.hp.com (Ken Mintz) writes:
  12. > > F S   UID   PID  PPID  C PRI NI     ADDR   SZ    WCHAN TTY      TIME COMD
  13. > > 1 S     0 22026 22023  0 168 20  47d2580  657 68fa8000 ttys0    2:12 fbackup
  14. > > What is event 68fa8000 and where do I find some more information about the
  15. > > issue?
  16. >   WCHAN is usually simply the address of an internal kernel data structure.
  17. >   We can use adb on the kernel to determine the name of the structure (if
  18. >   it is not allocated dynamically), but the name is often meaningful only
  19. >   to a development engineer who is familiar with internal kernel algorithms.
  20.  
  21. You can use glance to decode the WCHAN address:
  22. rwhod          105     1 154 root       0.0/ 0.1%    90ms  0.8/ 0.5    36 SOCKT
  23. sh           23819 23796 158 smc        0.0/ 0.1%    10ms  0.0/ 0.0    72 SLEEP
  24. sh           23793 23790 158 smc        0.0/ 0.0%    20ms  0.0/ 0.0    76 SLEEP
  25. statdaemon       3     0 128 root       2.5/ 2.1%  2880ms  0.0/ 0.0    na   SYS
  26. swapper          0     0 128 root       0.0/ 0.1%    90ms  0.4/ 0.0    na  MBUF
  27. syncer          46     1 168 root       1.3/ 0.1%   140ms  6.7/ 1.3    24 SLEEP
  28. syslogd         75     1 154 root       0.0/ 0.0%     0ms  0.0/ 0.0    64 SLEEP
  29. vi           23772 19475 156 dave       0.0/ 0.2%   300ms  0.0/ 0.1   228  TERM
  30.                                                                           ^^^^^
  31.                                                                             |
  32.                                         This is the decoded WCHAN field -----
  33.  
  34. I believe the glance is the only tool on HP-UX that does this.  I obtained the
  35. source code for the latest BSD ps from uunet.  It decodes the WCHAN field by
  36. default and a -n can be used to get the actual address.  It would be very nice
  37. if someone could port that to HP-UX.
  38.  
  39. Paul Hite   PRC Realty Systems  McLean,Va   paul@prcrs.prc.com    (703) 556-2243
  40.     "We are trying to bring up an Air Traffic Control display on an X window 
  41.       terminal and there seems to be some problems." -- from comp.windows.x
  42.