Ryan Chang wrote:
Seems my description was not clear enough...
First I tried to change the value of project.max-shm-memory with projmod, but 
it's not changed after reboot, then I add
prctl -n project.max-shm-memory -v 4G -r -i project system
into my script in rc2.d, and reboot, this time the value of max-shm-memory was 
changed during the execution of that script.
What I'm wondering is the correct way of doing resource control in the rcx.d 
scripts. Is it the best way to do it with prctl? How can I achieve that by 
modifing /etc/project so that the parameter is set to the value I need before I 
run my script in rcx.d?

Personally the best way is to convert the init.d script to be an SMF service. That way you can specify a project that the service should run under.

--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to