Operating System - Linux
1830749 Members
1970 Online
110015 Solutions
New Discussion

max limitation for shmmax on system with 8g of ram

 
K.C. Chan
Trusted Contributor

max limitation for shmmax on system with 8g of ram

not sure if this is the right place to post this question or under the db section under hp. Here's my question:

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

I am running advance redhat 3 with default kernel: "2.4.21-27.ELsmp". As far as max share mem seg size is concern, I am guessing this is the limitation for this kernel because the max mem on it is 8g and I take it share seg size is maxed out at half of physical mem. Could some one confirm? Thanks
Reputation of a thousand years can be determined by the conduct of an hour
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: max limitation for shmmax on system with 8g of ram

You should be able to designate at least 100% of physical memory to shmmax. It won't actually use that much unless its requested.

Oracle ias 10g requires that setting on many OS's.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
K.C. Chan
Trusted Contributor

Re: max limitation for shmmax on system with 8g of ram

Steven, I am not sure what I am doing wrong here. When I set shmmax to "4294967295", the seg size is listed as 4Gbytes. However when I set it to "5294967295", the segment size is listed as "0". Any idea?

On another note, withthe segment size of 4G, I am having problem creating an instance when sga size is 3.1Gbytes. The error is ORA-27123. However when I manually set the sga to around 2Gbytes, I am able to create the instance. Any idea?
Reputation of a thousand years can be determined by the conduct of an hour
Steven E. Protter
Exalted Contributor

Re: max limitation for shmmax on system with 8g of ram

Yeah,

You are running 32 bit Linux. Oracle can't address more than 2 GB of memory without use of the Linux equivalent of hpux memory windows.

I don't think 32 bit oracle can address more than 2 GB of Ram under andy cicrumcstances.

Can you tell me your Linux distribution, processor and Oracle versions please.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
K.C. Chan
Trusted Contributor

Re: max limitation for shmmax on system with 8g of ram

steven,
Intel(R) Xeon(TM) MP CPU 3.00GHz
10g
RHEL 3 update 4.
Reputation of a thousand years can be determined by the conduct of an hour
Steven E. Protter
Exalted Contributor

Re: max limitation for shmmax on system with 8g of ram

That verifies my conclusions.

The most amount of memory that Oracle can address without major kernel changes (you are better off with Itanium and hpux) is 2 GB.

Those SGA's are kind of big. We run some pretty large databases here (13 GB) with SGA's around 350 MB.

OF course we're running our databases on HP-UX PA-RISC 64 bit.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
K.C. Chan
Trusted Contributor

Re: max limitation for shmmax on system with 8g of ram

steven, I too run hpux. But I also have oracle on linux. yeah, I know the size of the sga is big. But I am planning ahead, if I ever needed to increase the sga size, I want to know what is my limit. In this case, 2G Bytes. Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
xyko_1
Esteemed Contributor

Re: max limitation for shmmax on system with 8g of ram

Hi KC,

I suggest that you read http://www.oracle.com/technology/tech/linux/pdf/linuxVM-WP-022703.pdf

I have Oracle 9i running on smp servers with 8 Gb of RAM and with RH AS21 and 4 Gb of shared memory. The sga has to be a little smallest than 4 Gb.

regards,
xyko