Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jeffc@soba.osf.org (Jeff Carter)
Subject: Re: Giant init processes
Date: 3 Jun 1994 15:29:51 GMT	[thread overview]
Message-ID: <2sni9f$d3p@paperboy.osf.org> (raw)
In-Reply-To: 2snat7$n7d@coranto.ucs.mun.ca

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.


  reply	other threads:[~1994-06-03 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-03 13:23 Giant init processes Andrew Draskoy
1994-06-03 15:29 ` Jeff Carter [this message]
1994-06-04 16:02   ` Burkhard Neidecker-Lutz
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox