SUMMARY: SHMMAX permanent system change in Solaris 10

From: Coronel, David <david.coronel_at_melochemonnex.com>
Date: Wed Jul 12 2006 - 13:47:26 EDT
Thanks to Jeffrey, Angelo, Kristopher, francisco, kalyan, Ian, Peter,
other
Peter, Thomas and also David Powell from Solaris Kernel
Development.

Peter
A. van Gemert said:
"The shared memory settings are now set on projects. You
have to create
a project and set the shared memory settings on this project.
Then start
your application in the project."

Dave Powell, Solaris Kernel
Development said:
"  You can still set the above limit in /etc/system; we
realized many
people have scripts or practices built around using it as an
interface
and when making the changes in Solaris 10 you refer to were careful
to
support customization of /etc/system in a compatible fashion. "
"  Once
the pressure is off, I recommend investigating the resource
controls facility
in Solaris, which allows you to set such limits on a
per-project (and
sometimes per-process) basis."


The real solution now:

Jeffrey Donovan
said:

"As root:

Get current settings to compare after changes:
oracle
-c 'sh -c "prctl -i process $$"'  > /tmp/current_settings

projmod -s -K
"project.max-shm-memory=(privileged,4GB,deny)"
'user.oracle'
su oracle -c
'sh -c "prctl -i process $$"' << to check
projadd -c "Oracle" 'user.oracle'
projmod -s -K "project.max-shm-memory=(privileged,4GB,deny)"
'user.oracle'
Get new settings:
su oracle -c 'sh -c "prctl -i process $$"' >
/tmp/new_settings

If you do a diff on the two files, you should see shared
max mem is
4gb."


Thomas Carter said:

"The file "/etc/project" defines
the settings:
user.oracle:100::::project.max-shm-memory=(privileged,17179869184,deny);
project.max-sem-ids=(privileged,600,deny);project.max-shm-ids=(privilege
d,600,deny)

The user.<username> entry defines the default project for that
specific 
user. This sets what used to be called shmmax to ~17GB as well as
the 
maximum number of semaphores to 600 and the maximum number of shared
memory segments to 600."



Peter Blackburn said:

"If you want to set
it up for a specific user:

 	shmem="4095MB"

 	projadd user.${user}
projmod -sK "project.max-shm-memory=(priv,${shmem},deny)"
user.${user}

OR
you can just make it the default:

 	projmod -sK
"project.max-shm-memory=(priv,${shmem},deny)"
default



Thank you very
much for all your answers.

David Coronel


-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Coronel, David
Sent: Tuesday, July 11, 2006 2:17 PM
To: Sun Manager
Subject: SHMMAX
permanent system change in Solaris 10


Okay I'm stuck on this one and have
rarely felt so much pressure.

Before
Solaris 10, if I wanted to set the
shmmax parameter I would simply do:

set
shmsys:shminfo_shmmax=4294967295
Now it seems you cannot do this anymore
with Solaris 10 and that you can
do
it dynamically and for each zone.
We're not using any zones on our Solaris 10
box and I need to make a
permanent system change (or at least a quick fix for
the time being).

I
know a little about the command prctl $$ to get the
system parameters
but where do I go from there?

Any help would be greatly
appreciated.

Thank
you,
David
-----------------------------------------
AVIS DE
CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement
ci-inclus, destini
uniquement
au(x) destinataire(s) susmentionni(s),  est confidentiel.  Si
vous n'jtes pas
le destinataire privu ou un agent responsable de la
livraison de ce courriel,
tout examen, divulgation, copie, impression,
reproduction, distribution ou
autre utilisation de toute partie de ce
courriel est strictement interdit de
mjme que toute action ou manquement
` l'igard de celui-ci. Si vous avez regu
ce message par erreur ou sans
autorisation, veuillez en aviser immidiatement
l'expiditeur par retour
de courriel ou par un autre moyen et supprimez
immidiatement et
entihrement cette communication de tout systhme
ilectronique.

NOTICE OF CONFIDENTIALITY
This communication, including any
information transmitted with it, is
intended only for the use of the
addressee(s) and is confidential.  If
you are not an intended recipient or
responsible for delivering the
message to an intended recipient, any review,
disclosure, conversion to
hard copy, dissemination, reproduction or other use
of any part of this
communication is strictly prohibited, as is the taking or
omitting of
any action in reliance upon this communication.  If you received
this
communication in error or without authorization please notify us
immediately by return e-mail or otherwise and permanently delete the
entire
communication from any computer, disk drive, or other storage
medium.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
-----------------------------------------
AVIS DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destini
uniquement au(x)
destinataire(s) susmentionni(s),  est
confidentiel.  Si vous n'jtes pas le
destinataire privu ou un
agent responsable de la livraison de ce courriel,
tout examen,
divulgation, copie, impression, reproduction, distribution ou
autre
utilisation de toute partie de ce courriel est strictement interdit
de
mjme que toute action ou manquement ` l'igard de celui-ci.
Si vous avez regu
ce message par erreur ou sans autorisation,
veuillez en aviser immidiatement
l'expiditeur par retour de
courriel ou par un autre moyen et supprimez
immidiatement et
entihrement cette communication de tout systhme
ilectronique.

NOTICE OF CONFIDENTIALITY

This communication, including
any information transmitted with it,
is intended only for the use of the
addressee(s) and is
confidential.  If you are not an intended recipient or
responsible
for delivering the message to an intended recipient, any review,
disclosure, conversion to hard copy, dissemination, reproduction or
other use
of any part of this communication is strictly prohibited,
as is the taking or
omitting of any action in reliance upon this
communication.  If you received
this communication in error or
without authorization please notify us
immediately by return e-mail
or otherwise and permanently delete the entire
communication from
any computer, disk drive, or other storage medium.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Jul 12 13:49:09 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:59 EST