Photoshop will use whatever memory you allocate to it in Preferences > Performance. 9GB is not a lot when handling pixel data and in reality, no matter how much RAM you allocate, it will use both the allocated RAM and scratch disk space. Normally it is advised to allocate no more than 75% of your available RAM to Photoshop. That way you leave space for other processes.