Solved

Solaris 10 /etc/system parmeters configuration

Posted on 2010-09-20
14
1,248 Views
Last Modified: 2012-05-10
I try to configure kernel parameters for oracle installation, but in /etc/system I see only text file with commented text.
Where I can find real system configuration file?
0
Comment
Question by:gbcbr
  • 5
  • 5
  • 4
14 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
oracle often provided what kernel parameters need to be added to Solaris OS.


The newer Solaris 10 uses a different set/approach to do the same see:
http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnSolaris10.php
note the example in the link deals with a X86 based system.  If you have a Sparc based system, the name of the install media will not have X86.
0
 
LVL 8

Expert Comment

by:nognew
Comment Utility
Hi there!
 /etc/system is the real system configuration file for Solaris. What options do you want to configure?
You just need to uncomment the ones you need, or change values for the ones you need.
Cheers,
t.
0
 

Author Comment

by:gbcbr
Comment Utility
Hi,
I don't believe that this is configuration file:
*ident      "@(#)system      1.18      97/06/27 SMI" /* SVR4 1.5 */
*
* SYSTEM SPECIFICATION FILE
*

* moddir:
*
*      Set the search path for modules.  This has a format similar to the
*      csh path variable. If the module isn't found in the first directory
*      it tries the second and so on. The default is /kernel /usr/kernel
*
*      Example:
*            moddir: /kernel /usr/kernel /other/modules



* root device and root filesystem configuration:
*
*      The following may be used to override the defaults provided by
*      the boot program:
*
*      rootfs:            Set the filesystem type of the root.
*
*      rootdev:      Set the root device.  This should be a fully
*                  expanded physical pathname.  The default is the
*                  physical pathname of the device where the boot
*                  program resides.  The physical pathname is
*                  highly platform and configuration dependent.
*
*      Example:
*            rootfs:ufs
*            rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
*
*      (Swap device configuration should be specified in /etc/vfstab.)



* exclude:
*
*      Modules appearing in the moddir path which are NOT to be loaded,
*      even if referenced. Note that `exclude' accepts either a module name,
*      or a filename which includes the directory.
*
*      Examples:
*            exclude: win
*            exclude: sys/shmsys



* forceload:
*
*      Cause these modules to be loaded at boot time, (just before mounting
*      the root filesystem) rather than at first reference. Note that
*       forceload expects a filename which includes the directory. Also
*      note that loading a module does not necessarily imply that it will
*      be installed.
*
*      Example:
*            forceload: drv/foo



* set:
*
*      Set an integer variable in the kernel or a module to a new value.
*      This facility should be used with caution.  See system(4).
*
*      Examples:
*
*      To set variables in 'unix':
*
*            set nautopush=32
*            set maxusers=40
*
*      To set a variable named 'debug' in the module named 'test_module'
*
*            set test_module:debug = 0x13
             
 
0
 
LVL 8

Expert Comment

by:nognew
Comment Utility
it is the config file. the bottom section actually tells how to set options,. you just need to know the options.

t.
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
This are Solaris kernel options that are loaded during system boot.
i.e. during boot the solaris kernel processes this file and sets the parameters within accordingly.

The link I posted that references:
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=256
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100
Were usually the adjustments need on unix/linux to maximize the prioritization/handling of secific tasks.
Note that some of these variables are dependent on the Installed RAM as well as the planned use of the system, number of requests, etc.
0
 

Author Comment

by:gbcbr
Comment Utility
Yes, I have the same, but how I can change them? And also I have to change SWAP to 16GB and maximum user processes from 16379 to 16384. Where I can do these changes?
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
process control is through ulimit/limit.
TO change the swap, you would need to repartition the drive to allocate a 16GB partition for swap or add a file and declare it for use with swap.
You could use cachefs to create a file on the filesystem that will be used for caching.
To avoid having to repartition the system or add another drive to the system.
http://www.tech-recipes.com/rx/163/add-swap-space-temporarily-in-solaris/
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 8

Expert Comment

by:nognew
Comment Utility
you can't change swap via that file, SWAP is whole another story, where you need to allocate a file with appropriate space and assign it as a swap file.

TO increase maximum user processes just add the following line to the bottom of the file and reboot:

set maxuprc = 16384

Cheers,
t.
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
0
 

Author Comment

by:gbcbr
Comment Utility
I solve this issue with arnold links, SWAP and maxuprc, thank you very much.
/etc/system file doesn't work in Solaris 10, you can wright there what ever you like with no execution.
Only manual entering with adb -kw has immediate result
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
The /etc/system file alterations only take effect after a reboot.  adb is the tool to dynamically alter kernel settings which remain in effect until the system reboots if corresponding entries are not added to the /etc/system file.
0
 

Author Comment

by:gbcbr
Comment Utility
for me this theory. I had reboot 3 times with set maxuprc = 16384 in system file and when Oracle installer starts check system it said all the time - you have only 16379. When I used adb and change it to 16384, even during installation, just Retry after and everything passed.
0
 
LVL 8

Expert Comment

by:nognew
Comment Utility
Try to increase maxusers.
set maxusers = <something higher than you alrady got>
The value of maxuprc is calculated value it might not take effect if you just assign a value to it.
It is also depends on physical memory available on the box. Try not to kill your box.
Cheers,
t.
0
 

Accepted Solution

by:
gbcbr earned 0 total points
Comment Utility
I checked with adb -k ( premium utility - change everything in one second ) max users = 1022 it's crazy number for SE.
I want  5 users, so my demands have to be 5*16 +5 - why I have to put uprc  for 1022 users?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now