h4x0r wrote:No specific problem, it just seems like my pax protected boxen have higher loads. I just assumed it was overhead from the pax protection. I of course only use segm.
how much higher? can you cite some numbers please? also, which version of grsecurity are you using? around last september (grsec 1.9.7 i think) or so there was a problem with PaX and APM that would cause higher than usual loads.
If its only 1-2% overhead for the protection then its obviously not worth enabling it on a uid/gid basis. I am curious as to how you arrived at this amount though.
simple: #time make bzImage
some results on plain 2.4.20 and w/ PaX and SEGMEXEC/RANDMMAP/RANDUSTACK:
338.93user 27.32system 6:08.75elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (710866major+910168minor)pagefaults 0swaps
343.13user 27.67system 6:13.19elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (708920major+911819minor)pagefaults 0swaps
as you can see, the sums of user+system in the two cases show a 370.8/366.25 = 1.012 slowdown (on this run, it doesn't vary much), that is 1.2%. and since the SEGMEXEC/RANDMMAP overhead really shows on workloads that do lots of fork() and execve(), this impact is probably as much as it can get in the real life.