|Yes, partitions and ram are not really the same issue.|
In your case you need to look at making at least one scratch disk or more if you have more than one real actual drive. Photoshop uses a huge amount of ram. A common photo edit can easily consume all your available ram. To help you set up scratch disks where changes and edits can be stored until you save your work.
The second issue is the Microsoft virtual ram. It may have to be adjusted.
Lastly is that you could have some bad or faulty programs.
What gets done normally is you create a new system from clean media/disks like a reload of the OS. Add in software and then take measurements. That is the base number that you can later use to diag the system.
A Pit Bull is like a gun you can pet. And there is no safety on it.