I've set up an old laptop with Linux mint some months ago, and while the laptop's speed is fine when there are no disk write, even a very small write can cause other applications to hang until it is done, and i can also tell because i have an IO led so whenever it is on i know that i can't really interact with stuff whenever it's on.
SMART status doesn't seem to report anything, (tested some weeks ago, but issue was always present), but i'm willing to test again and show screenshots.
I'll show some maybe relevant information, note that my Linux fs is mounted on sda7.
some forums online suggested looking at /etc/fstab:
`/etc/fstab`
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=fad802b2-f40c-4a8d-93de-128447fc6cd1 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=9A65-70AD /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda6 during installation
UUID=401c4f54-6932-4987-a9e2-9855a88ce52f none swap sw 0 0
the following is an output of sudo hdparm -i /dev/sda7:
A 5400rpm drive is pretty slow, especially if you are comparing it to a SSD, and at 17% free you are nearing the point where file fragmentation and seek time become real I/O bottlenecks if you have an application trying to read data while you are doing a write. I haven't willingly used a 5400rpm drive in over 20 years, but I remember violently hating them.
That being said, I'm definitely not an expert here, so I'll be curious what others have to say.
I was told this laptop is about 10 years old, and I've got it from someone who is 23 years old, so i don't doubt what i was told about it.
So it should be very suspicious that it is that slow, and also, i can usually multitask pretty well with it, so it is very surprising that it hangs like that.
I really hope i get help troubleshooting this because i have a feeling it shouldn't be this bad.
I should probably check defragging options on linux regardless, thank you for the time you took answering this :)
Defragging used to be necessary maintenance back in the day but I think ext4 generally handles it well and does defragging in the background automatically. But fragmentation can exist temporarily which is the only reason I brought it up.
Multitasking performance is generally a factor of system memory which at 8GB is pretty reasonable for Linux. Once you exceed that, you'll use that swap file which I would expect would incur the same performance issues.
You have 8GB RAM and 1 hard drive. Given the symptoms you described, I'm wondering if your system is relying heavily on swap due to memory constraints? Your swap partition being on the same drive as your system and data files would mean that access to swap could be impacted by other disk I/O and lead to slowdowns or freezes.
2 solutions to this. Increase system RAM and/or Install a second hard drive and move swap partition to this new drive.
Small problem with that line of thinking, though it is understandable, multitasking is smooth, unless there is a write IO operation, and the same is true for just running a single tab firefox or LyX (latex editor), so it's probably not ram usage.
For this reason i disabled anything that might do writes in the background except for timeshift, and i saw massive improvements in responsiveness.
Thanks for your input, still.
I have a suspicion my machine might be waiting when it has write IO operations, because it doesn't heat up or make any noise, I've been looking for a way to make a fake io operation or something like that, to confirm this.
I'm afraid it's a scheduler issue or something in mint. I have ssd, 7800x3d, 32gb ram and when downloading at 500MB/s the system works ridiculously slow