Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I built a top hardware but Firefox is laggy after a few days
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
vitaly-zdanevich
n00b
n00b


Joined: 01 Dec 2019
Posts: 71
Location: Belarus

PostPosted: Wed Mar 06, 2024 4:55 am    Post subject: I built a top hardware but Firefox is laggy after a few days Reply with quote

Top CPU AMD 7950x with big liquid cooling, 64 GB of fast DDR5 RAM, fastest m.2, use Gentoo for performance with march=native - BUT Firefox is laggy after a few days (after a few suspends), even scroll and characters typing sometimes is not in real time, Alt-Tab too :(

Please help, do you have some advice?

The compilation is fast - I build the kernel for a minute, so this is not something with hardware.

Yes I have many-many tabs, trying to close them.

Quote:
emerge --info firefox
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/no-multilib, gcc-13, glibc-2.38-r11, 6.6.13-gentoo+ x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.13-gentoo+-x86_64-AMD_Ryzen_9_7950X_16-Core_Processor-with-glibc2.38
KiB Mem: 65056304 total, 7674104 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Sun, 03 Mar 2024 20:45:00 +0000
Head commit of repository gentoo: f30d7fe7afe927423ec5df5ee1bb2acdc6c550be
Timestamp of repository edgets: Fri, 01 Mar 2024 21:04:19 +0000
Head commit of repository edgets: feeabf43ee1aed45467db34018ef26e7d7337934

Head commit of repository guru: 16fef49b4cca6d943cff3fb3873b984b999a3a17

Timestamp of repository pentoo: Sat, 02 Mar 2024 13:20:11 +0000
Head commit of repository pentoo: cb5090ec3a952af0b7aaf61ff4c959a4d53e70d2

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.27.9::gentoo
dev-build/libtool: 2.4.7-r2::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.1-r1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r2::gentoo
dev-lang/python: 3.9.18_p2::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust: 1.74.1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/openrc: 0.53::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r11::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync2.ru.gentoo.org/gentoo-portage/
priority: -1000
volatile: False
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1

edgets
location: /var/db/repos/edgets
sync-type: git
sync-uri: https://github.com/gentoo-mirror/edgets.git
masters: gentoo
volatile: False

guru
location: /var/db/repos/guru
sync-type: git
sync-uri: git@git.gentoo.org:repo/proj/guru.git
masters: gentoo
volatile: False

my
location: /var/db/repos/my
masters: gentoo
volatile: False

pentoo
location: /var/db/repos/pentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/pentoo.git
masters: gentoo
volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo-mirror.alexxy.name/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C debuginfo=0 -C target-cpu=native -C opt-level=3"
SHELL="/bin/bash"
USE="X acl amd64 avif bluray bzip2 cli crypt dbus dri dvd egl elogind eme-free exif ffmpeg flac fortran gdbm gdk-pixbuf graphite grub heif iconv jpeg libtirpc lto mp3 ncurses nls ogg opengl openh264 openmp opus pam pcre pgo png pulseaudio rdp readline seccomp split-usr ssl svg svt-av1 test-rust tiff tkip udf unicode v4l vaapi vpx webp x264 x265 xattr xml zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="x64" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
Package Settings
=================================================================

www-client/firefox-123.0::gentoo was built with the following:
USE="X clang dbus eme-free jumbo-build lto openh264 pgo pulseaudio system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry -debug -geckodriver -gmp-autoupdate -hardened -hwaccel -jack -libproxy (-selinux) -sndio (-system-av1) -system-png (-system-python-libs) (-valgrind) -wayland -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="17 -16"
CFLAGS="-march=native -pipe"
CXXFLAGS="-march=native -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"


Code:
cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2                -march=native -pipe"
RUSTFLAGS="-C debuginfo=0 -C target-cpu=native -C opt-level=3"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"

USE="grub elogind dbus
   -clang pgo lto graphite
   X rdp
   opengl egl vaapi -gallium v4l
   pulseaudio flac mp3 ogg opus
   xml svg png jpeg tiff webp avif heif exif gdk-pixbuf
   dvd bluray udf openh264 x264 x265 vpx svt-av1
   ffmpeg eme-free -proprietary-codecs -gmp-autoupdate
   -closure-compile -ipv6 tkip -neabeans -debug"

LLVM_TARGETS="x64"

VIDEO_CARDS="amdgpu radeonsi"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C


about:buildconfig:

Code:
Build tools
Compiler    Version    Compiler flags
/usr/lib/llvm/17/bin/x86_64-pc-linux-gnu-clang-17 -std=gnu99    17.0.6    -march=native -pipe -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe
/usr/lib/llvm/17/bin/x86_64-pc-linux-gnu-clang++-17    17.0.6    -fno-sized-deallocation -fno-aligned-new -march=native -pipe -fno-exceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -O3 -fomit-frame-pointer -funwind-tables
/usr/bin/rustc    1.74.1    -C debuginfo=0 -C target-cpu=native -C opt-level=3
Configure options

--enable-application=browser --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu MOZILLA_OFFICIAL=1 --update-channel=release MOZBUILD_STATE_PATH=/var/tmp/portage/www-client/firefox-123.0/work/firefox_build --disable-tests MOZ_PGO=1 --enable-optimize=-O3 --with-toolchain-prefix=x86_64-pc-linux-gnu- CC=x86_64-pc-linux-gnu-clang-17 LD=x86_64-pc-linux-gnu-ld CXX=x86_64-pc-linux-gnu-clang++-17 HOST_CC=x86_64-pc-linux-gnu-clang-17 HOST_CXX=x86_64-pc-linux-gnu-clang++-17 --enable-linker=lld --disable-debug-symbols 'AS=x86_64-pc-linux-gnu-clang-17 -c' AR=llvm-ar NM=llvm-nm PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config LLVM_PROFDATA=llvm-profdata --enable-lto=cross READELF=llvm-readelf 'RUSTFLAGS=-C debuginfo=0 -C target-cpu=native -C opt-level=3' --disable-cargo-incremental --with-libclang-path=/usr/lib/llvm/17/lib64 --enable-system-ffi --enable-rust-simd --with-system-icu --enable-default-toolkit=cairo-gtk3-x11-only --with-system-graphite2 --with-system-harfbuzz --disable-wmf --disable-real-time-tracing --disable-eme --with-mozilla-api-keyfile=/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0/api-mozilla.key --with-google-location-service-api-keyfile=/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0/api-location.key --with-google-safebrowsing-api-keyfile=/var/tmp/portage/www-client/firefox-123.0/work/firefox-123.0/api-google.key --with-system-webp --enable-elf-hack=relr --with-unsigned-addon-scopes=app,system --allow-addon-sideload --with-system-libvpx --with-system-jpeg --without-wasm-sandboxed-libraries --with-system-nss --disable-updater --with-system-libevent --disable-crashreporter --disable-necko-wifi --disable-parental-controls --enable-system-pixman --disable-legacy-profile-creation XARGS=/usr/bin/xargs --disable-install-strip --with-system-zlib --enable-official-branding --libdir=/usr/lib64 --prefix=/usr --x-includes=/usr/include --x-libraries=/usr/lib64


My kernel .config
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Wed Mar 06, 2024 6:35 am    Post subject: Reply with quote

Quote:
BUT Firefox is laggy after a few days (after a few suspends)


I haven't seen any report which says "suspend and not turning off the is great" (but I do not have seen everything), but seen more like "suspend does not work... after resume x does not work"

So my suggest is: Turn your PC off. Close Tabs. Close and end programms you do not need. Try it and I'm sure it will be better.

If you already do this stuff, then have a look at your tabs and what you visit/do with your browser.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Wed Mar 06, 2024 6:56 am    Post subject: Reply with quote

Also, consider using the "Auto Tab Discard" extension, which can unload certain tabs from memory after a certain amount of time, without actually closing them. i've found this extension to make a substantial difference to memory usage during long-lived browser sessions (particularly when using heavy sites, and streaming video for an extended period).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum