From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1181 invoked from network); 7 Sep 2008 11:05:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Sep 2008 11:05:33 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 11392 invoked from network); 7 Sep 2008 11:05:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Sep 2008 11:05:03 -0000 Received: (qmail 14450 invoked by alias); 7 Sep 2008 11:04:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25633 Received: (qmail 14431 invoked from network); 7 Sep 2008 11:04:47 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 7 Sep 2008 11:04:47 -0000 Received: from flock1.newmail.ru (flock1.newmail.ru [82.204.219.207]) by bifrost.dotsrc.org (Postfix) with SMTP id B208080271A5 for ; Sun, 7 Sep 2008 13:04:39 +0200 (CEST) Received: (qmail 30425 invoked from network); 7 Sep 2008 11:04:38 -0000 Received: from unknown (HELO cooker.net) (arvidjaar@newmail.ru@91.77.237.20) by smtpd.newmail.ru with SMTP; 7 Sep 2008 11:04:38 -0000 From: Andrey Borzenkov To: zsh-workers@sunsite.dk Subject: Re: [PATCH] compsys maps anonymous memory and never frees it Date: Sun, 7 Sep 2008 15:04:34 +0400 User-Agent: KMail/1.9.10 References: <48BDF1EC.4050204@gmail.com> <080904072526.ZM12341@torch.brasslantern.com> <48C38F88.9040202@gmail.com> In-Reply-To: <48C38F88.9040202@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2485331.8IjlpFAuKT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200809071504.36084.arvidjaar@newmail.ru> X-Virus-Scanned: ClamAV 0.92.1/8181/Sun Sep 7 12:33:55 2008 on bifrost X-Virus-Status: Clean --nextPart2485331.8IjlpFAuKT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 07 September 2008, xRaich[o]=B2x wrote: >=20 > Bart Schaefer wrote: > > On Sep 4, 1:04am, =3D?ISO-8859-1?Q?Bj=3DF6rn_Herzig?=3D wrote: > > } > > } I looked at the problem a little closer. Zsh does not call mmap to > > } allocate them and they dont get allocated when completion happens but > > } when the next command gets issued. > > I was able to more or less reproduce it on Linux; but now after your patch I get what looks like memory leak. Here are heaps after several memory intensive completions: Address Kbytes RSS Anon Locked Mode Mapping 08048000 608 - - - r-x-- zsh 080e0000 16 - - - rw--- zsh 080e4000 92 - - - rw--- [ anon ] 09d6a000 672 - - - rw--- [ anon ] [...] Address Kbytes RSS Anon Locked Mode Mapping 08048000 608 - - - r-x-- zsh 080e0000 16 - - - rw--- zsh 080e4000 92 - - - rw--- [ anon ] 09d6a000 5340 - - - rw--- [ anon ] b6a68000 15464 - - - rw--- [ anon ] Compare this with version without patch: Address Kbytes RSS Anon Locked Mode Mapping 08048000 528 - - - r-x-- zsh 080cc000 16 - - - rw--- zsh 080d0000 88 - - - rw--- [ anon ] 099df000 744 - - - rw--- [ anon ] [...] Address Kbytes RSS Anon Locked Mode Mapping 08048000 528 - - - r-x-- zsh 080cc000 16 - - - rw--- zsh 080d0000 88 - - - rw--- [ anon ] 099df000 5520 - - - rw--- [ anon ] b6adb000 15464 - - - rw--- [ anon ] b7a05000 12 - - - rw--- [ anon ] b7b46000 108 - - - rw--- [ anon ] So it looks like we still have some memory leak somewhere.=20 --nextPart2485331.8IjlpFAuKT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkjDtUMACgkQR6LMutpd94wpeACgjvmDIBHrG02yel4DI7OMCeXp pdAAoLIbJHlWGGHqd9SceQUmlquuG0Zn =iYN8 -----END PGP SIGNATURE----- --nextPart2485331.8IjlpFAuKT--