From owner-freebsd-current@freebsd.org Fri Jul 29 19:51:46 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B1C0BA8557 for ; Fri, 29 Jul 2016 19:51:46 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B9011458; Fri, 29 Jul 2016 19:51:46 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bTDou-00450N-Bp>; Fri, 29 Jul 2016 21:51:44 +0200 Received: from x4e34a829.dyn.telefonica.de ([78.52.168.41] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bTDou-001UG8-2X>; Fri, 29 Jul 2016 21:51:44 +0200 Date: Fri, 29 Jul 2016 21:52:32 +0200 From: "O. Hartmann" To: Ngie Cooper Cc: Allan Jude , FreeBSD Current Subject: Re: CURRENT: memory leak? Message-ID: <20160729215232.3f1c0ab6.ohartman@zedat.fu-berlin.de> In-Reply-To: References: <20160729200458.2bb2c6ca.ohartman@zedat.fu-berlin.de> <18fe457f-c99e-8747-8692-e199f356f6d5@freebsd.org> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/J9r2uxdAa5aD9D6m/xUX7Jy"; protocol="application/pgp-signature" X-Originating-IP: 78.52.168.41 X-ZEDAT-Hint: A X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2016 19:51:46 -0000 --Sig_/J9r2uxdAa5aD9D6m/xUX7Jy Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Fri, 29 Jul 2016 12:41:17 -0700 Ngie Cooper schrieb: > On Fri, Jul 29, 2016 at 12:03 PM, Allan Jude wrot= e: > > On 2016-07-29 14:04, O. Hartmann wrote: =20 > >> > >> I realise an exorbitant memory usage of FreeBSD CURRENT ( FreeBSD > >> 12.0-CURRENT #16 > >> r303470: Fri Jul 29 05:58:42 CEST 2016 ). Swap space gets eaten up whi= le > >> building > >> world/kernel and/or ports very quickly. > >> > >> I see this phenomenon on different CURRENT systems with different RAM = (but > >> all ZFS!). No > >> box is less than 8 GB RAM: one 8GB, another 16, two 32 GB. An older XE= ON > >> Core2Duo server > >> with postgresql 9.5/postgis acting on some OSM data etas up all of its= 32 > >> GB and > >> additional 48GB swap - never seen before with 11-CURRENT. > >> > >> I didn't investigate the problem so far since I realized this memory > >> hunger of 12-CURRENT > >> just today on several boxes compiling world, eating up all the memory, > >> staring swapping > >> and never relax even after hours from the swapped memory. > >> > >> Is this a known phenomenon or am I seeing something mystique? > >> > >> Regards, > >> > >> Oliver > >> =20 > > > > Do you have the output of 'top', the first few lines > > > > Specifically, is there very high 'Other' usage, on the ZFS ARC line? =20 >=20 > `vmstat -Hm | sort -rnk 2,3 | head -n 10` might be helpful if the > memory used is in kernel space. > Thanks, > -Ngie > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" This is after starting VBox and a Win 7 pro guest (just started, no login) = with 3572 MB memory reserved and 4 logical CPUs (VBox 5.0.26): root@localhost: [ports] vmstat -Hm | sort -rnk 2,3 | head -n 10 solaris 53030 62088K - 23000705 16,32,64,128,256,512,1024,2048,4096,8192,32768 devbuf 20600 39751K - = 21380 16,32,64,128,256,512,1024,2048,4096,8192,16384,65536 iprtheap 9335 16498K = - 12303 32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 nvidia 8162= 21261K - 549305 16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 sysc= tloid 6004 309K - 6125 16,32,64,128 acpica 5605 574K - 65245 16,32,64,128,256,512,1024,2048,4096 umtx 1728 216K - 1728 128 ufs_dirhash 1543 678K - 7175 16,32,64,128,256,512,1024,2048 pmc 1066 6679K - 1066 16,32,128,256,512,1024,4096,81= 92,65536 kdtrace 950 218K - 113551 64,256 And the top output is : last pid: 12145; load averages: 0.65, 0.45, 0.45 up 0+01:35:15 21:51:10 72 processes: 1 running, 71 sleeping CPU: 1.4% us= er, 0.0% nice, 20.5% system, 0.2% interrupt, 77.9% idle Mem: 21M Active, 293M Inact= , 7429M Wired, 775M Buf, 85M Free ARC: 1682M Total, 363M MFU, 1077M MRU, 5536K Anon, 20M H= eader, 216M Other Swap: 64G Total, 400M Used, 64G Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU CO= MMAND 12077 ohartmann 25 20 0 4319M 3911M select 3 2:07 77.87% Vi= rtualBox 1002 root 1 23 0 12475M 31616K select 3 1:18 6.02% Xo= rg 1027 ohartmann 1 25 0 125M 9440K select 0 0:15 1.35% wm= aker 514 root 1 20 0 12748K 1916K select 0 0:26 1.28% mo= used 11980 ohartmann 45 20 0 826M 248M select 0 0:23 0.13% fi= refox 1645 root 1 20 0 22260K 2640K CPU2 2 0:02 0.10% top 1634 ohartmann 1 20 0 76020K 4180K select 0 0:01 0.09% xt= erm 1032 ohartmann 1 20 0 86260K 5852K select 3 0:06 0.06% xt= erm 12009 ohartmann 4 20 0 329M 35496K select 0 0:01 0.03% Vi= rtualBox 12014 ohartmann 12 20 0 125M 7624K select 1 0:01 0.02% VB= oxSVC 403 root 1 20 0 9588K 556K select 0 0:00 0.01% de= vd 12012 ohartmann 1 20 0 90036K 5164K select 2 0:00 0.01% VB= oxXPCOMIPCD 563 root 1 20 0 12608K 1916K select 2 0:01 0.00% sy= slogd 793 root 1 20 0 22764K 12632K select 0 0:00 0.00% nt= pd 820 root 1 20 0 43744K 2228K select 1 0:00 0.00% sa= ned 1026 ohartmann 1 20 0 33592K 3044K select 3 0:00 0.00% gp= g-agent 721 root 1 20 0 268M 1768K select 2 0:00 0.00% rp= c.statd 930 root 4 52 0 8364K 1852K rpcsvc 2 0:00 0.00% nf= scbd [...] --Sig_/J9r2uxdAa5aD9D6m/xUX7Jy Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXm7QAAAoJEOgBcD7A/5N8/9wH/ipecwfVU0b9AaroGKA3+d+3 2ODqHCPGZEaQni/WujdjOOjiQ3IE8XYN0+Hm79oqb5msk6lOohjIsnVZox4yZLRd kHVL6fWmhHpqIJnJJ8eGNxsip/7V33LgfoBEACLcCfRw9ioTFQEbgtmqtoFUSHP3 VaOGuslWQA9BHxuor/FGGqI1/TxPyu4UdgP/ry5pfL9/JR3iwVGAmT6E6xexdFFG B+JnmAbfiIezb7tu5ONYlpH4VBzk8QSg+ehcvrxOpM6e6CuRYU+C1e8GQHWAyWIM xd3hLd0Vd7FbOGPOZqAOiMUEF1RGGmyVbBcy0IR7L7FecZIdq0NULzr9omNZpiQ= =1TSf -----END PGP SIGNATURE----- --Sig_/J9r2uxdAa5aD9D6m/xUX7Jy--