9
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

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/[email protected]/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?

top 11 comments
sorted by: hot top controversial new old
[-] [email protected] 2 points 2 months ago

Very few people will have experience with cosmic apps at this point, it's in alpha state... :)

[-] [email protected] 1 points 2 months ago

Yeah, I get that. I've helped contribute to Pop!_OS in the past and thought I'd give it an early run. I'm just surprised that the packaged apps are so slow. When I ran them 6 months ago, they loaded so quickly I was shocked (<50ms).

I'm not sure if it's my system, or the (new) state of the apps.

[-] [email protected] 1 points 2 months ago* (last edited 2 months ago)

I think it's probably the system. Some kind of bug I guess. I'm really looking forward to cosmic too btw, seems very nice. But I guess it won't replace plasma anytime soon. These things takes time....

[-] [email protected] 2 points 2 months ago* (last edited 2 months ago)

Every application launches within 0.2 seconds for me. Maybe you need to play around with env WGPU_POWER_PREF=high

[-] [email protected] 1 points 1 month ago* (last edited 1 month 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).

[-] [email protected] 1 points 1 month ago

That's very strange. Did you update today?

[-] [email protected] 1 points 1 month ago

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

[-] [email protected] 2 points 1 month 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.

[-] [email protected] 1 points 1 month ago

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

[-] [email protected] 0 points 1 month ago

Thanks. Strangely, after using WGPU_POWER_PREF=high, it is always fast for me, even when I don't specify this preference. I don't understand it. In any case, I guess it's "fixed" for now, so thanks!

[-] [email protected] 1 points 1 month ago* (last edited 1 month ago)

I no longer think WGPU_POWER_PREF has any bearing on the fast/slow issue, see my other comment.

this post was submitted on 04 May 2024
9 points (100.0% liked)

Pop!_OS (Linux)

4910 readers
33 users here now

Pop!_OS is an operating system developed by System76 for STEM and creative professionals who use their computer as a tool to discover and create. Unleash your potential on secure, reliable open source software. Based on your exceptional curiosity, we sense you have a lot of it.

Unleash your potential

Whether this is your first experience with Linux, or your latest adventure, all are welcome to discuss and ask questions about Pop!_OS and COSMIC. Keep the discussions friendly though, and remember to assume good intentions whenever you reply. We're all here because we have a shared love for Linux and open source software.

System76 Logo

Support us by buying System76 hardware for you or your company! Or by donating on the Pop!_OS website through the "Support Pop" button. Pop!_OS and COSMIC are fully funded by System76 hardware sales. All systems are assembled in the USA. With your support, we'll work to push the Linux desktop forward with COSMIC.

Links

Guides

Hardware

Recommended

Community Rules

Follow the Code of Conduct

All posts on pop_os must adhere to the Pop!_OS community Code of Conduct. https://github.com/pop-os/code-of-conduct

Be helpful

Posts to pop_os must be helpful. When responding to a user asking for help, do not provide tongue-in-cheek responses like "RTM" or links to LMGTFY. Linking to direct sources that answer the asker's question is fine, but it's advised to provide some explanation as to how you got to that source.

Critique should be constructive

We within the Pop!_OS community welcome helpful criticism or ideas on ways to improve. However, basic "It's bad" or other simple negative comments don't help anyone fix anything. When voicing a complaint about something, try to point out ways the complaint could be improved or worked around, so that we can make a better product for it.

This rule applies to both Pop!_OS and its projects as well as other products available from third-parties.

Don't post malicious "advice"

It can be funny to joke about malicious commands, however this is not the venue for it. Do not advise users to run commands which will lock up their systems, steal their data, or erase their drive. Examples of this include (but are not limited to) fork bombs, rm, etc.

Posts violating this rule will be removed, even if the post is clearly in jest. Repeated offences may lead to a ban. You may understand that the command isn't serious, but a new user might not.

No personal attacks

Posts making a personal attack on any user will not be tolerated.

No hate speech

Hate speech of any kind will not be tolerated. Any violations will be removed, and are grounds for a ban.

founded 1 year ago
MODERATORS