Specific Linux Startup Priorities
Hello,
Its my first time posting on here, thank you for taking the time reading what I'm about to post.
I have a Centos 5 server running a 2.6.24-rt kernel. (Will recompile if necessary)
I'm looking to modify the scheduler (instead of SCHED_OTHER) and the priority for either a user or a process when it runs without having to do it on the fly or having root priv.
I.E. apache starts with user apache, the priority is 0 and the scheduler is OTHER. I want it to be if apache starts a thread, I want it to be -1 priority and the SCHEDULER FIFO.
I want to be modify the kernel or have a script/config so that when that user runs the binary is runs with the default scheduler and priority (Kind of like kthreads). When the system starts up soft-irq is RT and has a different scheduler. I want to be able to change the priority/scheduler of a user without doing it on the fly. I have a control panel that starts the server under a jailed user to a directory using SSH.
Any idea how about going about this. I've been googling for a long time, and none of it was relevant to my situation. (I know about chrt and nice, those are on the fly and root specific (chrt only) commands.) I was looking at the RT groups, but wasn't sure if thats what I was looking for.
Thanks for the help.
|