From owner-freebsd-stable@FreeBSD.ORG Wed Feb 4 23:33:18 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93BB3106564A for ; Wed, 4 Feb 2009 23:33:18 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1CB5F8FC14 for ; Wed, 4 Feb 2009 23:33:17 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LUrF5-0001GQ-As for freebsd-stable@freebsd.org; Wed, 04 Feb 2009 23:33:15 +0000 Received: from 93-141-97-120.adsl.net.t-com.hr ([93.141.97.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2009 23:33:15 +0000 Received: from ivoras by 93-141-97-120.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2009 23:33:15 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Thu, 05 Feb 2009 00:32:44 +0100 Lines: 64 Message-ID: References: <4989BD92.9010506@max.af.czu.cz.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF8A5EF4FE2C14D5F7210A4D4" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-141-97-120.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <4989BD92.9010506@max.af.czu.cz.cz> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: Free memory after upgrade to 7.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 23:33:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF8A5EF4FE2C14D5F7210A4D4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Tomas Randa wrote: > Hello, >=20 > I have i386/PAE system (php, apache22, mysql) running on 7-STABLE and I= > can see strange behavior after upgrade from 7.0: Apache does not free > memory, for example: >=20 > CPU: 31.2% user, 0.0% nice, 12.8% system, 0.7% interrupt, 55.3% idle > Mem: 3520M Active, 3705M Inact, 465M Wired, 314M Cache, 112M Buf, 12M F= ree > Swap: 4096M Total, 105M Used, 3991M Free, 2% Inuse >=20 > then apachectl graceful >=20 > CPU: 28.3% user, 0.0% nice, 8.6% system, 0.0% interrupt, 63.1% idle > Mem: 631M Active, 3126M Inact, 353M Wired, 213M Cache, 112M Buf, 3693M = Free > Swap: 4096M Total, 1844K Used, 4094M Free >=20 > Some graph: http://max.af.czu.cz/memoryload.png Please interpret this graph. When did you upgrade FreeBSD? On the 27th? What are the dips on the 30th and 2nd? Apache restarts? > I know before upgrade was memory using about 2,5GB, now much more, > apache sometimes crash. Please post several lines from "top" describing the processes you think are using up memory. For what it's worth, I have a similar situation: i386/PAE, upgraded from 7.0 to 7.1 on a machine with 4 GB RAM (3 GB accessible without PAE). I see no anomalies, *but* I'm using FastCGI with PHP and apache22-worker. I think this is the major change in malloc between 7.0 and 7.1: http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D184602 You can test if it's the cause of your problem by toggling between 'D' and 'M' options to malloc.conf (see malloc(3), don't forget to restart apache). --------------enigF8A5EF4FE2C14D5F7210A4D4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmKJaQACgkQldnAQVacBchWfgCfWDitjEqp++CN0rdY9F5mdS6x qoMAn1oVGIjhbuc7BpLpHGY9OJ1ktEdj =Yn2Y -----END PGP SIGNATURE----- --------------enigF8A5EF4FE2C14D5F7210A4D4--