For the rear: Set sag according to what your frame needs. For the fork: set sag according to for manufacturer directions. (Usually recommended sag is about 10-20% of the travel)
After setting the sag, if you find yourself bottoming out regularly, increase air pressure. If you find the bike rides harsh, decrease air pressure.