this post was submitted on 16 Jan 2024
51 points (91.8% liked)

Linux

47962 readers
1038 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Former title: SSD having issues after I filled up its storage

I wrote this poorly last time so here's a more clear description: Hey all, so I filled my SSD up on Linux Mint and it's running sluggishly. I deleted more than half of my storage but there's still issues. It can read / write fast according to my inexperienced testing and I have trimmed it (to my knowledge) but there's still issues. Loading up programs now takes 30 seconds (even something like VLC which typically took like 0.5 seconds). Loading new audio files into VLC can take 10 seconds. I have checked my system monitor and nothing seems out of place. Also, when the program starts running, it runs perfectly. The computer itself is fast but loading anything new takes ages. Does anyone have any ideas? It's a new laptop, not even two months old.

Edit: This is somehow, and strangely, a Flatpak issue apparently? It was triggered either by a full SSD or the new Linux Mint 21.3 Cinnamon update.

Edit 2: Interesting experiment result

'it took 30 seconds but this got outputted and then the file ran: dave@dog: ~$ flatpak run org.x.Warpinator Gtx-Message: 14:29:03.389: Failed to load module "xapp-gtk3-module" Using landlock for incoming file isolation'

It appears there's either a xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome error and I'm not alone, Mint and Arch users are both reporting it as of recent strangely???

This was a real sneaky fu(ker as it dodged all logical system testing. The only reason I caught it was cause it was suspicious how fast system programs booted and how flatpaks booted like sh(t. Not sure if I'm even right about the module, but I'm highly suspicious

Some comment mentioned this and it explained it well: Random shot, because it's probably not an issue on Mint like it was on Arch a few months ago, but xdg-desktop-portal problems can cause apps to take forever to load, but run fine once loaded.

edit: Try removing xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 9 months ago* (last edited 9 months ago) (2 children)

It still sounds to me like something's up with the disk. Can't think of any solutions to suggest but I would run a SMART health check on it:

sudo apt install smartmontools  
sudo smartctl -a /dev/sda

If you prefer a graphical tool, you can do the same thing with GNOME Disks, which also has options for disk benchmarking.

In the resulting report, the overall health state should be "PASSED", the "Type" column should show "Pre-fail" and "Old age" values, and the "Media-Wearout-Indicator" should be close to 100. If the overall health state is "FAILED", then you will want to back up your files immediately and consider getting a new SSD.

[–] [email protected] 3 points 9 months ago* (last edited 9 months ago) (1 children)

wait i think ive had a breakthrough, all system packages SEEM to run fine but all flatpak applications are effected. this seems to be flatpak related

[–] [email protected] 1 points 9 months ago (3 children)

just tested it, vlc system package opens in .2 seconds but flatpak opens in 30 seconds.

[–] [email protected] 2 points 9 months ago (1 children)

Definitely flatpak related then. Try running one of your flatpak apps from the terminal, and post the output here; might help pinpoint the issue. You can list the ones you have installed with flatpak list, then flatpak run <one of the listed apps, e.g. org.videolan.vlc>.

[–] [email protected] 1 points 9 months ago (1 children)

it took 30 seconds but this got outputted and then the file ran: dave@dog: ~$ flatpak run org.x.Warpinator Gtx-Message: 14:29:03.389: Failed to load module "xapp-gtk3-module" Using landlock for incoming file isolation

[–] [email protected] 1 points 9 months ago

Looking online, there are some suggestions to either (re)install xapp:

sudo apt install --reinstall xapp

or a related library:

sudo apt install --reinstall gir1.2-xapp-1.0

However, usually I find that errors like this mean nothing, so I wouldn't be surprised if these steps change nothing.

[–] [email protected] 0 points 9 months ago

this impacts file access speeds too, system package opens things in like .2 of a second but flaptak again takes like 30

[–] [email protected] -3 points 9 months ago (2 children)

Who'd have ever thought that having 47 copies of a library instead of using a shared library wouldn't work out great. 🙄

[–] [email protected] 7 points 9 months ago (1 children)

You mean 1 copy and 46 links.

Flatpak isn't a disk hog and this urban legend is dumb.

[–] [email protected] -3 points 9 months ago* (last edited 9 months ago)

You mean 1 copy and 46 links.

That's a shared library with extra steps. It's also loaded 47 times. Thanks for playing.

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (1 children)

i do it for the sandboxing and flatseal. any suggestions?

[–] [email protected] -2 points 9 months ago (1 children)

Not specifically. It's probably actually a configuration problem though, for any other program I'd delete or default the settings. Not sure how to do that for flatpak itself as I won't use it.

[–] [email protected] 3 points 9 months ago (1 children)
[–] [email protected] 0 points 9 months ago

The only use case I can see with any validity is for the sandboxing features, and I have no need of that currently.

[–] [email protected] 1 points 9 months ago (2 children)

ive tried that actuqllt, it said there was no dev/sda. it did aay there was a dev/nvme0. scanned it and it 'passed' but i can try again

[–] [email protected] 2 points 9 months ago

/dev/nvme0 is probably your SSD. But if it passed you probably have nothing to worry about

[–] [email protected] 1 points 9 months ago

fwiw in the future you can find out the path to your drives and their uuid if needed with

lsblk -f