The method involves trying and testing the results for stability.
To OC the CPU, take the RAM's effect out of the picture, set the RAM with a stiff divider so in essence it's severly under clocked.
To OC the RAM, reduce the CPU's multiplyer by 3x.
Test the CPU with Prime95 and Pi for stability.
To quick test the RAM see the below link and the "Metest" segment explains the memtest86 Quick method.
Once you knw those twos stable maxes OCing will be much easier.