shared_buffers, work_mem, and effective_cache_size are the big knobs.