From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: ps hangs: followup Date: Tue, 10 Feb 2004 15:57:01 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9D592DB37A92234AB635C5585D2D08196AACAA@cobra.pc.cognex.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1076449618 7561 80.91.224.253 (10 Feb 2004 21:46:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2004 21:46:58 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Feb 10 22:46:48 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AqfiQ-00010A-00 for ; Tue, 10 Feb 2004 22:46:46 +0100 Original-Received: (qmail 11744 invoked by uid 5); 10 Feb 2004 20:58:07 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11729 invoked by uid 49493); 10 Feb 2004 20:58:06 -0000 Original-Received: from Andy.Cohen@cognex.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0/0):. Processed in 45.363898 secs); 10 Feb 2004 20:58:06 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 10 Feb 2004 20:57:21 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HSV00K10ZJCFA@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 10 Feb 2004 15:57:20 -0500 (EST) Original-Received: from cognex.cognex.com (cognex-cp.cognex.com [198.232.30.75]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HSV003NLZJ3N9@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 10 Feb 2004 15:57:04 -0500 (EST) Original-Received: from atlantis.pc.cognex.com (atlantis.pc.cognex.com [10.10.160.5]) by cognex.cognex.com (8.12.10/8.12.10) with ESMTP id i1AKv2lD015117 for ; Tue, 10 Feb 2004 15:57:02 -0500 (EST) Original-Received: from cobra.pc.cognex.com ([10.10.160.30]) by atlantis.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 10 Feb 2004 15:57:02 -0500 Original-Received: from atlantis.pc.cognex.com ([10.10.160.5]) by cobra.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 09 Feb 2004 13:15:21 -0500 Original-Received: from mail-gw.cognex.com ([10.10.128.26]) by atlantis.pc.cognex.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 09 Feb 2004 13:15:20 -0500 Original-Received: from sws1.ornl.gov (sws1.ornl.gov [160.91.1.101]) by mail-gw.cognex.com (8.12.10/8.12.10) with SMTP id i19IFE85017458 for ; Mon, 09 Feb 2004 13:15:16 -0500 (EST) Original-Received: (qmail 2389 invoked by uid 5); Mon, 09 Feb 2004 18:14:57 +0000 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMEOLE: Produced By Microsoft Exchange V6.0.6334.0 Thread-Topic: ps hangs Thread-Index: AcPvOImJcGVZRpoBTjCsR/lBD7nmPg== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 10 Feb 2004 20:57:02.0490 (UTC) FILETIME=[6EC6A7A0:01C3F018] Xref: main.gmane.org gmane.os.tru64.managers:6398 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6398 I got a lot of helpful replies though the unanimous bottom line is that = only a reboot will make it go away -- note that I didn't say 'fix it'. However, I did get a particularly helpful email from Whitney Latta at HP = detailing the steps to take with dbx to determine what is wrong with ps: 1)Enter a dbx session (do this as root): type "dbx -k /vmunix" 2)At the "dbx>" prompt, find the "pid" of the ps command to examine by = typing "kps" 3)Set the dbx debugger context directly to that "pid" by typing "set = $pid=3D####" (Where "####" is the pid number of the ps process to be = examined...)=20 4)Verify where you are by typing "pd $pid"; it should return the pid = number you set in above. 5)Display the process stack trace by typing the command "t".=20 (you could look at each one in turn by repeating the "set" command, with = the new ps command's pid... then repeat the "t" command for each, and = compare if they all look similar; then, they're blocked for the same = thing!) 6)To exit the debugger, simply type "quit" Whitney then went on to say: "The function calls seen on the stack will reveal what the thread was = doing up to the point where it blocked and context-switched out of the = cpu. Try this and send the results out to the dist." So I did as suggested and am sending out the results of the stack: THIS IS FOR ONE OF THE 'PS' SESSIONS: 0 thread_block() ["../../../../src/kernel/kern/sched_prim.c":3230, = 0xfffffc00002ea190] 1 u_anon_lock(0xe000, 0x0, 0xfffffc0008ae38b8, 0x120000000, 0x8) = ["../../../../src/kernel/vm/u_mape_anon.c":4174, 0xfffffc000062cf14] 2 u_anon_dupmcopy(0xfffffc0008ae38c0, 0xfffffc00369faf28, = 0xfffffc0037245800, 0xfffffc0008ae38c0, 0x120000000) = ["../../../../src/kernel/vm/u_mape_anon.c": 2868, 0xfffffc000062a80c] 3 u_stack_dup(ep =3D (unallocated - symbol optimized away), va =3D = (unallocated - symbol optimized away), size =3D (unallocated - symbol = optimized away), nep =3D (unallocated - symbol optimized away), copy =3D (unallocated - symbol = optimized away)) ["../../../../src/kernel/vm/u_mape_stack.c":555, = 0xfffffc000063a5b8] 4 u_map_copyin(0xfffffc002a416678, 0x11fffe000, 0xfffffc0000000000, = 0x120000000, 0xfffffe0451646f40) = ["../../../../src/kernel/vm/vm_umap.c":2523, 0xfffffc 0000655b34] 5 table(0xfffffc00002ca718, 0x11fff10c0, 0x0, 0xfffffc003b794000, = 0xfffffe04008a8020) ["../../../../src/kernel/bsd/cmu_syscalls.c":1694, = 0xfffffc00002577c 8] 6 syscall(0x140007fd0, 0x1, 0x1000, 0x30, 0x0) = ["../../../../src/kernel/arch/alpha/syscall_trap.c":725, = 0xfffffc000066bf40] 7 _Xsyscall(0x8, 0x3ff800d6988, 0x14000ee30, 0x6, 0x8592) = ["../../../../src/kernel/arch/alpha/locore.s":1814, 0xfffffc000066f71c] THIS IS FOR A SESSION THAT IS HUNG AFTER HAVING ISSUED 'W': 0 thread_block() ["../../../../src/kernel/kern/sched_prim.c":3230, = 0xfffffc00002ea190] 1 u_anon_lock(0xe000, 0x0, 0xfffffc000e7623b8, 0x120000000, 0x8) = ["../../../../src/kernel/vm/u_mape_anon.c":4174, 0xfffffc000062cf14] 2 u_anon_dupmcopy(0xfffffc000e7623c0, 0xfffffc0015a6b4a8, = 0xfffffc002549aa00, 0xfffffc000e7623c0, 0x120000000) = ["../../../../src/kernel/vm/u_mape_anon.c": 2868, 0xfffffc000062a80c] 3 u_stack_dup(ep =3D (unallocated - symbol optimized away), va =3D = (unallocated - symbol optimized away), size =3D (unallocated - symbol = optimized away), nep =3D (unallocated - symbol optimized away), copy =3D (unallocated - symbol = optimized away)) ["../../../../src/kernel/vm/u_mape_stack.c":555, = 0xfffffc000063a5b8] 4 u_map_copyin(0xfffffc002a417078, 0x11fffe000, 0xfffffc0000000000, = 0x120000000, 0xfffffe0451616f40) = ["../../../../src/kernel/vm/vm_umap.c":2523, 0xfffffc 0000655b34] 5 table(0x26, 0xfffffc00002984ac, 0xfffffc000066bf44, 0x14000d600, = 0x2000) ["../../../../src/kernel/bsd/cmu_syscalls.c":1694, = 0xfffffc00002577c8] 6 syscall(0x11fffbe88, 0x1, 0x80, 0x120020a10, 0x0) = ["../../../../src/kernel/arch/alpha/syscall_trap.c":725, = 0xfffffc000066bf40] 7 _Xsyscall(0x8, 0x120017cf8, 0x12000fd30, 0x6, 0x858a) = ["../../../../src/kernel/arch/alpha/locore.s":1814, 0xfffffc000066f71c] They look very similar (if not identical) so I won't paste in the stack = of the hung 'df' session. Does this mean anything to anybody? Anything that can be done or am I = still left with a reboot as my only option? I probably can't reboot for = a few days and the problem seems to be getting worse -- yesterday it was = only 'ps' that was hanging, today 'df' is hanging as well (it wasn't = hanging yesterday). Thanks alot! Andy ORIGINAL QUESTION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Hi, When we're logged in as root and issue a 'ps' nothing happens - it just = hangs. I can't kill them -- they won't die. We're running 5.1A on an = AS 800. Have I exhausted some process limit? Thanks, Andy p.s. -- I don't see anything in /var/adm/messages or uerf. =20 BEGIN-CANIT-VOTING-LINKS ------------------------------------------------------ Teach CanIt if this mail (ID 564398) is spam: Spam: = http://mail-gw.cognex.com/canit/b.php?c=3Ds&i=3D564398&m=3D8b7d677ffe22 Not spam: = http://mail-gw.cognex.com/canit/b.php?c=3Dn&i=3D564398&m=3D8b7d677ffe22 Forget vote: = http://mail-gw.cognex.com/canit/b.php?c=3Df&i=3D564398&m=3D8b7d677ffe22 ------------------------------------------------------ END-CANIT-VOTING-LINKS