From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5967d0a27106387 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-03 09:55:11 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!paperboy.osf.org!jeffc From: jeffc@soba.osf.org (Jeff Carter) Newsgroups: comp.unix.osf.osf1 Subject: Re: Giant init processes Date: 3 Jun 1994 15:29:51 GMT Organization: Open Software Foundation Distribution: world Message-ID: <2sni9f$d3p@paperboy.osf.org> References: <2snat7$n7d@coranto.ucs.mun.ca> NNTP-Posting-Host: soba.osf.org In article <2snat7$n7d@coranto.ucs.mun.ca>, andrew@bransle (Andrew Draskoy) writes: > Has anyone else had problems with the init process on OSF on Alphas > hogging memory? On our machines, it starts off at boot like a normal > UNIX init, taking up no noticable memory. It proceeds to grow over a > period of a few weeks to be more greater than 8Mbytes in virtual > memory. This, combined with the apparent swap-not-all-released problem > and maybe others, makes a machine thats really fast at boot time seem > slow enough to be almost unusable after its been up for a few weeks. > The machine that's worst hit by this is our news server, which doesn't > have any general users on it, so user logins are limited. It's running > 1.3 at the moment. This problem was in the original OSF version of init. There is a memory leak in the handling of init's "process table", that causes it to malloc memory and then never free it. When this was reported to OSF, we fixed it (osf1 CR8800) but I don't know if the fix was incorporated into an OSF maintenance release (would have been OSF/1 R1.2.1 or OSF/1 R1.2.2, not to be confused with the DEC OSF/1 versions, which use a totally different numbering scheme). The fix is fairly simple, DEC can retrieve the relevant info from the OSF Systems Engineering group, referencing the CR #. It involves adding if (!p->p_flags) freeproc(p); to 3 places in spawn(). Given the nature of the defect, you can possibly reduce the impact on your system by deleting any unnecessary lines from /etc/inittab -- the problem is that it alloc's memory for each line in inittab, and fails to free it if the line is not "active" in the current state.