scpcooin
13th August 2005, 21:55
Hi,
We have AIX 5.3, Informix and when I see the shm_param file, it shows me the following parameters, where in segment layout there are 10 steps and address space is 256 MB. I want to know how to increase the number of steps to 30 and increase the address space to 2 GB. Please suggest me of how I can acheive this?
shm_param generated by shmvalues6.2
# Preallocated memory for this setup: 16Mb
# Maximum segment size: 1024.0Mb (1048576)
# Address space: 256Mb (may depend on the program and kernel settings)
# Segment layout: (16384Kb per segment)
# 0: ccb00000 step 00000000 gap 00000000
# 1: ceb00000 step 02000000 gap 01000000
# 2: cfb00000 step 01000000 gap 00000000
# 3: d0b00000 step 01000000 gap 00000000
# 4: d1b00000 step 01000000 gap 00000000
.....
# 10: eed00000 step 01000000 gap 00000000
default:;
{
Thanks
Rgds/scpcooin
dave_23
13th August 2005, 22:49
Just out of curiosity, why would you want to do that?
Also -
Usage: shmvalues6.1 [-dtvV][-s KB][-m Mb][-n <nseg>]
-d : Show debugging information
-t : Test allocated segments (this may be slow)
-s : segment size (default = 16384)
-m : preallocated memory (default = 16)
-n : maximum number of segments (default = 30)
Dave
scpcooin
14th August 2005, 02:08
Hi Dave,
thnx for your reply
The reason is that we have around 4-5 servers on which the segment layout goes to 30 steps, but on this server it is just 10. I have tried using the command given by you alreatdy but the no of steps stays at 10, what could be the reason? Please advice.
Thanks in advance.
Rgds/scp
dave_23
14th August 2005, 02:31
It probably has something to do with your kernel parameters. shmmax shmmin, etc.
and you know you have to shmvalues6.1 <flags> > $BSE/lib/shmparam
right?
I ask - because shared memory on most system is nearly useless, so unless
you're seeing a problem - the difference between your servers isn't a particularly big deal..
Dave
Nick Cooley
17th August 2005, 02:22
We have a similar set-up on AIX 5.3. We are migrating from Solaris and I too noticed the difference in shared memory values. I have increased the segment size to 32 MB instead of adding more segments. This was done using shmvalues6.1. Main reason I did it was to make our new environment as close to our old one. Although most peoples opinions seem to suggest there is little to gain from increasing the default values.
One question I do have though, is how to increase the AIX shared memory parameters, which have a direct influence on Informix. They are dynamic so cannot be increased manually. If you are using Informix I would be interested to see your onconfig file and it's shared memory settings.
Nick
Viplov
31st October 2005, 07:54
The shmvalues6.2 program finds the boundaries of shared memory by itself and generates a default entry, which you can include in the shm_param parameter file.
For example:
default:;
{
}
Machine_id:;
{
}
Machine_id/OS release:;
{
SHM_START = a40000
SHM_STEP = 80000
SHM_BUFSIZE = 512
SHM_MAXMEM = 10
}
SHM_START is the start address of the first shared-memory segment.
SHM_STEP is the difference between the start addresses of two consecutive
segments.
SHM_BUFSIZE is the size of a segment in KB.
SHM_MAXMEM is the maximum number of segments.
The syntax for shmvalues6.2 is:
shmvalues6.2 [-dvV] [-m Seg_size_in_MB] [-s Seg_size_in_KB]
Possible options are as follows:
d : the d option provides you with additional information through error
messages when the boundaries of the operating system are exceeded.
m : the shmvalues6.2 program first tries to allocate 4 MB of memory to make
sure enough memory is left after shared memory has been installed. You can use
the m option to increase or decrease the amount of allocated memory. You
specify it in megabytes, that is, m 3 = 3 MB.
Viplov
31st October 2005, 08:01
In case of informix it would be:
onmode -a <kbytes> Increase shared memory segment size