Bug ID 1214043
Summary Slow startup in Firefox on OpenSUSE, 3 Lock Files Timeout?
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Firefox
Assignee factory-mozilla@lists.opensuse.org
Reporter zrenfire@gmail.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

Created attachment 868663 [details]
Firefox profiler of 3 proflie lock attempts

Is it just me that's experiencing slow Firefox startups in OpenSUSE? I tied
Ubuntu and it had fairly quick startups.

* https://old.reddit.com/r/openSUSE/comments/15jygg0/slow_firefox_startup/
* https://bugzilla.mozilla.org/show_bug.cgi?id=1847463

My old tumbleweed PC had a shit GPU setup, so I didn't mind the slow startups.
But I now have a Ryzen 5 5600G desktop and I'm still getting slow startups.

I copied the old ~/.mozilla/ folder to my new PC, and it's been slow to startup
as well.

I tried using the https://profiler.firefox.com/ and running with:

    MOZ_PROFILER_STARTUP=1 MOZ_PROFILER_STARTUP_ENTRIES=20000000 firefox

and noticed it's spending 10+10+5 seconds stuck polling the lock files.

https://imgur.com/a/0ubcvo8

The lock file appears to be a symbolic link pointing to `localhost:+9999` which
I didn't even know links could do.

* OpenSUSE Tumbleweed
* KDE Plasma Wayland
* btrfs

I tried:

* `firefox --safe-mode`
* Deleting/moving `~/.mozilla` + `~/.cache/mozilla`
* New User
* Plasma XOrg
* Kubuntu 23.04 (startup was only 2 seconds) ext4
* Ubuntu 22.04 (startup was only 2 seconds) ext4

-----

As you can see in the screenshots of the profiler
(https://i.imgur.com/d5IUXj4.png), the network requests don't even start until
25s in (the network thread doesn't even start). It gets stuck in the locking of
the profile.

* `XREMain::XRE_mainStartup` calls
    * `nsRemoteService::LockStartup`, `nsProfileLock::LockWithSymlink`,
`nsProfileLock::Lock(...)`, `PR_GetHostByName`, `__new_gethostbyname_r`
        * `__nscd_gethostbyname_r`, `nscd_gethst_r`, `__nscd_open_socket`,
`wait_on_socket`
            * `poll` (Spends 5000ms = 5s)
        * `_nss_dns_gethostbyname_r`, `__GI__nss_dns_gethostbyname_r`,
`gethostbyname3_context`, `__GI___res_context_search`,
`__res_context_querydomain`, `__GI___res_context_query`, `__res_context_send`,
`send_dg`
            * `poll` (Spends 10s)
    * `LockProfile(nslNativeAppSupport, nslFile, nslFile, nslToolkitProfile,
nslProfileLock)`
        * `nsToolkitProfile::Lock`, `nsToolkitProfile::Lock`,
`nsToolkitProfileLock::Init`, `nsToolkitProfileLock::Init`,
`nsProfileLock::Lock`, `nsProfileLock::LockWithSymlink`, `PR_GetHostByName`,
`__new_gethostbyname_r`
            * `_nss_dns_gethostbyname_r`, `__GI__nss_dns_gethostbyname_r`,
`gethostbyname3_context`, `__GI___res_context_search`,
`__res_context_querydomain`, `__GI___res_context_query`, `__res_context_send`,
`send_dg`
                * `poll` (Spends 10s)



-----

The only things I can think of to be OpenSUSE exclusive is it's Firewall or
BTRFS.


You are receiving this mail because: