Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue with SHMALL parameter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
data tanger  
View profile  
 More options Sep 18 2012, 9:59 am
Newsgroups: mailing.database.pgsql-docs
From: datatan...@hotmail.fr (data tanger)
Date: Tue, 18 Sep 2012 15:59:53 +0200
Local: Tues, Sep 18 2012 9:59 am
Subject: [DOCS] Issue with SHMALL parameter

Hi,
I'm using postgresql 9.1 as my database server on a linux server that has 8 GB of RAM.
After I changed the shared_buffers parameter to 2GB, I get the following error when I try to start postgres:
FATAL:  could not create shared memory segment: Cannot allocate memoryDETAIL:  Failed system call was shmget(key=5432001, size=2221539328, 03600).
Here are the shmall and the shmax params of my server:
#cat /proc/sys/kernel/shmmax     68719476736
#cat /proc/sys/kernel/shmall     4294967296
So as you see, shmall is greater than the requested size by postgres. Anyone have and idea?
thank you                                        


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lane  
View profile  
 More options Sep 18 2012, 12:08 pm
Newsgroups: mailing.database.pgsql-docs
From: t...@sss.pgh.pa.us (Tom Lane)
Date: Tue, 18 Sep 2012 12:07:46 -0400
Local: Tues, Sep 18 2012 12:07 pm
Subject: Re: [DOCS] Issue with SHMALL parameter

data tanger <datatan...@hotmail.fr> writes:
> Here are the shmall and the shmax params of my server:
> #cat /proc/sys/kernel/shmmax     68719476736
> #cat /proc/sys/kernel/shmall     4294967296

SHMALL is measured in pages not bytes on Linux.  I wonder if that value
is too large and is causing an internal integer overflow in the kernel.

                        regards, tom lane

--
Sent via pgsql-docs mailing list (pgsql-d...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
data tanger  
View profile  
 More options Sep 18 2012, 2:07 pm
Newsgroups: mailing.database.pgsql-docs
From: datatan...@hotmail.fr (data tanger)
Date: Tue, 18 Sep 2012 20:07:54 +0200
Local: Tues, Sep 18 2012 2:07 pm
Subject: Re: [DOCS] Issue with SHMALL parameter

Thank you for your answer. I think the value of shmall I have is very common cause I've seen it many times in other servers.Do you think there maybe a link between the request size of postgres and the swap size?
Here is the output of free -m
free -m             total       used       free     shared    buffers     cachedMem:          7867       1860       6007          0          5        595-/+ buffers/cache:       1258       6609Swap:         1023          2       1021
Regards,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »