Red Hat Bugzilla – Bug 109704
ps -m doesn't show threads
Last modified: 2007-11-30 17:10:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5)
Description of problem:
ps -m no longer shows threads. It did in RedHat 9.
It looks to me like the /proc entries for the thread are missing?
Since I can't tell what PID they have, it's hard to tell, but assuming
the next PID would have been allocated, there's no entry for it.
On the other hand, if the (numerically) next entry in /proc (which
isn't PPID + 1) _is_ the thread, it's weirdly formed - the exe "link"
doesn't go anywhere, for example.
Run the following python example and use ps -m. On RedHat 9, you'll
see two threads, on Fedora Core 1, just the parent.
import threading, time
threading.Thread(target = test).start()
Version-Release number of selected component (if applicable):
It appears the problem was that I'd built procps-2.0.17-1 on RH9 (to
get the slabinfo commands) and that build was somehow broken against
It's probably a bug in the procps build scripts (like it detects
kernel version at compile time rather than run time), but it's not