From owner-freebsd-current Sat Oct 19 7:16:56 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CA6A37B401; Sat, 19 Oct 2002 07:16:55 -0700 (PDT) Received: from uucp.nl.uu.net (uucp.nl.uu.net [193.79.237.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9ACC43E8A; Sat, 19 Oct 2002 07:16:54 -0700 (PDT) (envelope-from ben@stuyts.nl) Received: from stuyts by uucp.nl.uu.net with UUCP id ; Sat, 19 Oct 2002 14:16:41 +0000 Received: from lodovik.stuyts.nl (lodovik.stuyts.nl [193.78.231.31]) by stuyts.nl (8.12.6/8.12.6) with ESMTP id g9JEGKtD002240; Sat, 19 Oct 2002 16:16:20 +0200 (CEST) (envelope-from ben@stuyts.nl) Message-Id: <4.3.2.7.2.20021019161330.00b36938@terminus> X-Sender: ben@terminus X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 19 Oct 2002 16:18:02 +0200 To: Alfred Perlstein , Jake Burkholder From: Ben Stuyts Subject: Re: [Ugly PATCH] Again: panic kmem_malloc(): SOLVED Cc: Terry Lambert , current@FreeBSD.ORG, Jeff Roberson , Robert Watson , jeff@FreeBSD.ORG In-Reply-To: <4.3.2.7.2.20021019133250.00b3bad0@terminus> References: <20021019021502.GC91539@elvis.mu.org> <20021018213608.A60569@locore.ca> <4.3.2.7.2.20021018125313.00bb8990@terminus> <3DB07805.AB4BAA15@mindspring.com> <4.3.2.7.2.20021019001010.00b89f28@terminus> <20021018213608.A60569@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 At 13:34 19/10/2002, Ben Stuyts wrote: >At 04:15 19/10/2002, Alfred Perlstein wrote: >>* Jake Burkholder [021018 18:26] wrote: >> > semop() leaks memory. An important free() was removed by alfred in >> > rev 1.55. Try this. >> >>Seriously, I just checked in slightly different fix (based on jake's >>sleuthing)... please let me know if works for you guys. > >Thanks Alfred, I am building the kernel right now with your fix. Later >today I will let you know if this fixes the problems I've been seeing. Looks good, the machine has been running for a couple of hours now, and vmstat -m says: sem 4 7K 8K 3556 16,1024,4096 Before it used to be 2 - 5 MB allocated, and qpopper/smbd do no longer eat memory each time they are invoked. Many thanks! Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message