From owner-freebsd-stable@FreeBSD.ORG Sun Nov 2 10:54:25 2008 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 13ED21065670 for ; Sun, 2 Nov 2008 10:54:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id A85148FC1C for ; Sun, 2 Nov 2008 10:54:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Kwab7-0002nw-2X; Sun, 02 Nov 2008 12:54:21 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id mA2AsICP025168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Nov 2008 12:54:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id mA2AsIe2071045; Sun, 2 Nov 2008 12:54:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id mA2AsIY5071044; Sun, 2 Nov 2008 12:54:18 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 2 Nov 2008 12:54:17 +0200 From: Kostik Belousov To: Peter Jeremy Message-ID: <20081102105417.GZ18100@deviant.kiev.zoral.com.ua> References: <20081015082428.GE26536@server.vk2pj.dyndns.org> <20081015083538.GA72190@icarus.home.lan> <48F65490.6040305@FreeBSD.org> <20081019032104.GB25796@server.vk2pj.dyndns.org> <20081019083902.GP7782@deviant.kiev.zoral.com.ua> <20081102083704.GH99398@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AMgu92tiTAjHNJcM" Content-Disposition: inline In-Reply-To: <20081102083704.GH99398@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1Kwab7-0002nw-2X cdea67afb9ef4c88f7571d380150ee80 X-Terabit: YES Cc: freebsd-stable@freebsd.org Subject: Re: System hanging during dump 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: Sun, 02 Nov 2008 10:54:25 -0000 --AMgu92tiTAjHNJcM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 02, 2008 at 07:37:05PM +1100, Peter Jeremy wrote: > Sorry for the late reply. >=20 > On 2008-Oct-19 11:39:02 +0300, Kostik Belousov wrot= e: > >> I have built myself a looping 'ps -axl' which should let me gather more > >> information if it does re-appear. (In the process, I've found that ps > >> leaks memory, though that's not a problem until you wrap it in a loop). > > > >What memory ? Kernel one ? How did you noted this ? Could you add > >vmstat -z and vmstat -m to the loop and watch what allocation grows ? >=20 > ps(1) malloc's memory and doesn't free it. This isn't an issue in > normal operation because it's a once-through program. I hacked ps to > turn the guts of main() into a while(1){} loop and this showed the > process was growing. There were a couple of superfluous strdup() > calls that could be removed but I don't think it's worth making it > exhaustively clean up after itself (my hacking included hard-wiring > the options so I'm not sure my cleanup code is complete in the general > case). As a low priority, I'll create a PR covering the strdup's. Thank you for clarification. Please, Cc: me with a PR, I will look at it. --AMgu92tiTAjHNJcM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkkNhtkACgkQC3+MBN1Mb4jvGgCdFiSrqHL3B7B4YKS7YZ+73dPL OI0AoN6lEfaq01q/9WARobrS9PxMCjvp =8YXL -----END PGP SIGNATURE----- --AMgu92tiTAjHNJcM--