From owner-freebsd-questions Sun Jul 21 15: 7:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45D8D37B400 for ; Sun, 21 Jul 2002 15:07:47 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D4143E3B for ; Sun, 21 Jul 2002 15:07:46 -0700 (PDT) (envelope-from sschwarzer@sschwarzer.net) Received: from [212.227.126.155] (helo=mrelayng1.kundenserver.de) by moutng0.kundenserver.de with esmtp (Exim 3.35 #2) id 17WOrf-00042b-00; Mon, 22 Jul 2002 00:07:43 +0200 Received: from p508e4346.dip0.t-ipconnect.de ([80.142.67.70] helo=sschwarzer.net) by mrelayng1.kundenserver.de with asmtp (Exim 3.35 #2) id 17WOre-0006ha-00; Mon, 22 Jul 2002 00:07:42 +0200 Message-ID: <3D3B3144.6010603@sschwarzer.net> Date: Mon, 22 Jul 2002 00:10:12 +0200 From: Stefan Schwarzer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020720 X-Accept-Language: de-de, en-us, en MIME-Version: 1.0 To: Dan Nelson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: top(1) blocks References: <3D3AD89E.3000104@sschwarzer.net> <20020721195730.GH40625@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Dan thank you for your reply. Dan Nelson wrote: >>The problem: >> >>purpurea# top >>^C > > Hit ^T here instead of ^C. That will print a status line saying where > top is blocking in the kernel. Unfortunately, it doesn't. Pressing ^T doesn't change anything. svss@purpurea:~$ top ^T^C svss@purpurea:~$ > Also try ktrace'ing it, hit ^C, and use > kdump to see what top was doing when you hit ^C. I used svss@purpurea:~$ ktrace top -b -d1 ^C svss@purpurea:~$ (Is this the correct usage? I hope I understood the manpage here.) The corresponding output from kdump is svss@purpurea:~$ kdump 45359 ktrace RET ktrace 0 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) 45359 ktrace NAMI "/sbin/top" 45359 ktrace RET execve -1 errno 2 No such file or directory 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) 45359 ktrace NAMI "/bin/top" 45359 ktrace RET execve -1 errno 2 No such file or directory 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) 45359 ktrace NAMI "/usr/sbin/top" 45359 ktrace RET execve -1 errno 2 No such file or directory 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) 45359 ktrace NAMI "/usr/bin/top" 45359 ktrace NAMI "/usr/libexec/ld-elf.so.1" A kdump from my machine at home where top is working gives the "same" output (only the numbers given with execve differ). "ktrace -di top -b -d1" gives the same output as above. Stefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message