From nobody Thu Jul 01 19:49:15 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 45A8211D4B05 for ; Thu, 1 Jul 2021 19:49:17 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GG8191dRvz4rBc for ; Thu, 1 Jul 2021 19:49:17 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from ice.alameda.xse.com (unknown [IPv6:2600:1700:a570:e20:f2ad:4eff:fe09:150e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id E332C20270 for ; Thu, 1 Jul 2021 19:49:16 +0000 (UTC) (envelope-from leres@freebsd.org) From: Craig Leres To: freebsd-hackers@freebsd.org Subject: firefox is slow and uses a lot of memory Message-ID: <37fe2be4-a142-c49e-e1b0-0e9a8fd07a74@freebsd.org> Date: Thu, 1 Jul 2021 12:49:15 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N Starting with firefox 89 or so, I've found it starts using a LOT of memory and actually makes the system sluggish and causes momentary X freezes. I have 32G of ram/swap, is it reasonable for firefox to use 15G? Craig ice 95 % uname -a FreeBSD ice.alameda.xse.com 12.2-RELEASE-p8 FreeBSD 12.2-RELEASE-p8 r18 LBL amd64 >>>> top -osize last pid: 71913; load averages: 0.52, 0.53, 0.47 up 1+00:29:04 12:46:04 215 processes: 2 running, 206 sleeping, 6 stopped, 1 zombie CPU: 1.9% user, 0.0% nice, 0.3% system, 0.1% interrupt, 97.7% idle Mem: 2931M Active, 3479M Inact, 1874M Laundry, 19G Wired, 1192M Buf, 4116M Free ARC: 13G Total, 3822M MFU, 8686M MRU, 172K Anon, 270M Header, 553M Other 11G Compressed, 81G Uncompressed, 7.38:1 Ratio Swap: 32G Total, 32G Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 63858 leres 35 20 0 15G 506M select 7 0:40 0.08% firefox 3610 leres 3 20 0 6268M 61M select 2 4:54 1.00% Xorg 3159 telegraf 19 23 0 4926M 47M uwait 3 0:26 0.00% telegraf 63845 leres 125 20 0 4612M 1794M select 7 18:49 4.61% firefox 33553 leres 60 20 0 4579M 2077M CPU2 2 9:18 3.10% thunderb 63859 leres 34 20 0 2916M 559M select 3 1:11 0.08% firefox 63857 leres 34 20 0 2812M 466M select 0 2:00 0.18% firefox 63850 leres 37 20 0 2723M 377M select 2 1:51 0.24% firefox 63849 leres 34 20 0 2708M 394M select 3 1:05 0.02% firefox 63856 leres 34 20 0 2608M 275M select 6 0:30 0.01% firefox 63861 leres 34 20 0 2491M 189M select 6 0:05 0.05% firefox 63847 leres 34 20 0 2471M 171M select 1 0:04 0.05% firefox 70198 leres 27 20 0 2436M 142M select 5 0:01 0.05% firefox 63860 leres 26 20 0 2422M 130M select 2 0:01 0.00% firefox 3132 influxd 18 52 0 997M 185M uwait 2 6:16 0.06% influxd 3214 root 6 20 0 510M 491M select 0 2:38 0.19% pcscd 2897 bind 26 52 0 349M 281M sigwai 0 0:15 0.00% named 22334 www 4 52 0 108M 77M select 3 0:02 0.00% httpd