1 Reply Latest reply: May 28, 2012 8:36 AM by Jonnys3 RSS

    Solaris 10 resource controls - /etc/system vs /etc/projects

    Jonnys3
      Can someone please explain to me why, if we set the set the max shared memory segment in the /etc/system file using 'set shmsys:shminfo_shmmax=4294967296' we are seeing 800GB instead of 4GB when running 'prctl -n project.max-shm-memory':

      /etc/system:

      * Oracle 10.2.0 parameters
      set shmsys:shminfo_shmmax = 4294967295
      set shmsys:shminfo_shmmin = 1
      set shmsys:shminfo_shmmni = 200
      set shmsys:shminfo_shmseg = 20
      set semsys:seminfo_semmni = 100
      set semsys:seminfo_semmsl = 260
      set semsys:seminfo_semmns = 1024
      set semsys:seminfo_semopm = 100
      set semsys:seminfo_semvmx = 32767
      set rstchown = 0
      * Setting in for Oracle 10 upgrade
      set noexec_user_stack = 1

      With /etc/system populated running prctl produces:

      # /bin/prctl -n project.max-shm-memory -i process $$
      process: 3428: sh
      NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
      project.max-shm-memory
      privileged 800GB - deny -

      What is setting the maximum size for a shared segment to 800GB when using the /etc/system file to set the parameter?

      If we remove the settings from /etc/system and use the normal default projects settings we get 1/4 of the physical memory, which is what we would expect to see.

      Please note we will be using projects to control resources - I am just curious as to the effect of the /etc/system [set shmsys:shminfo_shmmax=4294967296] setting above