A few months ago, I bought a refurbished Dell OptiPlex 7040 SFF. I installed Windows 10 on a Kingston SSD. There are 8 GB of RAM.
The computer freezes about once every five minutes. At this time I can usually still use the mouse, and sometimes I can switch between programs with alt tab. But I cannot type or do any operations. After 15 to 20 seconds, I can operate the computer normally again.
Performance Monitor showed that the Current Disc Queue Length spikes when these freezes occur. It drops again when I am able to move again.
I don't notice any pattern in terms of the programs I am using, although the problem may be slightly worse when I have more things open. However, it still occurs when I have few programs open.
I have tried to use Resource Monitor to look at which processes are accessing the disk at these times, but I have not noticed a pattern.
Do you have any ideas for troubleshooting this? Your replies are much appreciated.
More:
1) I updated the bios already.
2) I don't think I am mixing and matching rams.
3) I'm using Windows 10 Home version 1803.
4) My SSD is this: Kingston Technology A400 SSD 480GB Serial ATA III
https://www.kingston.com/EN/ssd/consumer/sa400s37
The computer freezes about once every five minutes. At this time I can usually still use the mouse, and sometimes I can switch between programs with alt tab. But I cannot type or do any operations. After 15 to 20 seconds, I can operate the computer normally again.
Performance Monitor showed that the Current Disc Queue Length spikes when these freezes occur. It drops again when I am able to move again.

I don't notice any pattern in terms of the programs I am using, although the problem may be slightly worse when I have more things open. However, it still occurs when I have few programs open.
I have tried to use Resource Monitor to look at which processes are accessing the disk at these times, but I have not noticed a pattern.
Do you have any ideas for troubleshooting this? Your replies are much appreciated.
More:
1) I updated the bios already.
2) I don't think I am mixing and matching rams.
3) I'm using Windows 10 Home version 1803.
4) My SSD is this: Kingston Technology A400 SSD 480GB Serial ATA III
https://www.kingston.com/EN/ssd/consumer/sa400s37