From owner-freebsd-current Mon Jun 17 17: 6:30 2002 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by hub.freebsd.org (Postfix) with ESMTP id 9D29537B415 for ; Mon, 17 Jun 2002 17:06:22 -0700 (PDT) Received: from mfg1.cim.alcatel.com.au (localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.1/8.12.1/Alcanet1.2) with ESMTP id g5I06HEd020384; Tue, 18 Jun 2002 10:06:18 +1000 Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37645) with ESMTP id <01KJ2M1IYSQ890Q3YA@cim.alcatel.com.au>; Tue, 18 Jun 2002 10:05:45 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.3/8.12.3) with ESMTP id g5I06Dru000510; Tue, 18 Jun 2002 10:06:13 +1000 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.3/8.12.3/Submit) id g5I06DrM000509; Tue, 18 Jun 2002 10:06:13 +1000 (EST) Content-return: prohibited Date: Tue, 18 Jun 2002 10:06:12 +1000 From: Peter Jeremy Subject: Re: proc-args (M_PARGS) leakage In-reply-to: <20020617230109.I360-100000@gamplex.bde.org>; from bde@zeta.org.au on Mon, Jun 17, 2002 at 11:17:21PM +1000 To: Bruce Evans Cc: freebsd-current@FreeBSD.ORG Mail-Followup-To: Bruce Evans , freebsd-current@FreeBSD.ORG Message-id: <20020618100612.A438@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5.1i References: <20020617155522.X3493-100000@gamplex.bde.org> <20020617230109.I360-100000@gamplex.bde.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Jun-17 23:17:21 +1000, Bruce Evans wrote: >sendmail was just doing setproctitle() to usually the same value every >few seconds. Doing sysproctitle() in a loop exhausts kernel memory in a >few minutes (it should only take a few seconds, but bot the user and >kernel parts of setproctitle() are slow). Thanks for that. I'd totally missed that and thought the problem was in the process cleanup code (exit1() and wait1()). >The following patch seems to fix all the bugs that I noticed except minor >style bugs. It was tested mainly with setproctitle() in a loop. It got mangled on the way here but after cleaning it up and applying it, a short check suggests it fixes my problem (though there seem to be other un-related problems with -CURRENT just now). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message