For help on Informix memory parameters in the Linux configuration problem

RedHat Linux Informix installed 11.50.UC6
My question is if the Informix memory configuration parameters to more than 2G will cause the database does not start

------------------------------------ configuration parameters are extracted as follows -------------------------------------------
RESIDENT 0
SHMBASE 0x44000000
SHMVIRTSIZE 800000
SHMADD 200000
EXTSHMADD 200000
SHMTOTAL 0
SHMVIRT_ALLOCSEG 0.000000
SHMNOACCESS @<84>

BUFFERPOOL size=2K,buffers=256000,lrus=8,lru_min_dirty=50.000000,lru_max_dirty=60.000000
-----------------------------------------------------------------------------------------------

[informix@dbserver etc]$ onstat -p

IBM Informix Dynamic Server Version 11.50.UC6 -- On-Line -- Up 1 days 18:41:21 -- 1431060 Kbytes

If I send SHMVIRTSIZE to 2024000 will cause the database cannot be started, what reason is this.?


----------------------------------------------------------------------------------------------------------------------------
The server 8G physical memory
[informix@dbserver etc]$ top

top - 21:57:13 up 259 days, 3:39, 4 users, load average: 1.00, 1.00, 1.00
Tasks: 211 total, 1 running, 209 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8281544k total, 1330292k used, 6951252k free, 181820k buffers
Swap: 16383992k total, 0k used, 16383992k free, 933684k cached

Informix version:
IBM Informix Dynamic Server Version 11.50.UC6

Operating system version:
informix@dbserver etc]$ lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Release: 5.5
Codename: Tikanga
----------------------------------------------------------------------------------------------------------------------------

Started by Mick at December 08, 2016 - 6:12 AM

What is the error message?

Posted by Lionel at December 13, 2016 - 7:08 AM

For a 64 bit version, UC->FC

Posted by Ferdinand at December 20, 2016 - 7:51 AM

The system may be shared memory parameter limit.
sysctl -a|Grep -i SHM have a look.

Posted by Frederica at December 24, 2016 - 8:00 AM

First posted on the error message
The SHMVIRTSIZE is larger than 1024000 or BUFFERPOOL buffers to 512000 resulted in the database cannot be started
(BUFFERPOOL size=2K,buffers=256000,lrus=8,lru_min_dirty=50.000000,lru_max_dirty=60.000000)

server:/home/informix/etc>onstat -m
shared memory not initialized for INFORMIXSERVER 'userdb'

Message Log File: /home/informix/tmp/online.log
15:04:00 Checkpoint Completed: duration was 0 seconds.
15:04:00 Tue Sep 25 - loguniq 32, logpos 0x12ef7018, timestamp: 0x1d59de6 Interval: 5815

15:04:00 Maximum server connections 26
15:04:00 Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, Plog used 1911, Llog used 5509

15:04:02 IBM Informix Dynamic Server Stopped.

15:04:05 IBM Informix Dynamic Server Started.
15:04:05 Segment locked: addr=0x44000000, size=1529335808
15:04:05 shmat: [ENOMEM][12]: out of available data space, check system memory parameters (e.g. MAXMEM).

15:04:05 mt_shm_init: can't create virtual segment

15:04:32 IBM Informix Dynamic Server Started.
15:04:32 Segment locked: addr=0x44000000, size=1285537792
15:04:32 shmat: [ENOMEM][12]: out of available data space, check system memory parameters (e.g. MAXMEM).

15:04:32 mt_shm_init: can't create virtual segment

Posted by Mick at January 02, 2017 - 9:20 AM

The system may be shared memory parameter limit.
sysctl -a|Grep -i SHM have a look.
The following is --------------------------------- server information --------------------------------------------------------
[root@server ~]# sysctl -a|grep -i shm
vm.hugetlb_shm_group = 0
kernel.shmmni = 4096
kernel.shmall = 268435456
kernel.shmmax = 4294967295

[root@server ~]# ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 4194303
max total shared memory (kbytes) = 1073741824
min seg size (bytes) = 1

[root@server ~]#

[root@server ~]# cat /proc/sys/kernel/shmmax
4294967295

[root@server ~]# cat /proc/sys/kernel/shmmni
4096

[root@server ~]# cat /proc/sys/kernel/shmall
268435456

[root@server ~]# getconf PAGE_SIZE
4096

Posted by Mick at January 04, 2017 - 9:28 AM

You see what I think is very good.

Posted by Cheney at January 06, 2017 - 8:41 AM