From nobody Wed Apr 20 13:19:17 2022 X-Original-To: ports-bugs@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 5608C11CF26F for ; Wed, 20 Apr 2022 13:19:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kk1Ty01HJz3FG9 for ; Wed, 20 Apr 2022 13:19:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D17C5140F9 for ; Wed, 20 Apr 2022 13:19:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23KDJHux032283 for ; Wed, 20 Apr 2022 13:19:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23KDJHiT032282 for ports-bugs@FreeBSD.org; Wed, 20 Apr 2022 13:19:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 263436] www/firefox uses excessive amount of memory Date: Wed, 20 Apr 2022 13:19:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jeffpc@josefsipek.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650460758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lsOMevvIMdGKcztHa8VySd7OqB5cAOmdVdFqjYWmrvQ=; b=w50U9OU9KLOi4YVS8a3NZ0QTJebyeu2OPOLPOPOGPzHfF6sgrN8iEnS0ojCGriNrSzJTnB ITx6zGx9dlns6u7qgS2QXt2XDdloz0vfVBg+P9qCvjG7W9uVDJ7gBCvOEYw3gifs19QlsQ 2SzKOegIgUhEt7Pkou21t5I//5MfOuBZKNjbLJeA01UT2EKE2YRAtuygQdfWb52xTb9nRg s8W2EKNCfnuNG8AIQF8NC1d18kGSoPoCXobvP4xmJEzEvjdivJxb0xi3KbhrT3Lc5xk8q0 LChVrBgooli26w7MgiHf9aK9gbXmVhousVyx2ctRAiFImIX08TLaVcJGtqM6qA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650460758; a=rsa-sha256; cv=none; b=xkLNizJ2g9s1Qbr9LtRHYK1eYk67fY5GrB95eAUPCjbXyvZdo6UIUVPxsshnC2C2cfqitV L+yCWAbL/OpSYwJRPyAvG4iUeDq9h1c+k6k1cYts9t/qNSMilWWl+cZSPoBtK8aa4oFaj5 4jm3hK3XlEdf6p6vw5qUTAoWlrNbswz9oALkCEaKetfCUVxms5IVi3dFrw7tGJ/QZY1+Kw gelUkIahu2ug/xWhADcJMS+mDbHVJb/6W7elKQSw3oxsc7yv1RD55sH07P6N4N4nwFxGoy 6h93D4gsOqzu8F2Rup9iA+OZo+kRzDrZIANHcR8l4jAhMHGQQZ2/IRbuYvcZKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263436 Bug ID: 263436 Summary: www/firefox uses excessive amount of memory Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gecko@FreeBSD.org Reporter: jeffpc@josefsipek.net Assignee: gecko@FreeBSD.org Flags: maintainer-feedback?(gecko@FreeBSD.org) Unfortunately, I don't have much hard data to present. Ever since I upgrad= ed to Firefox 98, my system's RAM (16G) and swap (2G) get nearly exhausted wit= hin a couple of days of starting Firefox. Restarting Firefox releases all the memory as expected and all is well for 2-3 days before the memory consumpti= on gets high enough to cause unnecessary paging. Before the upgrade to v98, I used to run firefox for weeks without *any* issues like this. Normally I use a couple of extensions, but I've reproduced it without any extensions enabled. $ grep firefox /var/log/messages Jan 20 14:23:29 satis pkg[1355]: firefox upgraded: 90.0.1,2 -> 95.0.2_2,2=20 Mar 19 12:55:28 satis pkg[91791]: firefox upgraded: 95.0.2_2,2 -> 98.0.1,2= =20 Mar 28 22:30:31 satis kernel: pid 4282 (firefox), jid 0, uid 1000, was kill= ed: out of swap space Apr 3 09:31:13 satis pkg[27892]: firefox upgraded: 98.0.1,2 -> 99.0,2=20 Apr 6 23:13:24 satis kernel: pid 10976 (firefox), jid 0, uid 1000, was kil= led: out of swap space Apr 10 18:47:58 satis pkg[1460]: firefox upgraded: 99.0,2 -> 99.0_1,2=20 Apr 16 17:27:15 satis pkg[81292]: firefox upgraded: 99.0_1,2 -> 99.0_2,2=20 Apr 19 00:04:57 satis kernel: pid 6668 (firefox), jid 0, uid 1000, was kill= ed: out of swap space Apr 19 00:04:59 satis kernel: pid 82135 (firefox), jid 0, uid 1000, was kil= led: out of swap space Apr 19 00:05:01 satis kernel: pid 7545 (firefox), jid 0, uid 1000, was kill= ed: out of swap space The firefox got killed because it ran the system out of memory on the 19th.= I restarted it, and after ~10 hours of mostly idling it was: $ ps aux|egrep '(COMMAND|firefox)' USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND jeffpc 12355 0.1 7.1 11646412 593476 v0 S 09:48 0:18.64 firefox jeffpc 12357 0.0 1.6 287388 129120 v0 I 09:48 0:00.05 /usr/local/lib/firefox/firefox -content jeffpc 12358 0.0 2.0 2532140 168012 v0 I 09:48 0:00.48 /usr/local/lib/firefox/firefox -content jeffpc 12359 0.0 1.9 2522204 159644 v0 I 09:48 0:00.38 /usr/local/lib/firefox/firefox -content jeffpc 12362 0.0 4.6 2956960 381616 v0 S 09:48 0:04.63 /usr/local/lib/firefox/firefox -content jeffpc 12363 0.0 2.9 2794572 238748 v0 S 09:48 0:01.76 /usr/local/lib/firefox/firefox -content jeffpc 12367 0.0 1.8 2506476 148620 v0 I 09:49 0:00.26 /usr/local/lib/firefox/firefox -content jeffpc 12368 0.0 2.5 2567212 204548 v0 S 09:49 0:00.95 /usr/local/lib/firefox/firefox -content jeffpc 12369 0.0 1.9 2516688 160500 v0 S 09:49 0:00.78 /usr/local/lib/firefox/firefox -content jeffpc 12370 0.0 2.0 2526916 163660 v0 I 09:49 0:00.34 /usr/local/lib/firefox/firefox -content jeffpc 12372 0.0 2.1 2533480 176008 v0 S 09:49 0:02.67 /usr/local/lib/firefox/firefox -content jeffpc 12373 0.0 1.8 2503872 145752 v0 I 09:49 0:00.12 /usr/local/lib/firefox/firefox -content jeffpc 12394 0.0 1.8 2503868 146488 v0 I 09:49 0:00.11 /usr/local/lib/firefox/firefox -content jeffpc 12395 0.0 1.8 2503872 146452 v0 I 09:49 0:00.11 /usr/local/lib/firefox/firefox -content jeffpc 12445 0.0 0.0 12868 2016 7 S+ 09:53 0:00.00 eg= rep (COMMAND|firefox) Another 24 hours later (with some evening/morning browsing and lots of idli= ng during the day/night): $ ps aux|egrep '(COMMAND|firefox)' USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND jeffpc 12355 0.6 12.5 12928316 1039292 v0 S 09:48 20:39.08 firefox jeffpc 17248 0.2 7.6 3500156 633440 v0 S 20:29 7:34.43 /usr/local/lib/firefox/firefox -conten jeffpc 17436 0.2 6.5 3633244 541748 v0 S 20:54 8:38.38 /usr/local/lib/firefox/firefox -conten jeffpc 16833 0.1 5.5 3447880 460024 v0 R 19:35 5:51.86 /usr/local/lib/firefox/firefox -conten jeffpc 12357 0.0 1.1 287516 94092 v0 I 09:48 0:00.10 /usr/local/lib/firefox/firefox -conten jeffpc 12358 0.0 1.7 2616232 143672 v0 I 09:48 0:06.67 /usr/local/lib/firefox/firefox -conten jeffpc 12359 0.0 1.4 2529100 112988 v0 I 09:48 0:01.75 /usr/local/lib/firefox/firefox -conten jeffpc 12362 0.0 6.5 3359912 537288 v0 S 09:48 4:46.52 /usr/local/lib/firefox/firefox -conten jeffpc 12363 0.0 2.7 3064288 226496 v0 S 09:48 2:10.52 /usr/local/lib/firefox/firefox -conten jeffpc 12367 0.0 1.4 2525440 113836 v0 S 09:49 0:04.57 /usr/local/lib/firefox/firefox -conten ...20 lines omitted... jeffpc 23084 0.0 1.6 2523704 135192 v0 S 08:49 0:01.00 /usr/local/lib/firefox/firefox -conten jeffpc 23085 0.0 1.5 2506320 125904 v0 S 08:49 0:00.56 /usr/local/lib/firefox/firefox -conten jeffpc 23086 0.0 1.5 2505404 125068 v0 S 08:49 0:00.53 /usr/local/lib/firefox/firefox -conten jeffpc 23087 0.0 1.7 2551240 140020 v0 S 08:49 0:00.89 /usr/local/lib/firefox/firefox -conten jeffpc 23088 0.0 1.5 2505272 124888 v0 S 08:49 0:00.50 /usr/local/lib/firefox/firefox -conten jeffpc 23099 0.0 4.8 2904628 396040 v0 S 08:50 0:35.20 /usr/local/lib/firefox/firefox -conten jeffpc 23109 0.0 1.5 2503872 122596 v0 I 08:51 0:00.27 /usr/local/lib/firefox/firefox -conten jeffpc 23205 0.0 1.5 2503872 126068 v0 S 08:59 0:00.27 /usr/local/lib/firefox/firefox -conten jeffpc 23236 0.0 1.5 2503872 126860 v0 I 09:02 0:00.18 /usr/local/lib/firefox/firefox -conten jeffpc 23253 0.0 0.0 12868 1932 7 S+ 09:04 0:00.00 e= grep (COMMAND|firefox) What the ps(1) output doesn't show is that the virtual size of one of the processes seems to climb to as high as 25GB when actively browsing the web = but quickly drop back down to "reasonable" single digit GB. Let me know what other information I should collect or what I should try to= get to the bottom of this. --=20 You are receiving this mail because: You are the assignee for the bug.=