> 3) type a few characters and save the file with C-x C-s. After the
> file is saved top will show 0 processes. Sometimes it will show
> only a few processes for an istant and then nothing. Sometimes
> it will work fine. After a few seconds the missing processes
> will show again. Modifying and saving the file again will show
> the same behavior.
When you say top prints nothing do you mean it only prints the header
and no processes in the list? Does this problem happen with any other
program, say vi, or only in emacs? Does ps have this bevhavour?
> In the attachments you will find two traces of the running top, one behaving
> normally and one exhibiting the problem, and my kernel config.
The interesting difference is that the good program does
stat64,open,read,close...
But the bad program does is just stat64.
I get 96 stat64s for both programs in that loop.
So obviously top doesn't like whatever stat64 is telling it.
Looking at the code (in readproc() in proc/readproc.c if anyone is
interested) I cannot see much that should upset it. We know stat is
returning 0 so that is ok, about the only other thing is a alloc.
If you like, you can submit this as a bug report into the Debian Bug
Tracking System, but I suspect there is a kernel problem here giving
wierd stat returns for proc.
- Craig
-- Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 Eye-Net Consulting http://www.eye-net.com.au/ <csmall@eye-net.com.au> MIEEE <csmall@ieee.org> Debian developer <csmall@debian.org> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/