From owner-freebsd-stable@FreeBSD.ORG Sun Nov 2 08:37:09 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 3D4B61065672 for ; Sun, 2 Nov 2008 08:37:09 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail17.syd.optusnet.com.au (mail17.syd.optusnet.com.au [211.29.132.198]) by mx1.freebsd.org (Postfix) with ESMTP id C1E0B8FC08 for ; Sun, 2 Nov 2008 08:37:08 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail17.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id mA28b5OK029189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Nov 2008 19:37:06 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id mA28b5JU076868; Sun, 2 Nov 2008 19:37:05 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id mA28b5gv076867; Sun, 2 Nov 2008 19:37:05 +1100 (EST) (envelope-from peter) Date: Sun, 2 Nov 2008 19:37:05 +1100 From: Peter Jeremy To: Kostik Belousov Message-ID: <20081102083704.GH99398@server.vk2pj.dyndns.org> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GV0iVqYguTV4Q9ER" Content-Disposition: inline In-Reply-To: <20081019083902.GP7782@deviant.kiev.zoral.com.ua> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) 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 08:37:09 -0000 --GV0iVqYguTV4Q9ER Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry for the late reply. On 2008-Oct-19 11:39:02 +0300, Kostik Belousov wrote: >> 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 ? 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. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --GV0iVqYguTV4Q9ER Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkNZrAACgkQ/opHv/APuIdOTwCfbCy7o1fVs5sdpu3OS7YbhYDV gRcAnjlpGMG0lUosS110Zawn3WOOOymo =r9Bg -----END PGP SIGNATURE----- --GV0iVqYguTV4Q9ER--