9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] quick question on threads on p9p
@ 2005-10-18 22:34 Ronald G Minnich
  2005-10-18 22:45 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Ronald G Minnich @ 2005-10-18 22:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

  I see this:

  8894 pts/3    S      0:00 ./o.xcpusrv -9 -s tcp!*!20001 -D 0
  8898 pts/3    S      0:00 ./o.xcpusrv -9 -s tcp!*!20001 -D 0
  8900 pts/3    S      0:00 9pserve -u tcp!*!20001
  8902 pts/3    S      0:00 9pserve -u tcp!*!20001
  8904 pts/3    S      0:00 ./o.xcpusrv -9 -s tcp!*!20001 -D 0
  8906 pts/3    S      0:00 9pserve -u tcp!*!20001
  8908 pts/3    S      0:00 9pserve -u tcp!*!20001
  8910 pts/3    S      0:00 9pserve -u tcp!*!20001
  8919 pts/3    R      0:00 ps ax

rminnich@q:~/src/xcpu/xcpu> acid -l thread 8894
corpid 8894: text /home/rminnich/src/xcpu/xcpu/o.xcpusrv
/lib/i686/libm.so.6: linux 386 shared object
/lib/libutil.so.1: linux 386 shared object
/lib/i686/libc.so.6: linux 386 shared object
/lib/ld-linux.so.2: linux 386 shared object
/usr/local/plan9/acid/port
/usr/local/plan9/acid/thread
/usr/local/plan9/acid/386
acid; threads()
p=(Proc)0x8066050   // pthread 0x000022be pid 8894  Sched

p=(Proc)0x8066468   // pthread 0x000022c2 pid 8898  Sched
         t=(_Thread)0x8066728  // Sleeping 
/home/rminnich/src/xcpu/xcpu/xcpusrv.c:1177 chanalt [fsthread]

p=(Proc)0x8078bc0   // pthread 0x000022c8 pid 8904  Running
         t=(_Thread)0x8078e80  // Running 
/usr/local/plan9/src/lib9p/srv.c:62 read9pmsg
acid;

I'm seeing a bit more entries in /proc than I see in the threads() 
display in acid. What am I missing here?

thanks

ron


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] quick question on threads on p9p
  2005-10-18 22:34 [9fans] quick question on threads on p9p Ronald G Minnich
@ 2005-10-18 22:45 ` Russ Cox
  2005-10-18 22:59   ` Ronald G Minnich
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2005-10-18 22:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> rminnich@q:~/src/xcpu/xcpu> acid -l thread 8894
> corpid 8894: text /home/rminnich/src/xcpu/xcpu/o.xcpusrv
> /lib/i686/libm.so.6: linux 386 shared object
> /lib/libutil.so.1: linux 386 shared object
> /lib/i686/libc.so.6: linux 386 shared object
> /lib/ld-linux.so.2: linux 386 shared object
> /usr/local/plan9/acid/port
> /usr/local/plan9/acid/thread
> /usr/local/plan9/acid/386
> acid; threads()
> p=(Proc)0x8066050   // pthread 0x000022be pid 8894  Sched
>
> p=(Proc)0x8066468   // pthread 0x000022c2 pid 8898  Sched
>          t=(_Thread)0x8066728  // Sleeping
> /home/rminnich/src/xcpu/xcpu/xcpusrv.c:1177 chanalt [fsthread]
>
> p=(Proc)0x8078bc0   // pthread 0x000022c8 pid 8904  Running
>          t=(_Thread)0x8078e80  // Running
> /usr/local/plan9/src/lib9p/srv.c:62 read9pmsg
> acid;

It's weird that 8894 has no threads.

> I'm seeing a bit more entries in /proc than I see in the threads()
> display in acid. What am I missing here?

Those three are the only ones you listed in your ps output.
What do you see in /proc?  One could also attach with gdb
and run "thread apply all where" to get an alternate view of
the current thread in each proc.  Useful for sanity checking,
but little else.  stacks() in acid will give you the stack of
every thread, current or not.

Russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] quick question on threads on p9p
  2005-10-18 22:45 ` Russ Cox
@ 2005-10-18 22:59   ` Ronald G Minnich
  0 siblings, 0 replies; 3+ messages in thread
From: Ronald G Minnich @ 2005-10-18 22:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

thanks, the stacks() is very helpful.

ron


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-18 22:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-18 22:34 [9fans] quick question on threads on p9p Ronald G Minnich
2005-10-18 22:45 ` Russ Cox
2005-10-18 22:59   ` Ronald G Minnich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).