First i would enable fstrim:
sudo systemctl enable --now fstrim.timer
Maybe this was the issue?
If not, I would expect that there is a problem the low-cost SSD… maybe the controller?
My system have this SSD:
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.81-1-MANJARO] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: Apacer AS350 240GB
Serial Number: 519307031A5D00021605
Firmware Version: AP613PE0
User Capacity: 240.057.409.536 bytes [240 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-4 (minor revision not indicated)
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri Dec 18 15:16:40 2020 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
And this test results:
--- writing with dsync,noatime,nocache ---
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 6 s, 170 MB/s
10+0 Datensätze ein
10+0 Datensätze aus
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 6,17172 s, 170 MB/s
real 0m8,930s
user 0m0,027s
sys 0m2,292s
--- reading ---
943718400 Bytes (944 MB, 900 MiB) kopiert, 3 s, 281 MB/s
10+0 Datensätze ein
10+0 Datensätze aus
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 3,72885 s, 281 MB/s
real 0m3,782s
user 0m0,008s
sys 0m1,189s
--- writing with sync,noatime,nocache ---
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 6 s, 169 MB/s
10+0 Datensätze ein
10+0 Datensätze aus
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 6,20631 s, 169 MB/s
real 0m6,365s
user 0m0,014s
sys 0m2,413s
--- reading ---
943718400 Bytes (944 MB, 900 MiB) kopiert, 3 s, 283 MB/s
10+0 Datensätze ein
10+0 Datensätze aus
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 3,69827 s, 284 MB/s
real 0m3,749s
user 0m0,010s
sys 0m1,204s
--- writing with direct,noatime ---
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 4 s, 246 MB/s
10+0 Datensätze ein
10+0 Datensätze aus
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 4,26888 s, 246 MB/s
real 0m4,413s
user 0m0,014s
sys 0m0,561s
--- reading ---
838860800 Bytes (839 MB, 800 MiB) kopiert, 3 s, 278 MB/s
10+0 Datensätze ein
10+0 Datensätze aus
1048576000 Bytes (1,0 GB, 1000 MiB) kopiert, 3,75292 s, 279 MB/s
real 0m3,789s
user 0m0,013s
sys 0m1,222s
I would suggest, if possible, send the SSD back and buy a new one,