HP 8570plaptop - 16g of ram and swap

i’m thinking that having such an old original install is the cause.

EDIT:

I installed smem so next time it happens i will know what is causing it or at least what is using swap.