* LAT connections not being removed from /var/adm/utmp @ 1994-09-15 0:14 Steve Morin 1994-09-15 16:05 ` Scott Ruch 0 siblings, 1 reply; 5+ messages in thread From: Steve Morin @ 1994-09-15 0:14 UTC (permalink / raw) I have upgraded two DEC 3000/600 running OSF/1 2.0 [Rev 250] to OSF/1 3.0 [Rev 347]. One of the machines after the upgrade does not clear entries from the /var/adm/utmp file if the user connects to the machine through LAT [BSD] devices, the other machine does! Both machines correctly remove utmp entries if the user comes in over TCP/IP. I've checked the permissions on various files that might be related to the problem, and have not found a cause to this yet. Am I missing something obvious? Steve Morin ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LAT connections not being removed from /var/adm/utmp 1994-09-15 0:14 LAT connections not being removed from /var/adm/utmp Steve Morin @ 1994-09-15 16:05 ` Scott Ruch 1994-09-19 20:01 ` Patrick leMaistre 1994-09-20 13:50 ` Scott Ruch 0 siblings, 2 replies; 5+ messages in thread From: Scott Ruch @ 1994-09-15 16:05 UTC (permalink / raw) Steve Morin (srmorin@kira.ecs.umass.edu) wrote: : I have upgraded two DEC 3000/600 running OSF/1 2.0 [Rev 250] to OSF/1 3.0 : [Rev 347]. One of the machines after the upgrade does not clear entries from : the /var/adm/utmp file if the user connects to the machine through LAT [BSD] : devices, the other machine does! Both machines correctly remove utmp entries : if the user comes in over TCP/IP. I've checked the permissions on various : files that might be related to the problem, and have not found a cause to : this yet. Am I missing something obvious? : This is a known problem and there is a patch available from Digital. Please consult your support channels. -- -------------------------------------------------- Scott Ruch Unix Systems Group Digital Equipment Corp. 200 US Rt. 9 North swr@unx.dec.com Manalapan, NJ 07726-9455 (908) 577-6082 -------------------------------------------------- ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LAT connections not being removed from /var/adm/utmp 1994-09-15 16:05 ` Scott Ruch @ 1994-09-19 20:01 ` Patrick leMaistre 1994-09-21 9:39 ` John McNulty 1994-09-20 13:50 ` Scott Ruch 1 sibling, 1 reply; 5+ messages in thread From: Patrick leMaistre @ 1994-09-19 20:01 UTC (permalink / raw) In <359rch$i3u@jac.zko.dec.com> swr@swell.unx.dec.com (Scott Ruch) writes: >Steve Morin (srmorin@kira.ecs.umass.edu) wrote: >: I have upgraded two DEC 3000/600 running OSF/1 2.0 [Rev 250] to OSF/1 3.0 >: [Rev 347]. One of the machines after the upgrade does not clear entries from >: the /var/adm/utmp file if the user connects to the machine through LAT [BSD] >: devices, the other machine does! Both machines correctly remove utmp entries >: if the user comes in over TCP/IP. I've checked the permissions on various >: files that might be related to the problem, and have not found a cause to >: this yet. Am I missing something obvious? >: >This is a known problem and there is a patch available from Digital. Please >consult your support channels. Apparently Scott Ruch's patch has yet to be invented, because I've been in contact with DECsupport and have yet to receive it :-( 90% of our users connect via LAT and we're starting to build up these defunct processes very _QUICKLY_. We can't kill them because they were all created by PID 1 and we all know what happens when you do a "kill -9 1" don't we. Does any guru out there know how we can kill a defunct process that was created by init (PID 1) without toasting the whole thing. I think the /var/adm/utmp problem Steve talked about is one in the same. -- Patrick G. leMaistre, Communication Systems Engineer, Health Sciences Centre Email: patrick@hsc.mb.ca ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LAT connections not being removed from /var/adm/utmp 1994-09-19 20:01 ` Patrick leMaistre @ 1994-09-21 9:39 ` John McNulty 0 siblings, 0 replies; 5+ messages in thread From: John McNulty @ 1994-09-21 9:39 UTC (permalink / raw) > Apparently Scott Ruch's patch has yet to be invented, because I've been > in contact with DECsupport and have yet to receive it :-( 90% of our > users connect via LAT and we're starting to build up these defunct > processes very _QUICKLY_. > > We can't kill them because they were all created by PID 1 and we all know > what happens when you do a "kill -9 1" don't we. Does any guru out there > know how we can kill a defunct process that was created by init (PID 1) > without toasting the whole thing. > > I think the /var/adm/utmp problem Steve talked about is one in the same. Ok, this should clear up the mystery around this. Not all v3.0 systems are seeing this problem. To make sure that you are, try this test. If you can start kdbx (if you have DECnet or some other dynamically loaded kernel subsystem, kdbx won't start up and you'll need a patched dbx), then do this: $ kdbx -k /vmunix (kdbx) set $pid=1 (kdbx) list_action "struct proc *" p_osptr 0 thread->stack->uthread->proc->p_cpt r "p %c,%c->p_pid, %c->p_flag&0x440" Enter this on one command line: it dumps init's child list and display some interesting flags. This header describes the fields displayed, with a little sample output. PROC_PTR PID P_FLAGS & (SNOTASK|SWEXIT) --------------------------------------------------- 0xffffffff81b08d80 30857 0 0xffffffff81b24210 30858 0 0xffffffff81b26210 30861 0 0xffffffff81324d80 29764 0 . . . You want to look for a pattern like this: 0xffffffff81374d80 4459 1024 = SWEXIT 0xffffffff81382d80 4364 1088 = SNOTASK|SWEXIT 0xffffffff81376d80 3783 1088 0xffffffff81370d80 824 1024 0xffffffff8136e210 823 1088 0xffffffff8136ed80 822 1088 0xffffffff8136c210 821 1088 0xffffffff8136cd80 820 1088 0xffffffff8136a210 819 1088 The procs with flags = 1088 are unreaped zombie children of init. In this display, they are all from LAT gettys in inittab, so they show up as being csh, ksh, etc, processes. The procs with flags = 1024 are part of the problem. They are attempting to do some streams cleanup and are hung. Their presence in init's child list is causing the following zombies not to be cleaned up. The side effect of this is that when a LAT connected user logs out, init doesn't respawn the getty process, and eventually you'll run out of available LAT lines. If you're suffering from this problem then run this script from cron about once an hour. #!/bin/ksh ps -je | while read -u0 data do set $data case $7 in T) kill -CONT $2 ;; *) ;; esac done This will allow the involved child processes and their (<defunct>) parents to completely exit. Once all "1024" processes are clear from init's child list, the zombies remaining in the list will be cleaned up. This is only a work around, but will keep you up and running without having to reboot. A patch for this problem is currently under test, and will be generally available shortly. Contact your local CSC, quote IPMT case number UVO102126 and put your name down for the patch. -- John McNulty Digital Equipment Corporation CSC/UK Unix Support Group ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LAT connections not being removed from /var/adm/utmp 1994-09-15 16:05 ` Scott Ruch 1994-09-19 20:01 ` Patrick leMaistre @ 1994-09-20 13:50 ` Scott Ruch 1 sibling, 0 replies; 5+ messages in thread From: Scott Ruch @ 1994-09-20 13:50 UTC (permalink / raw) Scott Ruch (swr@swell.unx.dec.com) wrote: : : This is a known problem and there is a patch available from Digital. Please : consult your support channels. My apologies to those of you whom I led astray with this information. A patch for this problem is not yet available. Please do contact your support channels for more information on it's future availability. -- -------------------------------------------------- Scott Ruch Unix Systems Group Digital Equipment Corp. 200 US Rt. 9 North swr@unx.dec.com Manalapan, NJ 07726-9455 (908) 577-6082 -------------------------------------------------- ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1994-09-21 9:39 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1994-09-15 0:14 LAT connections not being removed from /var/adm/utmp Steve Morin 1994-09-15 16:05 ` Scott Ruch 1994-09-19 20:01 ` Patrick leMaistre 1994-09-21 9:39 ` John McNulty 1994-09-20 13:50 ` Scott Ruch
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox