This was asked repeatedly the past 2 weeks. With regard to "what is a sane value for shmmax in the kernel?" Oracle's recommendation is to go for 0.5*physical_memory. So I gues that 0.25*physical_memory for Pg should be fine.
cheers,thalis