From owner-freebsd-performance@FreeBSD.ORG Tue Mar 30 11:36:49 2004 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7820216A4CE for ; Tue, 30 Mar 2004 11:36:49 -0800 (PST) Received: from mail1.simplenet.com (mail1.simplenet.com [209.132.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68C8543D2F for ; Tue, 30 Mar 2004 11:36:49 -0800 (PST) (envelope-from tt-list@simplenet.com) Received: from TraverPC.simplenet.com (64.170.12.242) by mail1.simplenet.com (7.0.016) (authenticated as tt-list@simplenet.com) id 4069459E00000F21 for freebsd-performance@freebsd.org; Tue, 30 Mar 2004 11:35:53 -0800 Message-Id: <6.0.1.1.0.20040330113631.01ef7ec0@mail1.simplenet.com> X-Sender: tt-list@simplenet.com@mail1.simplenet.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Tue, 30 Mar 2004 11:36:48 -0800 To: freebsd-performance@freebsd.org From: Tim Traver Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: shmem release X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 19:36:49 -0000 Hi all, Ok, I am running a 4.7 FreeBSD box that is a web server running apache. It looks like some module that I have is leaking memory, and eventually, apache crashes on restarts becuase of this error : shmget() failed: No space left on device which means it can't get any more memory, which I understand. When I look at the top list, it shows me something like this : Mem: 140M Active, 879M Inact, 151M Wired, 181M Cache, 199M Buf, 660M Free But when you look at the processes that are still up, they hardly take up any memory. So, my question is this. Is there a way to free up Inactive memory from crashed processes ??? Without just rebooting the box ??? I know that I need to find the source of the leaking and crashing to begin with, but in the mean time, if it happens, I'd like to free up the memory manually, so I can get the box running again... Thanks, Tim. SimpleNet's Back ! http://www.simplenet.com