Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-02-2011, 08:34 AM   #1
LQ Newbie
Registered: Dec 2010
Posts: 28

Rep: Reputation: 0

Dear all,

I am using Ubuntu-10.4 and postgresql-8.4.
Now I have to change my SHMMAX variable for performance tuning.

I have 16 GB.

Please help me to change it permanently and what is the suitable value for the DATABASE Server.

Thanks & Regards

Adarsh Sharma[/FONT]
Old 02-02-2011, 09:43 AM   #2
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67

the above link suggests 128mb for shmmax and 2097152 pages for shmall. To change it, use:
$ sysctl -w kernel.shmmax=134217728
$ sysctl -w kernel.shmall=2097152
$ echo 134217728 >/proc/sys/kernel/shmmax
$ echo 2097152 >/proc/sys/kernel/shmall
To make this permanent, put the first code (without sysctl -w) in /etc/sysctl.conf or the 2nd in /etc/rc.local or so.

btw. I have found this with google, was the first hit for 'shmmax postgre'.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
avast enlarge kernel.shmmax johnh10000 Linux - General 1 10-06-2010 07:52 AM
How to permanently set shmmax tikit Linux - Server 3 06-11-2010 02:39 AM
SHMALL and SHMMAX hq5535 Linux - Kernel 0 06-01-2008 10:08 PM
How to know SHMSEG, SHMMIN,SHMMAX and SEMMAP current values sunilvadranapu SUSE / openSUSE 1 09-19-2007 04:18 AM
how to calculate shmmax when install Oracle in Linux exper Linux - Software 1 02-17-2004 06:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration