so im not sure if this is update related or storage related. somewhere online told me to check ‘page faults’ and theyre at 16998 MINFL and 114 MAJFL. i ran out of storage on my ssd so i clesred half of it by deleting timeshift snapshots (and disabled it). it’s still running like a slug. once an application is open, it’s fine. but beforehand? it takes 20 seconds to open vlc. loading a new .mp3 audio for vlc takes maybe 10 or so. it started before the update when i totallt ran our of stroage so i assume it’s that. im confused as to if it’s some process stealing resources.
Your drive. Get a new one, like today, get your info off that old drive and replace it.
fuck
Good time to reiterate that regular backups should be made.
you mean timeshiftc? all of my important laptop files are backed up but i dont usw timeshift
I was meaning external backups, people usually worry about them when it’s too late.
But certainly timeshift is really useful, it could help you rule out problems with updates or bad installs. It is particularly convenient with btrfs, safe and instant.
I’m seeing two likely reasons here:
-
Your drive may be dying. If it suddenly becomes read only, scramble to get a hard drive and copy off data as soon as you can, because the moment the computer turns off or goes to sleep all data is gone.
-
You deleted a whole bunch of stuff but the drive didn’t get TRIM’d. The fast write cache was used up for storage as a last resolve and now the tricks SSDs use to make you think they’re fast all the times are failing. Check the status of the fstrim timer (systemctl status fstrim.timer) and see if it has run since your last cleanup. If it hasn’t, your SSD is probably still writing files as if it’s almost full, which will be awful for performance. In that case, starting the fstrim service and letting it do its thing may revive the drive to its old speed.
Page faults only explain why the system is slow, it doesn’t say much about the SSD itself.
The problem with a slow SSD, in your case, is that trimming a malfunctioning drive may make your life worse, but it can be very hard to see if an SSD is actually malfunctioning. Check the SMART statistics of the drive (I think the partition manager in mint can show you those?) and check if the number of errors is ticking up. A few errors here and there aren’t a problem (could literally be the result of an unfortunate ray from outer space {but large numbers or consistently climbing numbers are a problem.
I would check if my important documents and family photos are backed up, run the TRIM, see if it helps. If it doesn’t, I’d do a more thorough backup of most files and reboot after the TRIM, fingers crossed.
what command would you use to trim on linux mint, the drive isnt dying to my knowledge. i just ran smartctl and it says i have 0 unallocated nvm capacity?
sudo systemctl start fstrim
should do the trick.You can also try manually running
sudo fstrim --all
if the service doesn’t work for some reason. If that command doesn’t exist, you may need to apt install the fstrim command (I’m not sure what the right package is on Mint).Also check if you actually deleted the files (i.e. they’re not in a recycling bin somewhere). You can use
df -h /
for that.Check my new post or comment below, it appears to be a Flatpak issue caused by gtk3. No idea how to fix but I’m getting close to a diagnosis
Good to hear. I don’t have much to add debugging Flatpak, but good luck with finding a fix!
dyk the gtk3 module?
-
I agree with the other comment to beware and look at getting a new drive in case this one is shitting the bed.
If it were my system I would look for any signs of disk related errors in the logs (likely would show in /var/log/syslog or maybe kern.log).
Also, did you empty your trash (if you used GUI to kill the files)?
You verified the disk has free space right? (Via df or whatever GUI tool, maybe disks or the file manager)
Another thing I might look at out of curiosity is disk io stats. Is the disk swamped with IO for some reason? We’re assuming the bottleneck is disk io but then again maybe something else weird is going on.
I would also look at the SMART data and run a test.
PS: if the disk fills up after deleting files (with rm) then some process may be the cause. Use the iotop command to show what processes are doing the most reading and writing, similar to top but for io.
If you haven’t you can also hunt down the biggest directories either with a disk usage analyzer or command line. Cd into whatever to level directly (your home dir) then: sudo du -dk | sort -n
It might be worth checking a resource monitor such as top, htop, or bashtop to see if there’s a process using way more resources than it should
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
is that the syncthing thing i have cause that boots on startup
Portal basically is an interface/backend for flatpaks to interface with toolkits & DEs. If you don’t use flatpak, xdg-desktop-portal and associated backends should be removable. Even if you do, try removing the gtk and gnome backends w/apt. Hopefully it won’t try to remove a ton of stuff due to dependencies. Then, reboot and see if the slow loading problem goes away. If it does, you can try re-adding one or the other and see if it comes back.
Does logging in take forever as well?
Also after some cursory research, some people have had problems with portal on Mint after updates as well, just like on Arch. So… definitely try it.
wait hold on this is very likely holy shit, check my most recent post. the issue i have only impacts flatpaks. hold on what command do i run exactly and how dangerous is this. also tysm
this is a comment on my new post: 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
ngl youre my only hope or i have to re-install linux lol talk soon lmfao!!
Was this on a laptop? My Thinkpad running Mint slows down a lot when it’s charging, but as soon as I unplug it, it’s fine.
that seems like a bug?