The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SHMMAX (semaphores) JamesByars UNIX for Dummies Questions & Answers 5 01-06-2008 10:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-25-2008
Registered User
 

Join Date: Nov 2007
Posts: 6
Help on SHMMAX

Hi.

Allocated is showing in hexadecimal which comes to 1 GB
But the usage is showing more (14 GB). Can you please explain why? Normally, usage should be less than allocated



$ /usr/sbin/kmtune -q shmmax

Parameter Current Dyn Planned Module Version

==========================================================
shmmax 0x40000000 Y 0X40000000


$ ipcs -mba |awk '{print s+= $10}' |tail -2

1.44211e+10

1.44221e+10
Reply With Quote
Forum Sponsor
  #2  
Old 09-25-2008
Registered User
 

Join Date: Oct 2007
Location: USA
Posts: 568
What is the output of...
Code:
ipcs -mb | awk '{s+=$NF} END {print s}'
Reply With Quote
  #3  
Old 09-25-2008
Registered User
 

Join Date: Nov 2007
Posts: 6
Here is the output of ipcs -mb | awk '{s+=$NF} END {print s}'

1.44221e+10
Reply With Quote
  #4  
Old 09-25-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
SHMMAX is not systemwide. 50 processes could each create a 1 GB shared memory segment. I'm not aware of a system-wide limit on shared memory.
Reply With Quote
  #5  
Old 09-26-2008
Registered User
 

Join Date: Oct 2007
Location: USA
Posts: 568
Yes Perderabo is on the mark. The SHMMAX kernel tunable specifies only the maximum size of a single shared memory segment. It does not mean the total amount of shared memory that can be allocated by the OS. Googling found this SHMMAX link. The maximum amount of shared memory system-wide would be a multiple of SHMMNI * SHMMAX.

Last edited by shamrock; 09-26-2008 at 10:53 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0