Help on SHMMAX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Help on SHMMAX
# 1  
Old 09-25-2008
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
# 2  
Old 09-25-2008
What is the output of...
Code:
ipcs -mb | awk '{s+=$NF} END {print s}'

# 3  
Old 09-25-2008
Here is the output of ipcs -mb | awk '{s+=$NF} END {print s}'

1.44221e+10
# 4  
Old 09-25-2008
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.
# 5  
Old 09-26-2008
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 02:53 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. SuSE

extremly huge shmmax value

Hello all! On this SLES 10 box I found (what I think) an abnormal huge shmmax value. hostname:~ # cat /proc/sys/kernel/shmmax 18446744073709551615 hostname:~ # Perhaps there is a malconfigured startup script on the machine somwhere? But where/how do I find/set the default value of... (2 Replies)
Discussion started by: sap4ever
2 Replies

2. UNIX for Dummies Questions & Answers

SHMMAX (semaphores)

How can I change the semaphore values? Without say writing a C program that calls the method. Thanks. (5 Replies)
Discussion started by: JamesByars
5 Replies
Login or Register to Ask a Question