LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
SHMMAX in UBUNTU


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
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
http://www.postgresql.org/docs/8.2/s...resources.html

the above link suggests 128mb for shmmax and 2097152 pages for shmall. To change it, use:
Code:
$ sysctl -w kernel.shmmax=134217728
$ sysctl -w kernel.shmall=2097152
or
Code:
$ 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'.
http://www.google.de/search?q=shmmax+postgre
 
  


Reply


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


All times are GMT -5. The time now is 11:42 AM.

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