Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2008 12:54:17 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: System hanging during dump
Message-ID:  <20081102105417.GZ18100@deviant.kiev.zoral.com.ua>
In-Reply-To: <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> <20081102083704.GH99398@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <kostikbel@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081102105417.GZ18100>