From nobody Sat Aug 27 15:39:02 2022 X-Original-To: gecko@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 4MFLTg04L8z4ZfgP for ; Sat, 27 Aug 2022 15:39:03 +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 4MFLTf4gdlz3jFy for ; Sat, 27 Aug 2022 15:39:02 +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 4MFLTf3PXmznVQ for ; Sat, 27 Aug 2022 15:39:02 +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 27RFd2eZ019622 for ; Sat, 27 Aug 2022 15:39:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27RFd2e6019621 for gecko@FreeBSD.org; Sat, 27 Aug 2022 15:39:02 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: gecko@FreeBSD.org Subject: [Bug 263436] www/firefox uses excessive amount of memory Date: Sat, 27 Aug 2022 15:39:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: freebsd@schukraft.org 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: Message-ID: In-Reply-To: References: 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: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661614742; 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: in-reply-to:in-reply-to:references:references; bh=Mu9JbQK2BY9YJLnh7uvOIwwTI79alp4orYD/SUVwGlo=; b=AhGgYR6MHmEKtTrul5LhehWOMsWa/lqd37VK9IsHv8qXoexXnHNLrVAyxOT3OrsOfwvVV5 yLnyFy040TdLXK5gIMueQ50guE3g5dSY3ttxuHVoXfTOWMWRObqi18x4M8pcZ8RF3nvcbJ mQK77CuveVc1xSZ0CuFIdwdq7ugNfEOWryl1VcTq6ODua8k8ALZ2jnK+RLJRMLfFHnFQgY W+s1RnBDy9iMgg5lH/sY9mvyed2bWt3SAwKoCE55XphvtjoqgukXe3FhCNNliFczpZMjM9 vdls6FRm42nd4+MexGV5e5bVsLJv+ay0vis4pTcHyfVoZ7MwQgrKff46KCQGlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661614742; a=rsa-sha256; cv=none; b=MrZ8lcUv1AV0YnNmzYr+kq3/hak5Prtg/l5asXiWLpPRPTNxvpqb+UhnmA46TI6LJdkRYp rjDYSB7CZ+nU8lNXChI0PRmlHBdN/f5nAJT2g0xSe+ZEz1Sd2qR1C6eHYO9DDxKfObTwg3 uQc/7D0s+wQwzlygmQfTE8W1jPvHwXltwbz+a6CfTDmEeYWCfvnF+CUJVJvB6KiH9I3DyJ O5zlKIw/JzQzhGtwSKEjxcyXrBK5yWme7PLromyecA63LgVwn+rf2RCa9JV9SuisVzo0r5 9FIoxRmpqu7Wlo18oaJfGhEyu1X8Z5pY00Aqb/fhIn4PQjdko8R3Ls01uJAGhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263436 --- Comment #8 from freebsd@schukraft.org --- Maybe we can nudge the Importance up one level, as it not only affects you. I've seen this behaviour for quite some time, going into multiple years now. Firefox always seems to consume 10s of GB after a few days, and I until now chucked it up to the many tabs being open (~100-200, split over 2-4 windows with ~100 in the main one), some with JS-heavy/media content + some addon(s) now behaving well like Treestyle Tabs, uMatrix, uBlock Origin and the like. But I can't help but think that just a few years back I was able to keep th= at many tabs open without problems, so while it might be the more JS-intensive nature of the modern web, I'm still not sure this isn't some kind of memory leak or other inefficiency. Invariantly, at some point, swap is exhausted and stuff gets oom-killed. For comparison, my about:memory summary for the main process: Main Process (pid 9174) WARNING: the 'heap-allocated' memory reporter does not work for this platfo= rm and/or configuration. This means that 'heap-unclassified' is not shown and = the 'explicit' tree shows less memory than it should. Explicit Allocations 899.20 MB (100.0%) ++ explicit Other Measurements 36.55 MB (100.0%) ++ decommitted 17,831 (100.0%) ++ event-counts 36 (100.0%) ++ extensions 481.56 MB (100.0%) ++ gfx 8.54 MB (100.0%) ++ images 691 (100.0%) ++ ipc-channels 774 (100.0%) ++ ipc-channels-peak 8 (100.0%) ++ js-helper-threads 119.21 MB (100.0%) ++ js-main-runtime 34.11 MB (100.0%) ++ js-main-runtime-gc-heap-committed 34 (100.0%) ++ js-main-runtime-realms 477 (100.0%) ++ js-module-loader 0.39 MB (100.0%) ++ memory-blob-urls 106 (100.0%) ++ message-manager 3,954 (100.0%) ++ observer-service 2,324 (100.0%) ++ observer-service-suspect 720 (100.0%) ++ preference-service 0 (100.0%) ++ queued-ipc-messages 0.14 MB (100.0%) ++ shared-string-bundles 22.09 MB (100.0%) ++ window-objects 4.00 MB =E2=94=80=E2=94=80 font-list-shmem 6.53 MB =E2=94=80=E2=94=80 gfx-surface-image 0.00 MB =E2=94=80=E2=94=80 gfx-textures 0.00 MB =E2=94=80=E2=94=80 gfx-textures-peak 0.00 MB =E2=94=80=E2=94=80 gfx-tiles-waste 0 =E2=94=80=E2=94=80 ghost-windows 0 =E2=94=80=E2=94=80 imagelib-surface-cache-already-present-count 0.29 MB =E2=94=80=E2=94=80 imagelib-surface-cache-estimated-locked 0.43 MB =E2=94=80=E2=94=80 imagelib-surface-cache-estimated-total 445 =E2=94=80=E2=94=80 imagelib-surface-cache-image-count 302 =E2=94=80=E2=94=80 imagelib-surface-cache-image-surface-count 377 =E2=94=80=E2=94=80 imagelib-surface-cache-locked-image-count 218 =E2=94=80=E2=94=80 imagelib-surface-cache-locked-surfaces-count 0 =E2=94=80=E2=94=80 imagelib-surface-cache-overflow-count 0 =E2=94=80=E2=94=80 imagelib-surface-cache-table-failure-count 84 =E2=94=80=E2=94=80 imagelib-surface-cache-tracked-cost-count 84 =E2=94=80=E2=94=80 imagelib-surface-cache-tracked-expiry-count 0 =E2=94=80=E2=94=80 imagelib-surface-cache-tracking-failure-cou= nt 2.31 MB =E2=94=80=E2=94=80 js-main-runtime-temporary-peak 204 =E2=94=80=E2=94=80 page-faults-hard 24,126,094 =E2=94=80=E2=94=80 page-faults-soft 10,129.50 MB =E2=94=80=E2=94=80 private 9,815.91 MB =E2=94=80=E2=94=80 resident 9,893.29 MB =E2=94=80=E2=94=80 resident-peak 2.10 MB =E2=94=80=E2=94=80 shmem-allocated 70.25 MB =E2=94=80=E2=94=80 shmem-mapped 1 =E2=94=80=E2=94=80 unresolved-ipc-responses 46,885.31 MB =E2=94=80=E2=94=80 vsize 8,191.63 MB =E2=94=80=E2=94=80 vsize-max-contiguous 0.00 MB =E2=94=80=E2=94=80 wasm-runtime End of Main Process (pid 9174) --=20 You are receiving this mail because: You are the assignee for the bug.=