From owner-freebsd-questions@FreeBSD.ORG Wed Mar 8 14:18:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADB0316A420 for ; Wed, 8 Mar 2006 14:18:12 +0000 (GMT) (envelope-from genie@geniechka.ru) Received: from turists.ru (turists.ru [83.222.5.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1443E43D45 for ; Wed, 8 Mar 2006 14:18:11 +0000 (GMT) (envelope-from genie@geniechka.ru) Received: from genie (genie.yauza.ru [85.192.18.27]) (authenticated bits=0) by turists.ru (8.13.1/8.13.1) with ESMTP id k28EI9ew049907 for ; Wed, 8 Mar 2006 17:18:09 +0300 (MSK) (envelope-from genie@geniechka.ru) X-AntiVirus: Checked by Dr.Web [version: 4.33, engine: 4.33.2.02271, virus records: 105363, updated: 8.02.2006] Message-ID: <005b01c642bb$23e007c0$1b12c055@genie> From: "Eugene" To: Date: Wed, 8 Mar 2006 17:16:35 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Strange memory problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 14:18:12 -0000 Hi people, I have a strange problem with memory. System is FreeBSD 5.3, 4GB physical memory. Even in very quiet load, memory allocation statistics looks like this: last pid: 38330; load averages: 0.67, 1.05, 1.03 up 6+06:50:14 15:52:30 159 processes: 2 running, 156 sleeping, 1 zombie Mem: 757M Active, 2673M Inact, 220M Wired, 107M Cache, 112M Buf, 7000K Free Swap: 10G Total, 1884K Used, 10G Free That is, almost 3GB of memory is Inactive while free memory is almost used up. If I do 'ps axvf' and sum up the memory columns, I get RSS=1.5GB and VSZ=1.9GB (approximately). With Apache stopped, it goes down to RSS=0.5GB and VSZ=0.6G -- but Inactive Memory remains above 2.5GB. Is it a memory leak somewhere or what? Thanks in advance Eugene