From nobody Fri Jul 2 07:04:44 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 714B411F5915 for ; Fri, 2 Jul 2021 07:04:57 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GGR0m4YwYz4slS for ; Fri, 2 Jul 2021 07:04:56 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd2d.google.com with SMTP id g5so6918594iox.11 for ; Fri, 02 Jul 2021 00:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=IJc27iCCPrG4IuE3rCR/jknp0aeT1lIq7HqODc4zLEY=; b=uGrEcBTlzPas2YvYXBjf0LcY2XIhkMmnB6EPK5SDt9BDtsbvZcEjFQo92RQ64x5yO5 /Mq0pQpXfKNWWshxB5dePIwTouXs8LYSZJRFArhC7QWzp06BVVdqaHZq8kJt3+BEr09D xL58uJrpVS2/bHwoMJ43Egl8EFVKPGa1/tnbXCpiPIoZZ3MNpfcsq0DjvvcPQrWkgyet p5rIA/WirVpjRtYaL1E8JLUDZEJk2FKVqSOuWiVzz+8OXi+ViVFc6e8ME9QciNJQN0Pr PrNik9K8lBiRiQZ/MNBDOg/dC28QzHfYgxNKU+fyQl3mdhZNLxi5rwRnLX75zuLzAri3 qpMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=IJc27iCCPrG4IuE3rCR/jknp0aeT1lIq7HqODc4zLEY=; b=C13jy6Rs86XGe5bwODaGCI2lupMmFoNu1hjeakVhwo6JpsRWevIh90VXOvx8PY1vwC p3rBOGjILExt+5CnpeE9T7us/u4dc8P1tvR4Y7MiTvMBXSFPqYo0tR45brH4R1i2nOG0 rFJUEu7p2ZZZmY4AY+pK3HWx54UqkYy4aCbhCWPP7Lh9K2lio49bb0pJXGpqjH4pLxKI DMA6hwAkcBB9flYHlLFdQHv+HhjKBBJxax8ozPdTlcR0gHZBFhCP/NUiw9kfHhJ4NMBa GgGARKD88iFBAt133oukikEcoxFqQdi1vAMcENSvtcer8O79+q6uaA1rkcG5jil6j7Uy WT0A== X-Gm-Message-State: AOAM5326VoCpLpnUSjJmj97U9zIaKupCcJ3zszABrvzr+ulSwW0p5Dcw O02VVXfiMf3V4rXzLnbiLLigGNUjeCFJJq/7zjZPi4bFgDFzoR6d X-Google-Smtp-Source: ABdhPJxOjApZ+U2L2anHwVrFmRaXZt+FObMDZneonABu0nhzusdiCGKz4gymdBM1vSjDgtXdHGtYoaDSycWiQNgiNDg= X-Received: by 2002:a05:6602:249a:: with SMTP id g26mr2588233ioe.150.1625209495179; Fri, 02 Jul 2021 00:04:55 -0700 (PDT) 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 References: <37fe2be4-a142-c49e-e1b0-0e9a8fd07a74@freebsd.org> <20210702065610.df7pdqutdkvixpgb@nerd-thinkpad.local> In-Reply-To: <20210702065610.df7pdqutdkvixpgb@nerd-thinkpad.local> From: Michael Schuster Date: Fri, 2 Jul 2021 09:04:44 +0200 Message-ID: Subject: Re: firefox is slow and uses a lot of memory To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a5556b05c61e923d" X-Rspamd-Queue-Id: 4GGR0m4YwYz4slS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=uGrEcBTl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [0.24 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::d2d:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.76)[-0.758]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d2d:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2d:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-ThisMailContainsUnwantedMimeParts: Y --000000000000a5556b05c61e923d Content-Type: text/plain; charset="UTF-8" On Fri, Jul 2, 2021 at 8:57 AM Daniel Ebdrup Jensen wrote: > On Thu, Jul 01, 2021 at 12:49:15PM -0700, Craig Leres wrote: > >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? > just an idea: If you enabled "Restore previous session" and had a lot of stuff open when you left off the last time, perhaps you want to repeat this test with a "clean" session - probably the easiest would be using a different user account, though I'm sure firefox-savvy people will be able to show you ways of doing this with your own user account w/o having to dump your usual settings. This may show you whether it's an issue with firefox per se or the pages you loaded. HTH Michael > > > Craig > [SNIP] > > Hi folks, > > I can't help but wonder if this is because of the link-time > optimization that was enabled rather recently (with v88, if memory > serves). > > Perhaps you can investigate this? > > If you just want to mitigate it, there's two ways of achieving it: > You can either use limits(1) or use resource control via rctl(8). > > The second option does mean that you either have to limit the > memory use of your user account, or run Firefox in a jail, but > using [1] makes that relatively easy. > > Yours, > Daniel Ebdrup Jensen > > 1: https://wiki.freebsd.org/JailingGUIApplications > -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' --000000000000a5556b05c61e923d--