Date: Wed, 31 Oct 2012 21:06:23 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: Adrian Chadd <adrian@freebsd.org> Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, freebsd-hackers@freebsd.org, Alfred Perlstein <bright@mu.org>, Dan Nelson <dnelson@allantgroup.com>, Karl Pielorz <kpielorz_lst@tdx.co.uk>, Konstantin Belousov <kostikbel@gmail.com> Subject: Re: Threaded 6.4 code compiled under 9.0 uses a lot more memory?.. Message-ID: <20121031190623.GL73505@kib.kiev.ua> In-Reply-To: <CAJ-VmokLJ7ed6Eye70_tQj1ohx-5i8%2BKkF7QZWuFzAQZEJPP2g@mail.gmail.com> References: <615577FED019BCA31EC4211B@Octca64MkIV.tdx.co.uk> <509012D3.5060705@mu.org> <20121030175138.GA73505@kib.kiev.ua> <C25F1D47C8D6BA6E3A072D4B@MightyAtom.tdx.co.uk> <20121031140630.GE73505@kib.kiev.ua> <E098A4DED6FCBCD6E248DF22@MightyAtom.tdx.co.uk> <20121031172136.GB21003@dan.emsphone.com> <CAJ-VmonCRcu_kLkmy8%2B2R6X5VjUUo-TOK8uT5qW7_aia81=3%2Bg@mail.gmail.com> <1351707655.1120.94.camel@revolution.hippie.lan> <CAJ-VmokLJ7ed6Eye70_tQj1ohx-5i8%2BKkF7QZWuFzAQZEJPP2g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--XK4NhNJ9GVfup2vH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 31, 2012 at 11:52:06AM -0700, Adrian Chadd wrote: > On 31 October 2012 11:20, Ian Lepore <freebsd@damnhippie.dyndns.org> wrot= e: > > I think there are some things we should be investigating about the > > growth of memory usage. I just noticed this: > > > > Freebsd 6.2 on an arm processor: > > > > 369 root 1 8 -88 1752K 748K nanslp 3:00 0.00% watchdogd > > > > Freebsd 10.0 on the same system: > > > > 367 root 1 -52 r0 10232K 10160K nanslp 10:04 0.00% watchdogd > > > > The 10.0 system is built with MALLOC_PRODUCTION (without that defined > > the system won't even boot, it only has 64MB of ram). That's a crazy > > amount of growth for a relatively simple daemon. >=20 > Would you please, _please_ do some digging into this? >=20 > It's quite possible there's something in the libraries that are > allocating some memory upon first call invocation - yes, that's > jemalloc, but it could also be other things like stdio. >=20 > We really, really need to fix this userland bloat; it's terribly > ridiculous at this point. There's no reason a watchdog daemon should > take 10megabytes of RAM. Watchdogd was recently changed to mlock its memory. This is the cause of the RSS increase. If not wired, swapout might cause a delay of the next pat, leading to panic. --XK4NhNJ9GVfup2vH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlCRdq4ACgkQC3+MBN1Mb4jpgACgqDkm39SLQjKbYaWMWR2O9eqa 8OYAn3RQ91dC27+Vfx3Q0UGiJ5cAGSdH =pA/r -----END PGP SIGNATURE----- --XK4NhNJ9GVfup2vH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121031190623.GL73505>