My laptop is running modern hardware with NVME drive and has 64GB of RAM. Running Pop!_OS 22.04 with Gnome/Wayland.

When I launch the cosmic-store or cosmic-edit (for example) via command line or launcher, each takes about 25 seconds for its app window to load. Loading the Pop Shop in the same fashion takes less than 1 second.

I saw a few lines indicating files couldn’t be opened, and thought at first maybe my ulimit was set incorrectly, but there is plenty of headroom on my user (soft limit: 4096, hard limit: 1048576).

I do see a handful of logs that look questionable:

May 04 07:50:59 rosie systemd[2109]: app-gnome-com.system76.CosmicEdit-17126.scope: Couldn't move process 17126 to requested cgroup '/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-com.system76.CosmicEdit-17126.scope': No such process
May 04 07:50:59 rosie systemd[2109]: app-gnome-com.system76.CosmicEdit-17126.scope: Failed to add PIDs to scope's control group: No such process
May 04 07:50:59 rosie systemd[2109]: app-gnome-com.system76.CosmicEdit-17126.scope: Failed with result 'resources'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit UNIT has entered the 'failed' state with result 'resources'.
May 04 07:50:59 rosie systemd[2109]: Failed to start Application launched by gnome-shell.

What could be causing the cosmic apps to load so slowly?

  • canadaduaneOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago

    Ok, I’ve narrowed down the cause of slowdown slightly. It is when my laptop is on battery only that load time takes about 25 seconds. When plugged in (mains power), load time is < 1sec.

    The only change I see in journalctl -xef when switching between battery/mains power is as follows (first line battery, second line mains):

    May 22 23:45:35 rosie kernel: Dynamic Preempt: voluntary
    May 22 23:45:54 rosie kernel: Dynamic Preempt: full
    

    Edit: I can also simulate the effect via sudo tlp ac (fast load time) and sudo tlp bat (slow load time).

      • canadaduaneOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        No, I haven’t updated packages in 3 or 4 weeks.

        • Michael Murphy (S76)@lemmy.worldM
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 months ago

          This may be fixed now, but at the same time, I’d wait a day before updating cosmic-comp because xwayland’s currently broken while we need to update xwayland to the latest version for explicit sync support.

          • canadaduaneOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 months ago

            FYI this is still an issue for me. Updated to cosmic-edit 0.1.0171599034722.04~f5238e1.