![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SHMMAX (semaphores) | JamesByars | UNIX for Dummies Questions & Answers | 5 | 01-06-2008 10:54 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
What is the output of...
Code:
ipcs -mb | awk '{s+=$NF} END {print s}'
|
|
#3
|
|||
|
|||
|
Here is the output of ipcs -mb | awk '{s+=$NF} END {print s}'
1.44221e+10 |
|
#4
|
||||
|
||||
|
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
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |