Hi,
I need to do some resource control in an rc2.d script, and I found that the 
processes for these init script belongs to the system project(project ID = 0),
then I tried to modify some resource control parameters for this project with 
projmod, e.g.:
projmod -K "project.max-shm-memory=(priv,4G,deny)" system
it successfully appended the corresponding content into /etc/project, but when 
I reboot to run this init script, I found that it didn't change anything. 
However, when I tried to use prctl to change this parameter on the fly in my 
script, it succeeded:
prctl -n project.max-shm-memory -v 4G -r -i project system
Does anybody know the reason behind? Is it a bug or just something difference 
between system and other projects?
Thanks!

--Ryan
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to