From nobody Fri Jul 02 06:56:10 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 467AE11F4455 for ; Fri, 2 Jul 2021 06:56:13 +0000 (UTC) (envelope-from debdrup@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GGQpj1M97z4rS2 for ; Fri, 2 Jul 2021 06:56:13 +0000 (UTC) (envelope-from debdrup@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1625208973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d7dHBaeBBkNrB6cLTZZA+tlUnvHjhX37b7j/QaRVhpw=; b=ySgGLgBYOzyNY8+NQZ7fxW0MpKygyuwZmMNjwKq5Z6JT53uvD8BBrwf9PsZtiSrDeositM 16RPAQqn2Zo2/3Quq/hV0tlrsBwFtNyx3XX05wjZokveYSElADkjsgWZVfvZVW6TxUzf2Q 7/tMseGZECBfAhM0XAQ6xGQ2swdegZYQvBjhZrJg9sRs+8bku5CsMbdOfezXeYlQkDLlhf oSNzqhUEuduVYqnl7QPVWAw7PezSwucHedEGx/ZHThqczLkYCoNtj9roVQKBDdlE5019i8 g2NohTvf4+LjDFqm4WoZVKhWUtvECTW1+LtEW3KFUmINMRpEmz4brYzci3mQbg== Received: by freefall.freebsd.org (Postfix, from userid 1471) id 1517CF5A5; Fri, 2 Jul 2021 06:56:13 +0000 (UTC) Date: Fri, 2 Jul 2021 08:56:10 +0200 From: Daniel Ebdrup Jensen To: freebsd-hackers@freebsd.org Subject: Re: firefox is slow and uses a lot of memory Message-ID: <20210702065610.df7pdqutdkvixpgb@nerd-thinkpad.local> Mail-Followup-To: Daniel Ebdrup Jensen , freebsd-hackers@freebsd.org References: <37fe2be4-a142-c49e-e1b0-0e9a8fd07a74@freebsd.org> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6odkw25y2ax7qlsq" Content-Disposition: inline In-Reply-To: <37fe2be4-a142-c49e-e1b0-0e9a8fd07a74@freebsd.org> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1625208973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=d7dHBaeBBkNrB6cLTZZA+tlUnvHjhX37b7j/QaRVhpw=; b=ZA2GOHCePW3FHQtgYtBYYq4cIukDwnX/c2hrzDNqJ3gIy98piVP+efycncWUEyCQ65ruhe CjtsbMxYykrtbhObwI3x1u20InkHftC0nnYp5XzR8DU3tNxnB7lRWXqGtXxu8/Wts/hy8H h+QSVqZlTHsjWDkyOmd2amcIJBFjLSHPWruPOgRgewuW9UicfWrratWrEL3WtvmiI5ceXt spc8g0jdRrWSoTwIueUbbdDEq47SzRbwEMWstafe71hUrngFEgRScg4xjh56k5BxFMXwtG ZiTd4jqSU4GOEk37XtEm0sDbzWJNM8er8eSng+1ZtAeagVB7OJXkh1g+1t06Hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1625208973; a=rsa-sha256; cv=none; b=FSpNlpI04ihsnQP4jAt0r15R4/w17ba3xRVP03RDyKK0pJ5zzYdGX8E90WGjP9tEwLjGSN 46FD1yxiChtW1SXmd23pFd2nQJbeoQt2tY+lQd75d+Pm6fVSIMppbz9oMSVW6btnPkUPQ0 xMhEptkxywlNxtdDg6n5pJTuVAl2sRvPYCg9m1IoW5tMYFR8DIASyMX4a2kgDUa/ZMlM8k 7cU82f8IkR422bqjql0RN1hXjIogSQEbMf8Gfk5tD8qK+LpDOmvxGI/gGrO+d2SaryZW+q nI8FzXTmbDCZOSjYoSYjE2KDJGK3ZtTVQ3lNjrZ0pIIUsmeGUhU2CZma1+wNPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --6odkw25y2ax7qlsq Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 >memory and actually makes the system sluggish and causes momentary X=20 >freezes. I have 32G of ram/swap, is it reasonable for firefox to use=20 >15G? > > 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 --6odkw25y2ax7qlsq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAmDeuIpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN 87o7fgf/bB7PKa42066ZhEjyXyIpMMaCU3BpUA6B6/tYbpnxd3wFKkkE91biN83Z XHRJmgWrB8Wr530PR7yNxiXHmQVgQiCRqI2UNsq/sxintJhAqFGAoM4MUUqbwLUo lC+4kBlQkZYOQsiK3b9SZIsVRvpp5etEaDStzF7mzmfFzEAl8zpTdYSZPgf7nUN0 WgZK17SlBfei+CrWpSVZ/eSx/7vlXXyrztn3YoSGahZHJUFMJXOnd+OqAPpvtYsf kAVmA4mI5SvOpSOrBpkiw95Sga5BKkeDW+dztcDg/yXDagDCANjxTItLmAPUSXN9 SuDtZsKrY4cjsBO9s0R83w99abD1xA== =K/uS -----END PGP SIGNATURE----- --6odkw25y2ax7qlsq--