Debian_SuperUser
Active Member
The SSD in this machine I have is hot garbage. If I am updating through
I want to make the drive buffer smaller.
If I make the drive buffer smaller, there will be less latency for the I/O requests of other programs.
The other option would be to lower the I/O priority of a program like
It's a SATA SSD (in a freaking M.2 form factor), and a really bad one. The reads are good, reaches 450 MB/s in sequential, not sure about random, but the writes are really bad. Fluctuates a lot to not even be measurable. As my SSD is filling up to the brim, I feel like it is getting even slower and slower for daily use. I do sometimes run
I don't remember this was the case on Windows actually. I still yet to have to dual boot with Windows (yuck, but necessary) to check. Could it actually be a driver or a Linux issue that the performance is so bad?
pacman, the system becomes extremely slow to open anything that it is very unusable. I will see if I can upgrade but before that I need to try something.I want to make the drive buffer smaller.
pacman starts with unpacking packages really fast and then slows down a lot. That is because initially the buffer in memory is filled and then slowly it starts dumping it to the drive. If I experiment with dd with its oflag=direct option, I can see that the writes don't really start with that higher speed whereas without that option, it starts with a lot higher speed and quickly starts falling down. If I try to quit dd without the oflag=direct option while it is writing, it takes a while for the command to cancel as it only happens once the drive buffer is fully emptied of that process and with that option, it quits immediately because there is no buffering. This happens with all other programs as well. Unpacking a tar file shows that it has been unpacked but in the background I can still see the drive activity. I always have a habit to run sync to make sure all data has been written to the drive. If I make the drive buffer smaller, there will be less latency for the I/O requests of other programs.
The other option would be to lower the I/O priority of a program like
pacman so that other programs also get I/O time when invoked. I tried ionice but that didn't work. Opening other programs still took a very long time when my SSD was at 100%.It's a SATA SSD (in a freaking M.2 form factor), and a really bad one. The reads are good, reaches 450 MB/s in sequential, not sure about random, but the writes are really bad. Fluctuates a lot to not even be measurable. As my SSD is filling up to the brim, I feel like it is getting even slower and slower for daily use. I do sometimes run
fstrim.I don't remember this was the case on Windows actually. I still yet to have to dual boot with Windows (yuck, but necessary) to check. Could it actually be a driver or a Linux issue that the performance is so bad?

