LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2007, 12:56 AM   #1
dianarani
Member
 
Registered: May 2007
Posts: 63

Rep: Reputation: 15
max size of shared memory


hello every body,
how do I know what the upper limit is on my server for my shared
memory
> settings?
is there anyperson knowing about this please explain?
 
Old 05-24-2007, 06:54 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Have a look in your source tree for tmpfs.txt
Default is half of your RAM (not including swap) - can be increased, but heed the warning.
 
Old 05-24-2007, 07:24 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
From a sybase pdf:
Quote:
The operating system shared memory default of most Linux releases is
32MB. The minimum required by Adaptive Server is 64MB for a default
Server with 2K pages. You must increase the amount of shared memory if
you plan to increase the total memory of Adaptive Server.
Use the sysctl(8) method to check and adjust the operating system shared
memory parameter.
• To check the current shared memory size, enter:
# /sbin/sysctl kernel.shmmax
• To adjust the shared memory size, enter the following, where nnn is
the new size in bytes (at least 64MB which is 67108864 bytes):
# /sbin/sysctl -w kernel.shmmax=nnn
To guarantee that this value is applied every time the system is started,
add this line to your /etc/rc.d/rc.local file (/etc/init.d/boot.local on
SuSE systems).
Look in /proc as well. There may be a SC_SHMMAX or _XVID_SSHMAX using sysconf but I can't check now. My linux machine is at home.
 
Old 05-24-2007, 07:36 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Wellll - yes and no.
That's actually the segment size, not the max shared memory that could (potentially) be allocated.

Depends on what's needed in the particular case I guess.
 
Old 05-24-2007, 08:03 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I had just checked on SHMMAX and realized that it was for indivual segment limits. You responded before I could alter my post.

Code:
        KERN_SHMMAX=34,         /* long: Maximum shared memory segment */
 
Old 05-24-2007, 11:42 PM   #6
dianarani
Member
 
Registered: May 2007
Posts: 63

Original Poster
Rep: Reputation: 15
thanks a lot for all.
 
Old 05-25-2007, 01:55 AM   #7
dianarani
Member
 
Registered: May 2007
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
From a sybase pdf:


Look in /proc as well. There may be a SC_SHMMAX or _XVID_SSHMAX using sysconf but I can't check now. My linux machine is at home.
sir,
thanks a lot for ur reply it works out well.i need one more clarification sir, how much max of shared memory shall we give for server? is there any limit ? and what do you mean by adaptive server?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
max size of shared memory dianarani LQ Suggestions & Feedback 1 05-24-2007 01:02 AM
ipcs -lm shows : max total shared memory (kbytes) = 0 vicv Linux - Software 1 09-01-2005 10:58 AM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
Shared memory size limit? nodger Programming 1 03-16-2005 08:28 AM
Install Oracle 9i on slack 10: setting the max shared memory parameter permanently rsumbeling Linux - General 0 12-10-2004 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:58 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
Open Source Consulting | Domain Registration